]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm: Fix GMEM_BASE for A650
authorAlexander Koskovich <akoskovich@pm.me>
Sat, 14 Mar 2026 04:14:50 +0000 (04:14 +0000)
committerRob Clark <robin.clark@oss.qualcomm.com>
Wed, 13 May 2026 21:02:04 +0000 (14:02 -0700)
Commit dc220915ddb2 ("drm/msm: Fix GMEM_BASE for gen8") changed the
GMEM_BASE check from adreno_is_a650_family() & adreno_is_a740_family()
to family >= ADRENO_6XX_GEN4.

This inadvertently excluded A650 (ADRENO_6XX_GEN3), causing it to report
an incorrect GMEM_BASE which results in severe rendering corruption.

Update check to also include ADRENO_6XX_GEN3 to fix A650.

Fixes: dc220915ddb2 ("drm/msm: Fix GMEM_BASE for gen8")
Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/711880/
Message-ID: <20260314-fix-gmem-base-a650-v1-1-3308f60cf74c@pm.me>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/adreno/adreno_gpu.c

index 66f80f2d12f9556948e33bc3e1a072c2b5ae2cde..a812a4590cc03fa14fa5d8895a666f94578ab673 100644 (file)
@@ -376,7 +376,7 @@ int adreno_get_param(struct msm_gpu *gpu, struct msm_context *ctx,
                *value = adreno_gpu->info->gmem;
                return 0;
        case MSM_PARAM_GMEM_BASE:
-               if (adreno_gpu->info->family >= ADRENO_6XX_GEN4)
+               if (adreno_gpu->info->family >= ADRENO_6XX_GEN3)
                        *value = 0;
                else
                        *value = 0x100000;