]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Don't split unchanged SVM ranges
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 8 Dec 2021 02:04:06 +0000 (21:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:32:35 +0000 (16:32 -0500)
commit413b9549af78f124838fecc4a2d0060447d78758
tree0c1aeb0676a69eaab207303ef144d250d782f1e8
parente2cfab18b29d9d7571500f9a080c837af0358819
drm/amdkfd: Don't split unchanged SVM ranges

If an existing SVM range overlaps an svm_range_set_attr call, we would
normally split it in order to update only the overlapping part.
However, if the attributes of the existing range would not be changed
splitting it is unnecessary.

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