diff options
author | Rob Clark <robdclark@gmail.com> | 2017-09-15 08:38:20 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-10-28 13:59:17 -0400 |
commit | fad33f4b1073a423a9ecd2a335de05e7a3ec1f37 (patch) | |
tree | eac8a5e8b4dde64046338e698328c917ade8c6b6 /drivers/gpu/drm/msm/msm_drv.h | |
parent | 18bb8a6c899d9e503a86198220f2a48814870bef (diff) | |
download | lwn-fad33f4b1073a423a9ecd2a335de05e7a3ec1f37.tar.gz lwn-fad33f4b1073a423a9ecd2a335de05e7a3ec1f37.zip |
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_drv.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index c46dc12dbbcc..666fce66f9dd 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -213,6 +213,7 @@ struct drm_gem_object *msm_gem_prime_import_sg_table(struct drm_device *dev, int msm_gem_prime_pin(struct drm_gem_object *obj); void msm_gem_prime_unpin(struct drm_gem_object *obj); void *msm_gem_get_vaddr(struct drm_gem_object *obj); +void *msm_gem_get_vaddr_active(struct drm_gem_object *obj); void msm_gem_put_vaddr(struct drm_gem_object *obj); int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv); int msm_gem_sync_object(struct drm_gem_object *obj, |