diff options
author | Roger He <Hongbo.He@amd.com> | 2017-12-08 00:31:52 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-15 17:10:54 -0500 |
commit | 9251859a9adb8e5906402acc9d705149d937bf8b (patch) | |
tree | 0b187bef0c4afa1ebf2dd07f089aff882cc3432d /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 8836e4b8d3a04a5097a83c5f9b25662fa6a9ebbc (diff) |
drm/amdgpu: set allow_reserved_eviction and resv when bo allocation and cs
enable eviction of other per VM BOs during allocation and allows
reaping of deleted BOs during CS.
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 44523a88ebb2..5e539fc5b05f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -343,7 +343,12 @@ static int amdgpu_cs_bo_validate(struct amdgpu_cs_parser *p, | |||
343 | struct amdgpu_bo *bo) | 343 | struct amdgpu_bo *bo) |
344 | { | 344 | { |
345 | struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); | 345 | struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); |
346 | struct ttm_operation_ctx ctx = { true, false }; | 346 | struct ttm_operation_ctx ctx = { |
347 | .interruptible = true, | ||
348 | .no_wait_gpu = false, | ||
349 | .allow_reserved_eviction = false, | ||
350 | .resv = bo->tbo.resv | ||
351 | }; | ||
347 | uint32_t domain; | 352 | uint32_t domain; |
348 | int r; | 353 | int r; |
349 | 354 | ||