diff options
| author | Alex Sierra <[email protected]> | 2021-06-07 13:14:50 -0500 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-10-13 14:14:34 -0400 |
| commit | 71cbfeb38141928f65dd84db61df01e36119cceb (patch) | |
| tree | f39e4319a2b4d51f37691dd366488bca046054fa /tools/perf/scripts/python | |
| parent | 369b7d04baf3334d3473b2bb0b210a4e51d7bb67 (diff) | |
drm/amdkfd: avoid conflicting address mappings
[Why]
Avoid conflict with address ranges mapped by SVM
mechanism that try to be allocated again through
ioctl_alloc in the same process. And viceversa.
[How]
For ioctl_alloc_memory_of_gpu allocations
Check if the address range passed into ioctl memory
alloc does not exist already in the kfd_process
svms->objects interval tree.
For SVM allocations
Look for the address range into the interval tree VA from
the VM inside of each pdds used in a kfd_process.
Signed-off-by: Alex Sierra <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions