kernel_optimize_test/include/drm/ttm
Jerome Glisse 82c5da6bf8 drm/ttm: ttm_fault callback to allow driver to handle bo placement V6
On fault the driver is given the opportunity to perform any operation
it sees fit in order to place the buffer into a CPU visible area of
memory. This patch doesn't break TTM users, nouveau, vmwgfx and radeon
should keep working properly. Future patch will take advantage of this
infrastructure and remove the old path from TTM once driver are
converted.

V2 return VM_FAULT_NOPAGE if callback return -EBUSY or -ERESTARTSYS
V3 balance io_mem_reserve and io_mem_free call, fault_reserve_notify
   is responsible to perform any necessary task for mapping to succeed
V4 minor cleanup, atomic_t -> bool as member is protected by reserve
   mecanism from concurent access
V5 the callback is now responsible for iomapping the bo and providing
   a virtual address this simplify TTM and will allow to get rid of
   TTM_MEMTYPE_FLAG_NEEDS_IOREMAP
V6 use the bus addr data to decide to ioremap or this isn't needed
   but we don't necesarily need to ioremap in the callback but still
   allow driver to use static mapping

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-20 14:12:05 +10:00
..
ttm_bo_api.h drm/ttm: ttm_fault callback to allow driver to handle bo placement V6 2010-04-20 14:12:05 +10:00
ttm_bo_driver.h drm/ttm: ttm_fault callback to allow driver to handle bo placement V6 2010-04-20 14:12:05 +10:00
ttm_execbuf_util.h drm/ttm: Add TTM execbuf utilities. 2009-12-07 15:22:05 +10:00
ttm_lock.h drm/ttm: Add ttm lock functionality. 2009-12-07 15:22:03 +10:00
ttm_memory.h drm/ttm: Fix build failure due to missing struct page 2009-12-04 09:11:16 +10:00
ttm_module.h Merge Linus master to drm-next 2009-08-20 13:38:04 +10:00
ttm_object.h drm/ttm: Add more driver type enums 2009-12-15 08:38:18 +10:00
ttm_placement.h drm: Add the TTM GPU memory manager subsystem. 2009-06-15 09:37:57 +10:00