drm/msm: Fix debugbus snapshot
authorRob Clark <robin.clark@oss.qualcomm.com>
Fri, 1 Aug 2025 18:00:03 +0000 (11:00 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Thu, 7 Aug 2025 16:22:28 +0000 (09:22 -0700)
We weren't setting the # of captured debugbus blocks.

Reported-by: Connor Abbott <cwabbott0@gmail.com>
Suggested-by: Connor Abbott <cwabbott0@gmail.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/666660/

drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c

index 75f93213e1142272350861392d89c58a39b9b314..d5d1271fce611b60121b36f4b772d6f5e0093d2b 100644 (file)
@@ -438,8 +438,9 @@ static void a7xx_get_debugbus_blocks(struct msm_gpu *gpu,
                                a6xx_state, &a7xx_debugbus_blocks[gbif_debugbus_blocks[i]],
                                &a6xx_state->debugbus[i + debugbus_blocks_count]);
                }
-       }
 
+               a6xx_state->nr_debugbus = total_debugbus_blocks;
+       }
 }
 
 static void a6xx_get_debugbus(struct msm_gpu *gpu,