drm/vmwgfx: add support for new TTM fault callback V5
authorJerome Glisse <jglisse@redhat.com>
Fri, 9 Apr 2010 12:39:26 +0000 (14:39 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Apr 2010 04:12:43 +0000 (14:12 +1000)
commit96bf8b8778976a6e6a4fe4e6e0421d8ed7892798
treea56bc90ca55dbf623bcdcbefa6550cb426d0934e
parentf32f02fd81f3177cce0c16cc7d210fcc9cad953c
drm/vmwgfx: add support for new TTM fault callback V5

This add the support for the new fault callback, does change anything
from driver point of view.

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.

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>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c