drm/msm: add special _get_vaddr_active() for cmdstream dumps
authorRob Clark <robdclark@gmail.com>
Fri, 15 Sep 2017 12:38:20 +0000 (08:38 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 28 Oct 2017 17:59:17 +0000 (13:59 -0400)
commitfad33f4b1073a423a9ecd2a335de05e7a3ec1f37
treeeac8a5e8b4dde64046338e698328c917ade8c6b6
parent18bb8a6c899d9e503a86198220f2a48814870bef
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>
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_rd.c