diff options
author | Rob Clark <robdclark@gmail.com> | 2016-05-17 21:44:49 +0200 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-07-16 16:09:05 +0200 |
commit | 4cd33c48ea25ba17e9d0383fe914c3e58b48f7dd (patch) | |
tree | ae23f5e63db11ceaa819bf06546d603a8b236a1d /drivers/gpu/drm/msm/msm_gem.h | |
parent | drm/msm: use mutex_lock_interruptible for submit ioctl (diff) | |
download | linux-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.h | 5 |
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 |