git: drm: Replace all Linux spinlocks by lockmgr locks

Francois Tigeot ftigeot at crater.dragonflybsd.org
Fri Jan 24 11:56:31 PST 2020


commit ec5b6af45b44f70d488e8226966f076d4270aec1
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Fri Jan 24 20:51:08 2020 +0100

    drm: Replace all Linux spinlocks by lockmgr locks
    
    * The DragonFly kernel can sleep in different circumstances than Linux
    
    * Linux driver code has not been written to prevent it
    
    * Make all Linux spinlock_t spinlocks lockmgr locks and avoid potential
      problems once and for all

Summary of changes:
 sys/dev/drm/drm_atomic_helper.c             | 30 +++++++++++-----------
 sys/dev/drm/drm_auth.c                      |  2 +-
 sys/dev/drm/drm_bufs.c                      | 30 +++++++++++-----------
 sys/dev/drm/drm_crtc.c                      |  2 +-
 sys/dev/drm/drm_drv.c                       |  2 +-
 sys/dev/drm/i915/i915_drv.c                 |  4 +--
 sys/dev/drm/i915/i915_drv.h                 | 20 +++++++--------
 sys/dev/drm/i915/i915_gem.c                 | 26 +++++++++----------
 sys/dev/drm/include/drm/drmP.h              |  4 +--
 sys/dev/drm/include/drm/drm_crtc.h          |  2 +-
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h |  2 +-
 sys/dev/drm/include/drm/ttm/ttm_memory.h    | 12 ++++-----
 sys/dev/drm/include/linux/seqlock.h         | 10 ++++----
 sys/dev/drm/include/linux/spinlock.h        |  4 ++-
 sys/dev/drm/include/linux/ww_mutex.h        |  2 --
 sys/dev/drm/radeon/ci_smc.c                 | 16 ++++++------
 sys/dev/drm/radeon/cik.c                    | 16 ++++++------
 sys/dev/drm/radeon/dce6_afmt.c              |  8 +++---
 sys/dev/drm/radeon/evergreen.c              | 24 ++++++++---------
 sys/dev/drm/radeon/ni.c                     |  8 +++---
 sys/dev/drm/radeon/r100.c                   | 16 ++++++------
 sys/dev/drm/radeon/r300.c                   |  8 +++---
 sys/dev/drm/radeon/r420.c                   |  8 +++---
 sys/dev/drm/radeon/r600.c                   | 32 +++++++++++------------
 sys/dev/drm/radeon/radeon.h                 | 26 +++++++++----------
 sys/dev/drm/radeon/radeon_device.c          | 24 ++++++++---------
 sys/dev/drm/radeon/radeon_sa.c              |  4 +--
 sys/dev/drm/radeon/radeon_ttm.c             |  4 +--
 sys/dev/drm/radeon/radeon_vm.c              | 40 ++++++++++++++---------------
 sys/dev/drm/radeon/rs400.c                  |  8 +++---
 sys/dev/drm/radeon/rs600.c                  |  8 +++---
 sys/dev/drm/radeon/rs690.c                  |  8 +++---
 sys/dev/drm/radeon/rv515.c                  |  8 +++---
 sys/dev/drm/radeon/rv770_smc.c              | 16 ++++++------
 sys/dev/drm/radeon/si_smc.c                 | 16 ++++++------
 sys/dev/drm/ttm/ttm_bo.c                    | 10 ++++----
 sys/dev/drm/ttm/ttm_bo_util.c               |  4 +--
 sys/dev/drm/ttm/ttm_memory.c                | 30 +++++++++++-----------
 38 files changed, 247 insertions(+), 247 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec5b6af45b44f70d488e8226966f076d4270aec1


-- 
DragonFly BSD source repository



More information about the Commits mailing list