diff options
author | Christian König <christian.koenig@amd.com> | 2017-03-13 10:13:39 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:54:01 -0400 |
commit | 80f95c579d800fa22e9e57ecb3d50b9e93bc1f82 (patch) | |
tree | 833a2a919c669f013318bf84397230f9553afe83 /include/uapi | |
parent | dc54d3d1744d23ed0b345fd8bc1c493b74e8df44 (diff) | |
download | op-kernel-dev-80f95c579d800fa22e9e57ecb3d50b9e93bc1f82.zip op-kernel-dev-80f95c579d800fa22e9e57ecb3d50b9e93bc1f82.tar.gz |
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')
-rw-r--r-- | include/uapi/drm/amdgpu_drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index 199f1b4..37e2c0d 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) |