]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix amdgpu_ttm_bo_eviction_valuable
authorChristian König <christian.koenig@amd.com>
Thu, 20 Apr 2017 10:11:47 +0000 (12:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:52 +0000 (17:32 -0400)
commit349103c66f89df71d4351f3412e9c3b7e0cb436a
tree39cb77afc487abb8816f61ef6729225be808b8ee
parent34145cbb40c9004a6861296dff75d79b550fe2e6
drm/amdgpu: fix amdgpu_ttm_bo_eviction_valuable

BOs not mapped into the GART are always valuable for an eviction. Otherwise we
don't correctly swap them out on VRAM evictions during memory pressure.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c