summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-08-07 09:36:01 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-08-11 11:04:24 -0400
commitddd00e33e17a62c5f44377ab42e7562ccfae7bd1 (patch)
treec891a3a9198cc82fafc2e4b2881c055a5351a272 /include/uapi
parentf72a113a71ab08c4df8a5f80ab2f8a140feb81f6 (diff)
downloadlinux-ddd00e33e17a62c5f44377ab42e7562ccfae7bd1.tar.gz
linux-ddd00e33e17a62c5f44377ab42e7562ccfae7bd1.tar.bz2
linux-ddd00e33e17a62c5f44377ab42e7562ccfae7bd1.zip
drm/radeon: add userptr flag to limit it to anonymous memory v2
Avoid problems with writeback by limiting userptr to anonymous memory. v2: add commit and code comments Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi')
-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 3a9f20930372..9720e1a36848 100644
--- a/include/uapi/drm/radeon_drm.h
+++ b/include/uapi/drm/radeon_drm.h
@@ -816,6 +816,7 @@ struct drm_radeon_gem_create {
* perform any operation.
*/
#define RADEON_GEM_USERPTR_READONLY (1 << 0)
+#define RADEON_GEM_USERPTR_ANONONLY (1 << 1)
struct drm_radeon_gem_userptr {
uint64_t addr;