linux/drivers/gpu/drm/ttm
Thomas Hellstrom 1df6a2ebd7 drm/ttm: Fix two race conditions + fix busy codepaths
This fixes a race pointed out by Dave Airlie where we don't take a buffer
object about to be destroyed off the LRU lists properly. It also fixes a rare
case where a buffer object could be destroyed in the middle of an
accelerated eviction.

The patch also adds a utility function that can be used to prematurely
release GPU memory space usage of an object waiting to be destroyed.
For example during eviction or swapout.

The above mentioned commit didn't queue the buffer on the delayed destroy
list under some rare circumstances. It also didn't completely honor the
remove_all parameter.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=615505
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591061

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-06 09:04:43 +10:00
..
Makefile drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
ttm_agp_backend.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ttm_bo_util.c drm/ttm: Clear the ghost cpu_writers flag on ttm_buffer_object_transfer. 2010-09-22 12:40:38 +10:00
ttm_bo_vm.c drm/ttm: ttm_fault callback to allow driver to handle bo placement V6 2010-04-20 14:12:05 +10:00
ttm_bo.c drm/ttm: Fix two race conditions + fix busy codepaths 2010-10-06 09:04:43 +10:00
ttm_execbuf_util.c drm/ttm: Add TTM execbuf utilities. 2009-12-07 15:22:05 +10:00
ttm_lock.c drm/ttm: Remove some leftover debug messages. 2010-05-07 09:20:56 +10:00
ttm_memory.c Merge branch 'drm-ttm-pool' into drm-core-next 2010-04-20 13:12:28 +10:00
ttm_module.c drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
ttm_object.c drm/ttm: remove padding from ttm_ref_object on 64bit builds 2010-02-01 11:24:50 +10:00
ttm_page_alloc.c drm: ttm sparse fixes. 2010-09-24 10:09:08 +10:00
ttm_tt.c Merge branch 'drm-ttm-pool' into drm-core-next 2010-04-20 13:12:28 +10:00