drm/amdgpu: move VM table mapping into the backend as well
authorChristian König <christian.koenig@amd.com>
Thu, 21 Mar 2019 15:34:18 +0000 (16:34 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:40:50 +0000 (22:40 -0500)
commitecf96b52bf98a22f14bd33c7deee0aad8eb6b569
treed10af6d29f2407c86b97b4fd2118529b286a2b7e
parentdf399b064118bf9a5b9a3faaa67feb1cbb34e9d4
drm/amdgpu: move VM table mapping into the backend as well

Clean that up further and also fix another case where the BO
wasn't kmapped for CPU based updates.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-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
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c