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 <[email protected]> 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-c335387de...@oss.qualcomm.com?part=7
