diff options
author | Christian König <christian.koenig@amd.com> | 2014-08-07 09:36:03 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-08-11 11:04:26 -0400 |
commit | 341cb9e426fac32523427c80c67543a16be46605 (patch) | |
tree | e83be125f262aa6dd3cd345bb0f55d735abfc44e /include/uapi/drm/radeon_drm.h | |
parent | 2a84a4476d6e13de72472f6ca4338aed0a8269b8 (diff) | |
download | linux-stable-341cb9e426fac32523427c80c67543a16be46605.tar.gz linux-stable-341cb9e426fac32523427c80c67543a16be46605.tar.bz2 linux-stable-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/radeon_drm.h')
-rw-r--r-- | include/uapi/drm/radeon_drm.h | 1 |
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; |