drm/amdkfd: remap unaligned svm ranges that have split
authorAlex Sierra <alex.sierra@amd.com>
Tue, 17 Oct 2023 22:08:56 +0000 (17:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:29 +0000 (15:11 -0400)
commit7ef6b2d4b7e5c0d105c688a4da1f0ac122e3aa44
treecbcf6605689c7b9593b0d67857adeddf2261587c
parentde009982c6aa8363b2bc8800fb0a13896d264853
drm/amdkfd: remap unaligned svm ranges that have split

Split SVM ranges that have been mapped into 2MB page table entries,
require to be remap in case the split has happened in a non-aligned
VA.
[WHY]:
This condition causes the 2MB page table entries be split into 4KB
PTEs.

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>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c