OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Oct 2011 05:10:15 +0000 (07:10 +0200)
commit379791a66688385cf75c8aece1a81fc68f536cd4
treec6cdde252634ff6b4d0fa313a05b5b3834aaad16
parentc53c89aba3ebdfc3e9acdb18bb5ee9d2f8a328d0
drm/ttm: ensure ttm for new node is bound before calling move_notify()

commit 8d3bb23609d4ae22803a15d232289fc09a7b61c4 upstream.

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>
Cc: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/ttm/ttm_bo.c