summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_rd.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-09-15 08:38:20 -0400
committerRob Clark <robdclark@gmail.com>2017-10-28 13:59:17 -0400
commitfad33f4b1073a423a9ecd2a335de05e7a3ec1f37 (patch)
treeeac8a5e8b4dde64046338e698328c917ade8c6b6 /drivers/gpu/drm/msm/msm_rd.c
parent18bb8a6c899d9e503a86198220f2a48814870bef (diff)
downloadlinux-fad33f4b1073a423a9ecd2a335de05e7a3ec1f37.tar.bz2
drm/msm: add special _get_vaddr_active() for cmdstream dumps
Prep work for adding a debugfs file that dumps just submits which trigger hangs/faults. In this case the bo may already be in the MADV_DONTNEED state, but will be still on the active list (since the submit hasn't completed yet). So the normal check that the bo is in the WILLNEED state does not apply. (But of course the bo should definitely not be in the PURGED state!) Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_rd.c')
-rw-r--r--drivers/gpu/drm/msm/msm_rd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_rd.c b/drivers/gpu/drm/msm/msm_rd.c
index 4c858d860c79..47c0c78f2076 100644
--- a/drivers/gpu/drm/msm/msm_rd.c
+++ b/drivers/gpu/drm/msm/msm_rd.c
@@ -286,7 +286,7 @@ static void snapshot_buf(struct msm_rd_state *rd,
if (!(submit->bos[idx].flags & MSM_SUBMIT_BO_READ))
return;
- buf = msm_gem_get_vaddr(&obj->base);
+ buf = msm_gem_get_vaddr_active(&obj->base);
if (IS_ERR(buf))
return;