aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 93b2c5a48a71..30493429851e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -495,7 +495,11 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
495#endif 495#endif
496 496
497 bo->tbo.bdev = &adev->mman.bdev; 497 bo->tbo.bdev = &adev->mman.bdev;
498 amdgpu_bo_placement_from_domain(bo, bp->domain); 498 if (bp->domain & (AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA |
499 AMDGPU_GEM_DOMAIN_GDS))
500 amdgpu_bo_placement_from_domain(bo, AMDGPU_GEM_DOMAIN_CPU);
501 else
502 amdgpu_bo_placement_from_domain(bo, bp->domain);
499 if (bp->type == ttm_bo_type_kernel) 503 if (bp->type == ttm_bo_type_kernel)
500 bo->tbo.priority = 1; 504 bo->tbo.priority = 1;
501 505