drm/ttm: call driver move_notify() when doing system->tt bo moves
authorBen Skeggs <bskeggs@redhat.com>
Wed, 2 Feb 2011 00:27:10 +0000 (00:27 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Feb 2011 01:09:24 +0000 (11:09 +1000)
commit82ef594efb16d1747c55dc449a8eeb38ea97ef80
treeffce6f452a4a8415bdcf4f3e574e9576f11f2e51
parent9da12b6aeb8bde8cc3aecba12b0ec1114d6dcfea
drm/ttm: call driver move_notify() when doing system->tt bo moves

Nouveau doesn't have enough information at ttm_backend_func.bind() time
to implement things like tiled GART, or to keep a buffer at a constant
address in the GPU virtual address space no matter where in physical
memory it's placed.

To resolve this, nouveau will handle binding of all buffers to the GPU
itself from the move_notify() hook.  This commit ensures it's called
for all buffer moves.

Talked to Dave about the impact on radeon, which uses move_notify, it
doesn't look like anything should break there.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Thomas Hellstrom <thomas@shipmail.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c