]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Update mapping if range attributes changed
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 19 Apr 2022 01:38:43 +0000 (21:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Apr 2022 15:42:59 +0000 (11:42 -0400)
commit396528dc42061abaf0d923e428a386f23b0e9958
tree611bf084ee07662b95df85c130f9d59e7078f379
parent1c9bd5273c9ea1d50729e321a45bfe364097dd30
drm/amdkfd: Update mapping if range attributes changed

Change SVM range mapping flags or access attributes don't trigger
migration, if range is already mapped on GPUs we should update GPU
mapping and pass flush_tlb flag true to amdgpu vm.

Change SVM range preferred_loc or migration granularity don't need
update GPU mapping, skip the validate_and_map.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c