drm/amdgpu: enable huge page handling in the VM v5
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:35:38 +0000 (16:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:35:38 +0000 (16:35 -0400)
commitcf2f0a372049451eb824982b7fb26b1a15097821
treec768e35ef9cd0492d82ddc7d911d6a0676abe3de
parent6be7adb37d9bd8af02e53feb72c35e9624165889
drm/amdgpu: enable huge page handling in the VM v5

The hardware can use huge pages to map 2MB of address space with only one PDE.

v2: few cleanups and rebased
v3: skip PT updates if we are using the PDE
v4: rebased, added support for CPU based updates
v5: fix CPU based updates once more
v6: fix ndw estimation

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