freebsd-skq/sys/dev/drm2/ttm
Jean-Sébastien Pédron a7fa1c7cc3 drm/ttm: Import Linux commit ff7c60c580d9722f820d85c9c58ca55ecc1ee7c4
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Jan 14 15:08:14 2013 +0100

    drm/ttm: fix fence locking in ttm_buffer_object_transfer, 2nd try

    This fixes up

    commit e8e89622ed361c46bf90ba4828e685a8b603f7e5
    Author: Daniel Vetter <daniel.vetter@ffwll.ch>
    Date:   Tue Dec 18 22:25:11 2012 +0100

        drm/ttm: fix fence locking in ttm_buffer_object_transfer

    which leaves behind a might_sleep in atomic context, since the
    fence_lock spinlock is held over a kmalloc(GFP_KERNEL) call. The fix
    is to revert the above commit and only take the lock where we need it,
    around the call to ->sync_obj_ref.

    v2: Fixup things noticed by Maarten Lankhorst:
    - Brown paper bag locking bug.
    - No need for kzalloc if we clear the entire thing on the next line.
    - check for bo->sync_obj (totally unlikely race, but still someone
      else could have snuck in) and clear fbo->sync_obj if it's cleared
      already.

    Reported-by: Dave Airlie <airlied@gmail.com>
    Cc: Jerome Glisse <jglisse@redhat.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Dave Airlie <airlied@redhat.com>

Approved by:	kib@
2013-08-25 14:58:44 +00:00
..
ttm_agp_backend.c
ttm_bo_api.h
ttm_bo_driver.h drm/ttm: Import Linux commit cc4c0c4de3c775be22072ec3251f2e581b63d9a0 2013-08-25 14:53:39 +00:00
ttm_bo_manager.c
ttm_bo_util.c drm/ttm: Import Linux commit ff7c60c580d9722f820d85c9c58ca55ecc1ee7c4 2013-08-25 14:58:44 +00:00
ttm_bo_vm.c On all the architectures, avoid to preallocate the physical memory 2013-08-09 11:28:55 +00:00
ttm_bo.c drm/ttm: Import Linux commit 014b34409fb2015f63663b6cafdf557fdf289628 2013-08-25 14:56:14 +00:00
ttm_execbuf_util.c drm/ttm: Import Linux commit f2d476a110bc24fde008698ae9018c99e803e25c 2013-08-25 14:52:20 +00:00
ttm_execbuf_util.h
ttm_lock.c
ttm_lock.h
ttm_memory.c drm/ttm: Fix a typo: s/pTTM]/[TTM]/ 2013-03-23 20:46:47 +00:00
ttm_memory.h
ttm_module.h
ttm_object.c
ttm_object.h
ttm_page_alloc_dma.c
ttm_page_alloc.c Different consumers of the struct vm_page abuse pageq member to keep 2013-08-10 17:36:42 +00:00
ttm_page_alloc.h
ttm_placement.h
ttm_tt.c Remove the deprecated VM_ALLOC_RETRY flag for the vm_page_grab(9). 2013-08-22 07:39:53 +00:00