diff options
| author | Philip Yang <Philip.Yang@amd.com> | 2024-06-20 19:44:57 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-07-24 21:43:28 +0300 |
| commit | b049504e211e8f4dbcd40434f2dcab2215ea1039 (patch) | |
| tree | d3073239bf55d201e506f26dfa6f209ad999cd2e /scripts/checkstack.pl | |
| parent | bd4bea5ab2bda37ddb092a978218c4d9b46927e6 (diff) | |
| download | linux-b049504e211e8f4dbcd40434f2dcab2215ea1039.tar.xz | |
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 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
