summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorChristian König2014-08-07 09:36:03 +0200
committerAlex Deucher2014-08-11 17:04:26 +0200
commit341cb9e426fac32523427c80c67543a16be46605 (patch)
treee83be125f262aa6dd3cd345bb0f55d735abfc44e /include/uapi/drm
parentdrm/radeon: add userptr flag to directly validate the BO to GTT (diff)
downloadkernel-qcow2-linux-341cb9e426fac32523427c80c67543a16be46605.tar.gz
kernel-qcow2-linux-341cb9e426fac32523427c80c67543a16be46605.tar.xz
kernel-qcow2-linux-341cb9e426fac32523427c80c67543a16be46605.zip
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 5dc61c2d4c73..c77495ffc44f 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;