aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-08-29 14:52:50 +0200
committerAlex Deucher <alexander.deucher@amd.com>2018-09-10 22:41:46 -0500
commit3d5fe658b5b3f3e0d5605a540d6c1a67d9b15735 (patch)
treee92e877d8fc7dd549def55a9dd33c8e578532d3c /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amdgpu: use the AGP aperture for system memory access v2 (diff)
downloadlinux-dev-3d5fe658b5b3f3e0d5605a540d6c1a67d9b15735.tar.xz
linux-dev-3d5fe658b5b3f3e0d5605a540d6c1a67d9b15735.zip
drm/amdgpu: manually map the shadow BOs again
Otherwise we won't be able to use the AGP aperture. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 3163351508cf..ea5e277ae038 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -438,6 +438,11 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,
r = amdgpu_ttm_alloc_gart(&bo->tbo);
if (r)
break;
+ if (bo->shadow) {
+ r = amdgpu_ttm_alloc_gart(&bo->shadow->tbo);
+ if (r)
+ break;
+ }
amdgpu_vm_bo_relocated(bo_base);
}
}