]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: ensure ttm for new node is bound before calling move_notify()
authorBen Skeggs <bskeggs@redhat.com>
Mon, 22 Aug 2011 03:15:05 +0000 (03:15 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Aug 2011 08:38:30 +0000 (09:38 +0100)
commita4ddf2fab123294f48bdbe787e4f2db3a552f7df
treef48c0874a1e5c25f39c140af99a3ba722142db98
parente5698fc1c7a694caf0632621005d2d2c74cc52ec
drm/ttm: ensure ttm for new node is bound before calling move_notify()

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 <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c