drm/amdgpu: meld together VM fragment and huge page handling
authorChristian König <christian.koenig@amd.com>
Thu, 6 Sep 2018 15:13:06 +0000 (17:13 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:10 +0000 (15:14 -0500)
commitdfcd99f6273e7ae9aae10eafacc5521018bee143
tree440a266b0a9717c9206274e30477f15ee68585d1
parentdfa70550f5b77252d99ba9c410b9fbe6e4088e51
drm/amdgpu: meld together VM fragment and huge page handling

This optimizes the generating of PTEs by walking the hierarchy only once
for a range and making changes as necessary.

It allows for both huge (2MB) as well giant (1GB) pages to be used on
Vega and Raven.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c