]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1978f72bc061bee0fb78ca70ed56b9404923adca
treec768e35ef9cd0492d82ddc7d911d6a0676abe3de
parentb6da22a78611668bc573b54eb1bcd9d46161e918
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