mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Rob Clark <robdclark@gmail.com>,
	Abhinav Kumar <quic_abhinavk@quicinc.com>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>,
	Daniel Vetter <daniel@ffwll.ch>
Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: [PATCH v2 6/6] drm/msm/adreno: Enable optional icc voting from OPP tables
Date: Thu, 23 Feb 2023 02:47:42 +0100	[thread overview]
Message-ID: <20230223-topic-opp-v2-6-24ed24cd7358@linaro.org> (raw)
In-Reply-To: <20230223-topic-opp-v2-0-24ed24cd7358@linaro.org>

Add the dev_pm_opp_of_find_icc_paths() call to let the OPP framework
handle bus voting as part of power level setting.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c
index 36f062c7582f..5142a4c72cfc 100644
--- a/drivers/gpu/drm/msm/adreno/adreno_device.c
+++ b/drivers/gpu/drm/msm/adreno/adreno_device.c
@@ -548,6 +548,10 @@ static int adreno_bind(struct device *dev, struct device *master, void *data)
 		return PTR_ERR(gpu);
 	}
 
+	ret = dev_pm_opp_of_find_icc_paths(dev, NULL);
+	if (ret)
+		return ret;
+
 	return 0;
 }
 

-- 
2.39.2


  parent reply	other threads:[~2023-02-23  1:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-23  1:47 [PATCH v2 0/6] OPP and devfreq for all Adrenos Konrad Dybcio
2023-02-23  1:47 ` [PATCH v2 1/6] drm/msm/a2xx: Include perf counter reg values in XML Konrad Dybcio
2023-02-23  1:47 ` [PATCH v2 2/6] drm/msm/adreno: Use OPP for every GPU generation Konrad Dybcio
2023-02-23  1:59   ` Dmitry Baryshkov
2023-02-23  1:47 ` [PATCH v2 3/6] drm/msm/a2xx: Implement .gpu_busy Konrad Dybcio
2023-02-23  2:09   ` Dmitry Baryshkov
2023-02-23 10:27     ` Konrad Dybcio
2023-02-23  1:47 ` [PATCH v2 4/6] drm/msm/a3xx: " Konrad Dybcio
2023-02-23  1:47 ` [PATCH v2 5/6] drm/msm/a4xx: " Konrad Dybcio
2023-02-23  1:47 ` Konrad Dybcio [this message]
2023-02-23  2:10   ` [PATCH v2 6/6] drm/msm/adreno: Enable optional icc voting from OPP tables Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230223-topic-opp-v2-6-24ed24cd7358@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_abhinavk@quicinc.com \
    --cc=robdclark@gmail.com \
    --cc=sean@poorly.run \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®