summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-08-07 09:36:03 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-08-11 11:04:26 -0400
commit341cb9e426fac32523427c80c67543a16be46605 (patch)
treee83be125f262aa6dd3cd345bb0f55d735abfc44e /include/uapi/drm
parent2a84a4476d6e13de72472f6ca4338aed0a8269b8 (diff)
downloadop-kernel-dev-341cb9e426fac32523427c80c67543a16be46605.zip
op-kernel-dev-341cb9e426fac32523427c80c67543a16be46605.tar.gz
drm/radeon: add userptr flag to register MMU notifier v3
Whenever userspace mapping related to our userptr change we wait for it to become idle and unmap it from GTT. v2: rebased, fix mutex unlock in error path v3: improve commit message Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r--include/uapi/drm/radeon_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h
index 5dc61c2..c77495f 100644
--- a/include/uapi/drm/radeon_drm.h
+++ b/include/uapi/drm/radeon_drm.h
@@ -818,6 +818,7 @@ struct drm_radeon_gem_create {
#define RADEON_GEM_USERPTR_READONLY (1 << 0)
#define RADEON_GEM_USERPTR_ANONONLY (1 << 1)
#define RADEON_GEM_USERPTR_VALIDATE (1 << 2)
+#define RADEON_GEM_USERPTR_REGISTER (1 << 3)
struct drm_radeon_gem_userptr {
uint64_t addr;
OpenPOWER on IntegriCloud