]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdkfd: Use partial hmm page walk during buffer validation in SVM
authorXiaogang Chen <xiaogang.chen@amd.com>
Fri, 15 Dec 2023 23:14:07 +0000 (17:14 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Dec 2023 19:58:41 +0000 (14:58 -0500)
commit006ad514a50cc49d904fd004b69c842ddfaabf1f
treefe65c987ca8aa7fbefdf4989542bbe627bbc7577
parente48c8cbeebbd7e2e4d3fe8508b4beb7c00800de4
drm/amdkfd: Use partial hmm page walk during buffer validation in SVM

SVM uses hmm page walk to valid buffer before map to gpu vm. After have partial
migration/mapping do validation on same vm range as migration/map do instead of
whole svm range that can be very large. This change is expected to improve svm
code performance.

Signed-off-by: Xiaogang Chen <xiaogang.chen@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_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c