]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm/a6xx: Fix the bogus protect error on X2-85
authorAkhil P Oommen <akhilpo@oss.qualcomm.com>
Wed, 25 Feb 2026 07:41:57 +0000 (13:11 +0530)
committerRob Clark <robin.clark@oss.qualcomm.com>
Tue, 3 Mar 2026 18:36:35 +0000 (10:36 -0800)
commit20f644f42e3b8e729d3c3199d48e75c0b257de8f
tree7c01ed15bbd7d4579c4055fc8824fa7317a7a947
parentac47870fd795549f03d57e0879fc730c79119f4b
drm/msm/a6xx: Fix the bogus protect error on X2-85

Update the X2-85 gpu's register protect count configuration with the
correct count_max value to avoid blocking the entire MMIO region from the
UMD.

Protect configurations are a bit complicated on A8xx. There are 2 set of
protect registers with different counts: Global and Pipe-specific. The
last-span-unbound feature is available only on the Pipe-specific protect
registers. Due to this, we cannot use the BUILD_BUG sanity check for A8x
protect configurations, so remove the A840 entry from there.

Fixes: 01ff3bf27215 ("drm/msm/a8xx: Add support for Adreno X2-85 GPU")
Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/706944/
Message-ID: <20260225-glymur-protect-fix-v1-1-0deddedf9277@oss.qualcomm.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/adreno/a6xx_catalog.c