diff options
author | Philip Yang <Philip.Yang@amd.com> | 2024-06-20 12:44:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-07-24 14:43:28 -0400 |
commit | b049504e211e8f4dbcd40434f2dcab2215ea1039 (patch) | |
tree | d3073239bf55d201e506f26dfa6f209ad999cd2e /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c | |
parent | bd4bea5ab2bda37ddb092a978218c4d9b46927e6 (diff) |
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 <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c')
0 files changed, 0 insertions, 0 deletions