drm/amdgpu: increase hmm range get pages timeout
authorJames Zhu <James.Zhu@amd.com>
Fri, 8 Dec 2023 22:41:25 +0000 (17:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Dec 2023 17:16:34 +0000 (12:16 -0500)
commit78b4dfd35999e22b4f589a3e070c4aa5f07ce3a2
treefc2feb9a7a94a0f14d447e5c14bca7c3da37830d
parent65a618dd73216e111baab144a837f842dbb6a738
drm/amdgpu: increase hmm range get pages timeout

When application tries to allocate all system memory and cause memory
to swap out. Needs more time for hmm_range_fault to validate the
remaining page for allocation. To be safe, increase timeout value to
1 second for 64MB range.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c