From: Connor Abbott <cwabbott0@gmail.com>
To: Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org
Cc: Connor Abbott <cwabbott0@gmail.com>
Subject: [PATCH 6/6] drm/msm/a7xx: Add missing register writes from downstream
Date: Thu, 25 Apr 2024 14:43:54 +0100 [thread overview]
Message-ID: <20240425134354.1233862-7-cwabbott0@gmail.com> (raw)
In-Reply-To: <20240425134354.1233862-1-cwabbott0@gmail.com>
This isn't known to fix anything yet, but it's a good idea to add it.
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
---
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
index fb2722574ae5..e015f3b43bac 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
@@ -1953,6 +1953,14 @@ static int hw_init(struct msm_gpu *gpu)
BIT(6) | BIT(5) | BIT(3) | BIT(2) | BIT(1));
}
+ if (adreno_is_a750(adreno_gpu)) {
+ gpu_rmw(gpu, REG_A6XX_RB_CMP_DBG_ECO_CNTL, BIT(19), BIT(19));
+
+ gpu_write(gpu, REG_A6XX_TPL1_DBG_ECO_CNTL1, 0xc0700);
+ } else if (adreno_is_a7xx(adreno_gpu)) {
+ gpu_rmw(gpu, REG_A6XX_RB_CMP_DBG_ECO_CNTL, BIT(19), BIT(19));
+ }
+
/* Enable interrupts */
gpu_write(gpu, REG_A6XX_RBBM_INT_0_MASK,
adreno_is_a7xx(adreno_gpu) ? A7XX_INT_MASK : A6XX_INT_MASK);
--
2.31.1
next prev parent reply other threads:[~2024-04-25 13:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 13:43 [PATCH 0/6] drm/msm: Support a750 "software fuse" for raytracing Connor Abbott
2024-04-25 13:43 ` [PATCH 1/6] arm64: dts: qcom: sm8650: Fix GPU cx_mem size Connor Abbott
2024-04-25 13:43 ` [PATCH 3/6] drm/msm: Update a6xx registers Connor Abbott
2024-04-25 13:43 ` [PATCH 4/6] drm/msm/a7xx: Initialize a750 "software fuse" Connor Abbott
2024-04-25 23:02 ` Dmitry Baryshkov
2024-04-26 12:35 ` Connor Abbott
2024-04-26 12:54 ` Connor Abbott
2024-04-26 13:37 ` Dmitry Baryshkov
2024-04-26 13:31 ` Dmitry Baryshkov
2024-04-26 14:05 ` Connor Abbott
2024-04-26 14:53 ` Dmitry Baryshkov
2024-04-26 15:08 ` Connor Abbott
2024-04-26 15:24 ` Dmitry Baryshkov
2024-04-26 15:36 ` Connor Abbott
2024-04-26 15:38 ` Dmitry Baryshkov
2024-04-26 16:02 ` Rob Clark
2024-04-26 12:45 ` Rob Clark
2024-04-26 13:28 ` Dmitry Baryshkov
2024-04-25 13:43 ` [PATCH 5/6] drm/msm: Add MSM_PARAM_RAYTRACING uapi Connor Abbott
2024-04-25 23:03 ` Dmitry Baryshkov
2024-04-25 13:43 ` Connor Abbott [this message]
2024-04-25 15:03 ` [PATCH 0/6] drm/msm: Support a750 "software fuse" for raytracing Dmitry Baryshkov
2024-04-25 15:13 ` [PATCH 2/6] firmware: qcom_scm: Add gpu_init_regs call Connor Abbott
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=20240425134354.1233862-7-cwabbott0@gmail.com \
--to=cwabbott0@gmail.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=freedreno@lists.freedesktop.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=marijn.suijten@somainline.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