diff options
| author | Philip Yang <[email protected]> | 2024-06-20 12:44:57 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-24 14:43:28 -0400 |
| commit | b049504e211e8f4dbcd40434f2dcab2215ea1039 (patch) | |
| tree | d3073239bf55d201e506f26dfa6f209ad999cd2e /tools/perf/scripts/python/stat-cpi.py | |
| 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 <[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 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions