aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorRoger He <Hongbo.He@amd.com>2017-12-08 00:31:52 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-15 17:10:54 -0500
commit9251859a9adb8e5906402acc9d705149d937bf8b (patch)
tree0b187bef0c4afa1ebf2dd07f089aff882cc3432d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent8836e4b8d3a04a5097a83c5f9b25662fa6a9ebbc (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_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index dc0a8be98043..86340cfa6be7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -327,7 +327,12 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
327 uint64_t init_value, 327 uint64_t init_value,
328 struct amdgpu_bo **bo_ptr) 328 struct amdgpu_bo **bo_ptr)
329{ 329{
330 struct ttm_operation_ctx ctx = { !kernel, false }; 330 struct ttm_operation_ctx ctx = {
331 .interruptible = !kernel,
332 .no_wait_gpu = false,
333 .allow_reserved_eviction = true,
334 .resv = resv
335 };
331 struct amdgpu_bo *bo; 336 struct amdgpu_bo *bo;
332 enum ttm_bo_type type; 337 enum ttm_bo_type type;
333 unsigned long page_align; 338 unsigned long page_align;