drm/ttm: fix handling of TTM_PL_FLAG_TOPDOWN v2
authorChristian König <christian.koenig@amd.com>
Thu, 3 Jul 2014 07:02:23 +0000 (09:02 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Jul 2014 01:15:58 +0000 (11:15 +1000)
commite3f202798aaa808e7a38faa8c3a9f0aa93b85cc0
tree3eac926b195d382c73a900c2eae11137aab9cf09
parent4e4e7dc55af5aa62497ac060e3cfd143bd4b4db3
drm/ttm: fix handling of TTM_PL_FLAG_TOPDOWN v2

bo->mem.placement is not initialized when ttm_bo_man_get_node is called,
so the flag had no effect at all.

v2: change nouveau and vmwgfx as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
include/drm/ttm/ttm_bo_driver.h