summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm
diff options
context:
space:
mode:
authorMichel Dänzer2014-10-28 10:35:04 +0100
committerAlex Deucher2014-11-12 17:56:33 +0100
commit507d0ca71bcbefd8623eb20f4de1b5f4e103a48b (patch)
treeaaf272bc6e7171ce71dc73b132b3655fae57b336 /drivers/gpu/drm/ttm
parentdrm/ttm: Add DRM_MM_SEARCH_BELOW for TTM_PL_FLAG_TOPDOWN (diff)
downloadkernel-qcow2-linux-507d0ca71bcbefd8623eb20f4de1b5f4e103a48b.tar.gz
kernel-qcow2-linux-507d0ca71bcbefd8623eb20f4de1b5f4e103a48b.tar.xz
kernel-qcow2-linux-507d0ca71bcbefd8623eb20f4de1b5f4e103a48b.zip
drm/ttm: Use only DRM_MM_SEARCH_BELOW for TTM_PL_FLAG_TOPDOWN
DRM_MM_SEARCH_BEST gets the smallest hole which can fit the BO. That seems against the idea of TTM_PL_FLAG_TOPDOWN: * The smallest hole may be in the overall bottom of the area * If the hole isn't much larger than the BO, it doesn't make much difference whether the BO is placed at the bottom or at the top of the hole Reviewed-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_manager.c b/drivers/gpu/drm/ttm/ttm_bo_manager.c
index 1e93f6c198a2..aa0bd054d3e9 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_manager.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_manager.c
@@ -69,7 +69,7 @@ static int ttm_bo_man_get_node(struct ttm_mem_type_manager *man,
return -ENOMEM;
if (place->flags & TTM_PL_FLAG_TOPDOWN) {
- sflags |= DRM_MM_SEARCH_BELOW;
+ sflags = DRM_MM_SEARCH_BELOW;
aflags = DRM_MM_CREATE_TOP;
}