aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorPhilip Yang <[email protected]>2024-06-20 16:44:57 +0000
committerAlex Deucher <[email protected]>2024-07-24 18:43:28 +0000
commitb049504e211e8f4dbcd40434f2dcab2215ea1039 (patch)
treed3073239bf55d201e506f26dfa6f209ad999cd2e /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu/gfx9.4.3: Enable bad opcode interrupt (diff)
downloadkernel-b049504e211e8f4dbcd40434f2dcab2215ea1039.tar.gz
kernel-b049504e211e8f4dbcd40434f2dcab2215ea1039.zip
drm/amdkfd: Validate user queue svm memory residency
Queue CWSR area maybe registered to GPU as svm memory, create queue to ensure svm mapped to GPU with KFD_IOCTL_SVM_FLAG_GPU_ALWAYS_MAPPED flag. Add queue_refcount to struct svm_range, to track queue CWSR area usage. Because unmap mmu notifier callback return value is ignored, if application unmap the CWSR area while queue is active, pr_warn message in dmesg log. To be safe, evict user queue. Signed-off-by: Philip Yang <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions