From: sashiko-bot@kernel.org
To: "Yuanjie Yang" <yuanjie.yang@oss.qualcomm.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 7/9] drm/msm/a6xx: map the GMU rscc and PDC regions against the GPU device
Date: Mon, 30 Nov 2026 07:07:40 +0000 [thread overview]
Message-ID: <sashiko-outbox-240552@kernel.org> (raw)
In-Reply-To: <20261130-dpu_unbind_rebind_display-v1-7-c335387de1bb@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [High] drm/msm/a6xx: ignored a6xx_gmu_pwrlevels_probe() return in
a6xx_gmu_init() [1]
--
commit 95ee2296d872dd08a9e4fb839630fa6c9e25a217
Author: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
drm/msm/a6xx: map the GMU rscc and PDC regions against the GPU device
This commit attaches the devres-managed mappings for the GMU rscc, gmu_pdc,
and gmu_pdc_seq regions to the GPU device rather than the driverless GMU
device so that they are properly released on component unbind or bind
failure.
> diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
> index a1561ca41a5b3..e1178053953ad 100644
> --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
> +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
[ ... ]
> @@ -2464,7 +2473,7 @@ int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
>
> if (adreno_is_a650_family(adreno_gpu) ||
> adreno_is_a7xx(adreno_gpu)) {
> - gmu->rscc = devm_platform_ioremap_resource_byname(pdev, "rscc");
> + gmu->rscc = a6xx_gmu_ioremap_byname(gmu, "rscc");
> if (IS_ERR(gmu->rscc)) {
> ret = -ENODEV;
> goto err_mmio;
[Severity: High]
This problem wasn't introduced by this patch, but should a6xx_gmu_init()
check the return value of a6xx_gmu_pwrlevels_probe() [1]?
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:a6xx_gmu_init() {
...
/* Get the power levels for the GMU and GPU */
a6xx_gmu_pwrlevels_probe(gmu);
ret = a6xx_gmu_acd_probe(gmu);
if (ret)
goto detach_gxpd;
...
}
If a6xx_gmu_pwrlevels_probe() fails (for example, returning -EPROBE_DEFER
when OPP tables are not yet ready), probe continues with unpopulated
frequency tables (gmu->nr_gmu_freqs and gmu->nr_gpu_freqs remain 0),
leading to invalid hardware initialization and a kernel panic when voting
for frequencies.
[1] https://sashiko.dev/#/bug/linux-0cc3192b-3c52-4862-8d9b-9647c0282109
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-dpu_unbind_rebind_display-v1-0-c335387de1bb@oss.qualcomm.com?part=7
next prev parent reply other threads:[~2026-11-30 7:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 6:55 [PATCH 0/9] drm/msm: fix unbind/rebind of the msm_dpu Yuanjie Yang
2026-11-30 6:55 ` [PATCH 1/9] drm/msm/dpu: clean up the self-refresh helper on KMS teardown Yuanjie Yang
2026-11-30 6:55 ` [PATCH 2/9] drm/msm/dp: don't depopulate the eDP AUX bus on component unbind Yuanjie Yang
2026-11-30 7:09 ` sashiko-bot
2026-11-30 9:54 ` yuanjiey
2026-11-30 6:55 ` [PATCH 3/9] drm/msm: unpin the fbdev buffer when the fbdev is destroyed Yuanjie Yang
2026-11-30 6:55 ` [PATCH 4/9] drm/msm/a6xx: don't leak the SQE vmap in a6xx_ucode_check_version() Yuanjie Yang
2026-11-30 8:00 ` Konrad Dybcio
2026-11-30 6:55 ` [PATCH 5/9] drm/msm/a6xx: drop the shadow BO vmap on destroy Yuanjie Yang
2026-11-30 8:04 ` Konrad Dybcio
2026-11-30 6:55 ` [PATCH 6/9] drm/msm/a6xx: free the preemption and pwrup_reglist buffers " Yuanjie Yang
2026-11-30 7:06 ` sashiko-bot
2026-11-30 6:55 ` [PATCH 7/9] drm/msm/a6xx: map the GMU rscc and PDC regions against the GPU device Yuanjie Yang
2026-11-30 7:07 ` sashiko-bot [this message]
2026-11-30 8:29 ` Konrad Dybcio
2026-11-30 9:56 ` yuanjiey
2026-11-30 6:55 ` [PATCH 8/9] drm/msm/a6xx: cold boot the GMU on the first resume after bind Yuanjie Yang
2026-11-30 6:55 ` [PATCH 9/9] drm/msm/a6xx: wake up a PDC left asleep by a previous GPU instance Yuanjie Yang
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=sashiko-outbox-240552@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yuanjie.yang@oss.qualcomm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.