drm/amdgpu: stop removing BOs from the LRU v3
authorChristian König <christian.koenig@amd.com>
Fri, 10 May 2019 14:09:48 +0000 (16:09 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 16:52:19 +0000 (11:52 -0500)
commit55c2e5a1600cfa9bb7afb445318d6ba1730251a5
tree4c99118d5416a5e92800c5500ed0c1a9ce9d3fed
parent94de7349f78d1c598c852eef07c9f3097bad84f9
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 <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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h