summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2025-06-23 16:29:38 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-09-15 16:52:15 -0400
commit9e46b8bb0539d7bc9a9e7b3072fa4f6082490392 (patch)
tree93d78c794a13d33285ddabed11f67bada7815813 /drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
parent4ba48fc3dac4c1dd4b54269afc40e43297f9e073 (diff)
drm/amdgpu: validate userq buffer virtual address and size
It needs to validate the userq object virtual address to determine whether it is residented in a valid vm mapping. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
index da7e75cda4f8..c027dd916672 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
@@ -137,4 +137,6 @@ int amdgpu_userq_stop_sched_for_enforce_isolation(struct amdgpu_device *adev,
int amdgpu_userq_start_sched_for_enforce_isolation(struct amdgpu_device *adev,
u32 idx);
+int amdgpu_userq_input_va_validate(struct amdgpu_vm *vm, u64 addr,
+ u64 expected_size);
#endif