]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdkfd: support larger svm range allocation
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 30 Mar 2021 18:02:53 +0000 (14:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:46:50 +0000 (21:46 -0400)
commitd8a3c1c80ceb656de00b45fe1595a040e5535202
tree0b4af8bbd01dd06c1fa202b931a6aeb6db69d0f3
parent04d8d73dbcbe645a378fca6adc6f0e7111e46c17
drm/amdkfd: support larger svm range allocation

For larger range allocation, if hmm_range_fault return -EBUSY, set retry
timeout based on 1 second for every 512MB, this is safe timeout value.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c