Files
linux/drivers
Philip Yang b049504e21 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>
2024-07-24 14:43:28 -04:00
..
2024-06-21 12:55:12 +02:00
2024-07-05 10:47:28 +02:00
2024-04-23 13:16:03 +02:00
2024-05-23 00:29:19 +02:00
2024-07-05 10:47:28 +02:00
2024-07-05 10:47:28 +02:00
2024-05-07 23:40:46 +02:00
2024-04-23 13:16:03 +02:00
2024-04-29 16:45:53 +02:00