OSDN Git Service

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)
commit4853cbcd94bdd654e94aa40ae718efcf5b6ae57a
tree0c1aeb0676a69eaab207303ef144d250d782f1e8
parentf864df76ff1021b21776a7df029c0da884794c28
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