Commit 46e351e8 authored by Alexander Koskovich's avatar Alexander Koskovich Committed by Rob Clark
Browse files

drm/msm: Fix GMEM_BASE for A650



Commit dc220915 ("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: dc220915 ("drm/msm: Fix GMEM_BASE for gen8")
Signed-off-by: default avatarAlexander Koskovich <akoskovich@pm.me>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: default avatarAkhil 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: default avatarRob Clark <robin.clark@oss.qualcomm.com>
parent c0c70a11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;