summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2019-09-16 18:33:28 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-09-16 18:42:55 +0300
commit47ca7efa4c13f8698cddc0b9c96938e7febe9258 (patch)
tree6257aaec6ec041f11a17f15e2b5a5fd96d5d2113 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parenta2cf324785a6dea0a221f5cdfb945b59d2153eeb (diff)
downloadlinux-47ca7efa4c13f8698cddc0b9c96938e7febe9258.tar.xz
drm/amdgpu: allow direct submission in the VM backends v2
This allows us to update page tables directly while in a page fault. v2: use direct/delayed entities and still wait for moves Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 7138722ee55f..54dcd0bcce1a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -202,6 +202,11 @@ struct amdgpu_vm_update_params {
struct amdgpu_vm *vm;
/**
+ * @direct: if changes should be made directly
+ */
+ bool direct;
+
+ /**
* @pages_addr:
*
* DMA addresses to use for mapping