]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amdgpu: Support page directory update via CPU
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Thu, 11 May 2017 19:50:08 +0000 (15:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2017 15:29:55 +0000 (11:29 -0400)
commit3c8241722bc4f5879db42d3acd7fa840c8e608e7
tree02ed6955507ee79f37a287e76ac8ab9892407507
parenta6583af4ae1c4afa755d8d4a4e7768dd36176395
drm/amdgpu: Support page directory update via CPU

If amdgpu.vm_update_context param is set to use CPU, then Page
Directories will be updated by CPU instead of SDMA

v2: Call amdgpu_vm_bo_wait before updating the page tables to ensure the
PD/PT BOs are free

v3: Minor changes - due to amdgpu_vm_bo_wait() prototype change, local
variable declaration order and function comments.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@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