drm/amdgpu: Fix acquiring VM on large-BAR systems
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 23 Mar 2018 19:30:35 +0000 (15:30 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 23 Mar 2018 19:30:35 +0000 (15:30 -0400)
commit810955ba712fc5c517b5e999fd69bfd20251effb
treee19df6b62d32cc739e1439675503dc214ade89f3
parent374200b154ae48e8f011fb74dab21f80459f9e47
drm/amdgpu: Fix acquiring VM on large-BAR systems

On large-BAR systems the VM page tables for compute are accessed by
the CPU. Always allow CPU access to the page directory so that it can
be used later by the CPU when a VM is converted to a compute VM.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c