diff options
author | Christian König <christian.koenig@amd.com> | 2019-05-16 04:25:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-11 12:52:12 -0400 |
commit | 94de7349f78d1c598c852eef07c9f3097bad84f9 (patch) | |
tree | aee7e1b706cadbaebe7542fc09b33d10beae3cbd /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | a3e7738d577162557e03176aed1594746fc2388e (diff) |
drm/amdgpu: create GDS, GWS and OA in system domain
And only move them in on validation. This allows for better control
when multiple processes are fighting over those resources.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@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 | 6 |
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 | ||