drm/amdgpu: improve HMM error -ENOMEM and -EBUSY handling
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 14 Jun 2019 18:03:36 +0000 (14:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jun 2019 16:33:41 +0000 (11:33 -0500)
commite82fdb16a0650250e27f7241133682342d476ad3
tree1ef548a587852f7b25c3d5b9ec62364227827649
parentc1d827d62f71eb6eaa0b2ffad4d893faa99e4c87
drm/amdgpu: improve HMM error -ENOMEM and -EBUSY handling

Under memory pressure, hmm_range_fault may return error code -ENOMEM
or -EBUSY, change pr_info to pr_debug to remove unnecessary kernel log
message because we will retry restore again.

Call get_user_pages_done if TTM get user pages failed will have
WARN_ONCE kernel calling stack dump log.

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/amdgpu/amdgpu_amdkfd_gpuvm.c