From: Akhil P Oommen <akhilpo@oss.qualcomm.com>
To: Rob Clark <robin.clark@oss.qualcomm.com>,
Sean Paul <sean@poorly.run>,
Konrad Dybcio <konradybcio@kernel.org>,
Dmitry Baryshkov <lumag@kernel.org>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Jessica Zhang <jesszhan0024@gmail.com>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Akhil P Oommen <akhilpo@oss.qualcomm.com>
Subject: [PATCH 2/3] drm/msm/a6xx: Enable CLX feature on A840
Date: Sat, 16 May 2026 01:37:50 +0530 [thread overview]
Message-ID: <20260516-a8xx-clx-support-v1-2-62508bf651ac@oss.qualcomm.com> (raw)
In-Reply-To: <20260516-a8xx-clx-support-v1-0-62508bf651ac@oss.qualcomm.com>
Add the A840 CLX domain table and the IFF/PCLX limits table to the
catalog. With the HFI plumbing in place, this enables the Current Limit
Extension (CLX) feature on Adreno 840.
Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
---
drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 86 +++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c
index 550ff3a9b82e..c503912a61c7 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c
@@ -2108,6 +2108,90 @@ static const struct adreno_reglist_pipe a840_dyn_pwrup_reglist_regs[] = {
};
DECLARE_ADRENO_REGLIST_PIPE_LIST(a840_dyn_pwrup_reglist);
+static const struct a6xx_hfi_clx_table_v2_cmd a840_clx_tbl = {
+ .version = (2 << 16) | 1,
+ .domain = {
+ /* GX DOMAIN */
+ {
+ .data = CLX_DATA(60, 5, 1, 1),
+ .clxt = 0,
+ .clxh = 0,
+ .urg_mode = 1,
+ .lkg_en = 0,
+ .curr_budget = 100,
+ },
+ /* MXG DOMAIN */
+ {
+ .data = CLX_DATA(60, 1, 1, 1),
+ .clxt = 0,
+ .clxh = 0,
+ .urg_mode = 1,
+ .lkg_en = 0,
+ .curr_budget = 50,
+ },
+ },
+};
+
+struct a6xx_hfi_limits_tbl a840_limits_tbl[] = {
+ {
+ .feature_id = GMU_MIT_IFF,
+ .domain = GMU_GX_DOMAIN,
+ .feature_rev = 0,
+ .cfg = {
+ .enable = 1,
+ .msg_path = 0,
+ .lkg_en = 0,
+ .mode = 0,
+ .sid = 12,
+ .mit_time = 5,
+ .curr_limit = 6000,
+ },
+ },
+ {
+ .feature_id = GMU_MIT_IFF,
+ .domain = GMU_MX_DOMAIN,
+ .feature_rev = 0,
+ .cfg = {
+ .enable = 1,
+ .msg_path = 0,
+ .lkg_en = 0,
+ .mode = 0,
+ .sid = 9,
+ .mit_time = 2000,
+ .curr_limit = 6000,
+ },
+ },
+ {
+ .feature_id = GMU_MIT_PCLX,
+ .domain = GMU_GX_DOMAIN,
+ .feature_rev = 0,
+ .cfg = {
+ .enable = 1,
+ .msg_path = 0,
+ .lkg_en = 0,
+ .mode = 0,
+ .sid = 7,
+ .mit_time = 3,
+ .curr_limit = 30000,
+ },
+ },
+ {
+ .feature_id = GMU_MIT_PCLX,
+ .domain = GMU_MX_DOMAIN,
+ .feature_rev = 0,
+ .cfg = {
+ .enable = 0,
+ .msg_path = 0,
+ .lkg_en = 0,
+ .mode = 0,
+ .sid = 7,
+ .mit_time = 3,
+ .curr_limit = 6000,
+ },
+ },
+};
+DECLARE_ADRENO_LIMITS_TABLE(a840_limits);
+
static const struct adreno_info a8xx_gpus[] = {
{
.chip_ids = ADRENO_CHIP_IDS(0x44070001),
@@ -2185,6 +2269,8 @@ static const struct adreno_info a8xx_gpus[] = {
},
{ /* sentinel */ },
},
+ .clx_tbl = &a840_clx_tbl,
+ .limits_tbl = &a840_limits,
},
.preempt_record_size = 19708 * SZ_1K,
.speedbins = ADRENO_SPEEDBINS(
--
2.51.0
next prev parent reply other threads:[~2026-05-15 20:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 20:07 [PATCH 0/3] drm/msm/adreno: Support for CLX feature on A8xx Akhil P Oommen
2026-05-15 20:07 ` [PATCH 1/3] drm/msm/a6xx: Add HFI support for CLX feature Akhil P Oommen
2026-05-15 22:47 ` Claude review: " Claude Code Review Bot
2026-05-15 20:07 ` Akhil P Oommen [this message]
2026-05-15 22:47 ` Claude review: drm/msm/a6xx: Enable CLX feature on A840 Claude Code Review Bot
2026-05-15 20:07 ` [PATCH 3/3] drm/msm/a8xx: Enable CLX feature on Adreno X2-85 Akhil P Oommen
2026-05-15 22:47 ` Claude review: " Claude Code Review Bot
2026-05-15 22:47 ` Claude review: drm/msm/adreno: Support for CLX feature on A8xx Claude Code Review Bot
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=20260516-a8xx-clx-support-v1-2-62508bf651ac@oss.qualcomm.com \
--to=akhilpo@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jesszhan0024@gmail.com \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
/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