diff options
author | Christian König <christian.koenig@amd.com> | 2018-08-29 08:52:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-10 23:41:46 -0400 |
commit | 3d5fe658b5b3f3e0d5605a540d6c1a67d9b15735 (patch) | |
tree | e92e877d8fc7dd549def55a9dd33c8e578532d3c /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 485fc361d38aad265239547a2d0a02517576f309 (diff) |
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_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 0cbf651a88a6..de990bdcdd6c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -163,10 +163,7 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) | |||
163 | 163 | ||
164 | if (domain & AMDGPU_GEM_DOMAIN_GTT) { | 164 | if (domain & AMDGPU_GEM_DOMAIN_GTT) { |
165 | places[c].fpfn = 0; | 165 | places[c].fpfn = 0; |
166 | if (flags & AMDGPU_GEM_CREATE_SHADOW) | 166 | places[c].lpfn = 0; |
167 | places[c].lpfn = adev->gmc.gart_size >> PAGE_SHIFT; | ||
168 | else | ||
169 | places[c].lpfn = 0; | ||
170 | places[c].flags = TTM_PL_FLAG_TT; | 167 | places[c].flags = TTM_PL_FLAG_TT; |
171 | if (flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC) | 168 | if (flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC) |
172 | places[c].flags |= TTM_PL_FLAG_WC | | 169 | places[c].flags |= TTM_PL_FLAG_WC | |