-
- Downloads
"README.md" did not exist on "35ed1d2bfff7b1969e7f99f3641a83ea54f037e2"
drm/amdkfd: Remove arbitrary timeout for hmm_range_fault
On system with khugepaged enabled and user cases with THP buffer, the hmm_range_fault may takes > 15 seconds to return -EBUSY, the arbitrary timeout value is not accurate, cause memory allocation failure. Remove the arbitrary timeout value, return EAGAIN to application if hmm_range_fault return EBUSY, then userspace libdrm and Thunk will call ioctl again. Change EAGAIN to debug message as this is not error. 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>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 4 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c 3 additions, 9 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c
- drivers/gpu/drm/amd/amdkfd/kfd_svm.c 1 addition, 4 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_svm.c
Loading
Please register or sign in to comment