OSDN Git Service

drm/amdkfd: Optimize svm range map to GPU with XNACK on
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 24 Apr 2023 18:46:16 +0000 (14:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:26:44 +0000 (09:26 -0400)
commit435af0b919bf9eb78f4e05e8596ebed9ca7885b7
tree3c352d050edcaacdaf543a3723aac713e22a0ba2
parent9420a034060a094874091cb6c6257268f08a1999
drm/amdkfd: Optimize svm range map to GPU with XNACK on

With XNACK on if svm_range_set_attr set the range access or
access_in_place attribute, we don't call svm_range_validate_and_map to
update GPU mapping. This avoids prefaulting the range pages on system
memory if the range is not prefetch to VRAM and not mapped to GPUs.

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