dumbbell beb0153eed 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
..
2013-07-17 01:34:25 +00:00
2013-04-30 18:29:05 +00:00
2013-05-13 20:03:59 +00:00
2013-05-10 16:41:26 +00:00
MFC
2013-02-26 21:09:35 +00:00
2013-05-10 16:41:26 +00:00
2013-05-10 16:41:26 +00:00
2013-02-19 18:22:25 +00:00
2012-11-23 19:20:38 +00:00
2013-05-10 16:41:26 +00:00
2013-07-12 21:36:29 +00:00
2013-04-28 20:55:45 +00:00
2013-03-01 01:42:31 +00:00
2013-02-19 19:25:50 +00:00
2013-07-07 19:47:22 +00:00
2013-07-20 07:24:01 +00:00
2013-05-10 16:41:26 +00:00
2013-08-11 06:57:57 +00:00
2013-02-21 12:40:52 +00:00
2013-06-17 20:11:04 +00:00
2013-06-28 14:41:06 +00:00
2013-08-03 21:24:52 +00:00
2013-08-19 05:48:42 +00:00
2013-05-10 16:41:26 +00:00
2013-05-10 16:41:26 +00:00
2012-10-10 08:36:38 +00:00
2013-06-17 20:11:04 +00:00
2013-07-27 20:47:01 +00:00