提交 b2c18f0a 编写于 作者: C Christian König 提交者: Alex Deucher

drm/amdgpu: fix potential VM faults

When we allocate new page tables under memory
pressure we should not evict old ones.
Signed-off-by: NChristian König <christian.koenig@amd.com>
Acked-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 b1465700
...@@ -517,7 +517,8 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev, ...@@ -517,7 +517,8 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
.interruptible = (bp->type != ttm_bo_type_kernel), .interruptible = (bp->type != ttm_bo_type_kernel),
.no_wait_gpu = bp->no_wait_gpu, .no_wait_gpu = bp->no_wait_gpu,
.resv = bp->resv, .resv = bp->resv,
.flags = TTM_OPT_FLAG_ALLOW_RES_EVICT .flags = bp->type != ttm_bo_type_kernel ?
TTM_OPT_FLAG_ALLOW_RES_EVICT : 0
}; };
struct amdgpu_bo *bo; struct amdgpu_bo *bo;
unsigned long page_align, size = bp->size; unsigned long page_align, size = bp->size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册