]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm: Dump correct dbgahb clusters on a750
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 7 Aug 2024 12:34:28 +0000 (13:34 +0100)
committerRob Clark <robdclark@chromium.org>
Fri, 30 Aug 2024 17:41:19 +0000 (10:41 -0700)
This was missed thanks to the family mixup fixed in the previous commit.

Fixes: f3f8207d8aed ("drm/msm: Add devcoredump support for a750")
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/607393/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c

index f2030e521a03abdee1daf76381564c945d7a6c1c..0fcae53c0b140b42d9af313695ad6121c9fc5618 100644 (file)
@@ -663,10 +663,13 @@ static void a7xx_get_dbgahb_clusters(struct msm_gpu *gpu,
        if (adreno_gpu->info->family == ADRENO_7XX_GEN1) {
                dbgahb_clusters = gen7_0_0_sptp_clusters;
                dbgahb_clusters_size = ARRAY_SIZE(gen7_0_0_sptp_clusters);
-       } else {
-               BUG_ON(adreno_gpu->info->family > ADRENO_7XX_GEN3);
+       } else if (adreno_gpu->info->family == ADRENO_7XX_GEN2) {
                dbgahb_clusters = gen7_2_0_sptp_clusters;
                dbgahb_clusters_size = ARRAY_SIZE(gen7_2_0_sptp_clusters);
+       } else {
+               BUG_ON(adreno_gpu->info->family != ADRENO_7XX_GEN3);
+               dbgahb_clusters = gen7_9_0_sptp_clusters;
+               dbgahb_clusters_size = ARRAY_SIZE(gen7_9_0_sptp_clusters);
        }
 
        a6xx_state->dbgahb_clusters = state_kcalloc(a6xx_state,