diff options
author | Alex Sierra <alex.sierra@amd.com> | 2021-06-07 13:14:50 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-13 14:14:34 -0400 |
commit | 71cbfeb38141928f65dd84db61df01e36119cceb (patch) | |
tree | f39e4319a2b4d51f37691dd366488bca046054fa /drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c | |
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 <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c')
0 files changed, 0 insertions, 0 deletions