summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_gem.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-05-17 21:44:49 +0200
committerRob Clark <robdclark@gmail.com>2016-07-16 16:09:05 +0200
commit4cd33c48ea25ba17e9d0383fe914c3e58b48f7dd (patch)
treeae23f5e63db11ceaa819bf06546d603a8b236a1d /drivers/gpu/drm/msm/msm_gem.h
parentdrm/msm: use mutex_lock_interruptible for submit ioctl (diff)
downloadlinux-4cd33c48ea25ba17e9d0383fe914c3e58b48f7dd.tar.xz
linux-4cd33c48ea25ba17e9d0383fe914c3e58b48f7dd.zip
drm/msm: add madvise ioctl
Doesn't do anything too interesting until we wire up shrinker. Pretty much lifted from i915. Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem.h')
-rw-r--r--drivers/gpu/drm/msm/msm_gem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem.h b/drivers/gpu/drm/msm/msm_gem.h
index 9facd4b6ffd9..fa8e1f16f18e 100644
--- a/drivers/gpu/drm/msm/msm_gem.h
+++ b/drivers/gpu/drm/msm/msm_gem.h
@@ -29,6 +29,11 @@ struct msm_gem_object {
uint32_t flags;
+ /**
+ * Advice: are the backing pages purgeable?
+ */
+ uint8_t madv;
+
/* And object is either:
* inactive - on priv->inactive_list
* active - on one one of the gpu's active_list.. well, at