aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-03-13 10:13:39 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:54:01 -0400
commit80f95c579d800fa22e9e57ecb3d50b9e93bc1f82 (patch)
tree833a2a919c669f013318bf84397230f9553afe83 /include/uapi/drm
parentdrm/amdgpu: implement AMDGPU_VA_OP_CLEAR v2 (diff)
downloadlinux-dev-80f95c579d800fa22e9e57ecb3d50b9e93bc1f82.tar.xz
linux-dev-80f95c579d800fa22e9e57ecb3d50b9e93bc1f82.zip
drm/amdgpu: add a VM mapping replace operation v2
Add a new operation to replace mappings in a VM with a new one. v2: Fix Jerry's comment, separate out clear operation. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r--include/uapi/drm/amdgpu_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index 199f1b46fd2c..37e2c0da01fb 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -351,6 +351,7 @@ struct drm_amdgpu_gem_op {
#define AMDGPU_VA_OP_MAP 1
#define AMDGPU_VA_OP_UNMAP 2
#define AMDGPU_VA_OP_CLEAR 3
+#define AMDGPU_VA_OP_REPLACE 4
/* Delay the page table update till the next CS */
#define AMDGPU_VM_DELAY_UPDATE (1 << 0)