drm/amdgpu: Avoid endless loop in GPUVM fragment processing
authorFelix Kuehling <Felix.Kuehling@amd.com>
Sun, 25 Nov 2018 04:25:04 +0000 (23:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 19:38:48 +0000 (14:38 -0500)
commit1954db153d181e32017804e353e09ffe669c000b
treecb868a271f83fb6157b3f2b7fed0411c2d2f8294
parent9ce2b991f7ea45b913c3c391bb652dd95dd78876
drm/amdgpu: Avoid endless loop in GPUVM fragment processing

Don't bounce back to the root level for fragment processing, because
huge pages are not supported at that level. This is unlikely to happen
with the default VM size on Vega, but can be exposed by limiting the
VM size with the amdgpu.vm_size module parameter.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c