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 <robdclark@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/507013/ Link: https://lore.kernel.org/r/20221013225520.371226-3-robdclark@gmail.com
1 parent 83d18e9 commit fab384c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)