Skip to content

Commit

Permalink
drm/msm/adreno: Name the shadow buffer
Browse files Browse the repository at this point in the history
This was the one GPU related kernel buffer which was not given a debug
name.  Let's fix that.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20211115191514.310472-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
  • Loading branch information
Rob Clark committed Nov 28, 2021
1 parent 5edf275 commit 8b9af49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/msm/adreno/a5xx_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ static int a5xx_hw_init(struct msm_gpu *gpu)

if (IS_ERR(a5xx_gpu->shadow))
return PTR_ERR(a5xx_gpu->shadow);

msm_gem_object_set_name(a5xx_gpu->shadow_bo, "shadow");
}

gpu_write64(gpu, REG_A5XX_CP_RB_RPTR_ADDR,
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/msm/adreno/a6xx_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,8 @@ static int hw_init(struct msm_gpu *gpu)

if (IS_ERR(a6xx_gpu->shadow))
return PTR_ERR(a6xx_gpu->shadow);

msm_gem_object_set_name(a6xx_gpu->shadow_bo, "shadow");
}

gpu_write64(gpu, REG_A6XX_CP_RB_RPTR_ADDR_LO,
Expand Down

0 comments on commit 8b9af49

Please sign in to comment.