diff options
author | Rob Clark <robdclark@gmail.com> | 2016-05-17 15:44:49 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-07-16 10:09:05 -0400 |
commit | 4cd33c48ea25ba17e9d0383fe914c3e58b48f7dd (patch) | |
tree | ae23f5e63db11ceaa819bf06546d603a8b236a1d /drivers/gpu/drm/msm/msm_gem.h | |
parent | b5b4c264df4d270819676b290cef9a11d04c35f0 (diff) |
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 |