Skip to content

Commit fab384c

Browse files
committed
drm/msm/a6xx: Skip snapshotting unused GMU buffers
Some buffers are unused on certain sub-generations of a6xx. So just skip them. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Chia-I Wu <[email protected]> Reviewed-by: Akhil P Oommen <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/507013/ Link: https://lore.kernel.org/r/[email protected]
1 parent 83d18e9 commit fab384c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,9 @@ static struct msm_gpu_state_bo *a6xx_snapshot_gmu_bo(
813813
{
814814
struct msm_gpu_state_bo *snapshot;
815815

816+
if (!bo->size)
817+
return NULL;
818+
816819
snapshot = state_kcalloc(a6xx_state, 1, sizeof(*snapshot));
817820
if (!snapshot)
818821
return NULL;

0 commit comments

Comments
 (0)