Re: [PATCH] drm/amdkfd: Optimize svm range map to GPU with XNACK on

2023-04-28 Thread Felix Kuehling
On 2023-04-28 11:24, Philip Yang wrote: On 2023-04-27 12:35, Felix Kuehling wrote: On 2023-04-24 14:38, Philip Yang wrote: 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 prefaul

Re: [PATCH] drm/amdkfd: Optimize svm range map to GPU with XNACK on

2023-04-28 Thread Philip Yang
On 2023-04-27 12:35, Felix Kuehling wrote: On 2023-04-24 14:38, Philip Yang wrote: 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

Re: [PATCH] drm/amdkfd: Optimize svm range map to GPU with XNACK on

2023-04-27 Thread Felix Kuehling
On 2023-04-24 14:38, Philip Yang wrote: 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 ma

[PATCH] drm/amdkfd: Optimize svm range map to GPU with XNACK on

2023-04-24 Thread Philip Yang
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 -