diff options
| author | Christian König <[email protected]> | 2019-05-10 14:09:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-06-11 16:52:19 +0000 |
| commit | 55c2e5a1600cfa9bb7afb445318d6ba1730251a5 (patch) | |
| tree | 4c99118d5416a5e92800c5500ed0c1a9ce9d3fed /drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | |
| parent | drm/amdgpu: create GDS, GWS and OA in system domain (diff) | |
| download | kernel-55c2e5a1600cfa9bb7afb445318d6ba1730251a5.tar.gz kernel-55c2e5a1600cfa9bb7afb445318d6ba1730251a5.zip | |
drm/amdgpu: stop removing BOs from the LRU v3
This avoids OOM situations when we have lots of threads
submitting at the same time.
v3: apply this to the whole driver, not just CS
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Tested-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c index 06f83cac0d3a..f660628e6af9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c @@ -79,7 +79,7 @@ int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm, list_add(&csa_tv.head, &list); amdgpu_vm_get_pd_bo(vm, &list, &pd); - r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL, true); + r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL, false); if (r) { DRM_ERROR("failed to reserve CSA,PD BOs: err=%d\n", r); return r; |
