]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit4fcae787866915161f22d627328fa8d2e13d215b
tree39cb77afc487abb8816f61ef6729225be808b8ee
parent4bae05e196c518c2c95022fbdbee551bbc6893a5
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