[PATCH 2/2] drm/ttm: ensure ttm for new node is bound before calling move_notify()

2011-08-21 Thread skeggsb
From: Ben Skeggs This was true for new TTM_PL_SYSTEM and new TTM_PL_TT cases, but wasn't the case on TTM_PL_SYSTEM<->TTM_PL_TT moves, which causes trouble on some paths as nouveau's move_notify() hook requires that the dma addresses be valid at this point. Signed-off-by: Ben Skeggs --- drivers

[PATCH 1/2] drm/ttm: unbind ttm before destroying node in accel move cleanup

2011-08-21 Thread skeggsb
From: Ben Skeggs Nouveau makes the assumption that if a TTM is bound there will be a mm_node around for it and the backwards ordering here resulted in a use-after-free on some eviction paths. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/ttm/ttm_bo_util.c |2 +- 1 files changed, 1 insertio