drm/nouveau/kms: add support for new TTM fault callback V5
authorJerome Glisse <jglisse@redhat.com>
Fri, 9 Apr 2010 12:39:25 +0000 (14:39 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Apr 2010 04:12:34 +0000 (14:12 +1000)
This add the support for the new fault callback, does change anything
from driver point of view, thought it should allow nouveau to add
support for unmappable VRAM.

Improvement: store the aperture base in a variable so that we don't
call a function to get it on each fault.

Patch hasn't been tested on any hw.

V2 don't derefence bo->mem.mm_node as it's not NULL only for
   VRAM or GTT
V3 update after io_mem_reserve/io_mem_free callback balancing
V4 callback has to ioremap
V5 ioremap is done by ttm

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found