git: drm - Fix major stalls by fixing an improper taskqueue priority

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 19 21:24:33 PST 2017


commit acb1fe1aaf0fb3e9d20a6438506c08e3969efbf4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Feb 19 21:20:46 2017 -0800

    drm - Fix major stalls by fixing an improper taskqueue priority
    
    * drm was creating task queues with a LWKT priority of 0, which is
      lower than the priority of a running user thread.
    
    * Fix all cases where improper priorities are passed to
      taskqueue_start_threads().  This fixes major video stalls and glitches
      that occur when other things might be running on the system cpu-bound.
    
    * taskqueue_start_threads() now asserts if the priority passed to it is
      illegal.

Summary of changes:
 sys/dev/drm/include/linux/workqueue.h | 3 ++-
 sys/dev/drm/radeon/radeon_device.c    | 3 ++-
 sys/dev/drm/ttm/ttm_memory.c          | 3 ++-
 sys/dev/raid/mps/mps_sas.c            | 3 ++-
 sys/dev/raid/mrsas/mrsas_cam.c        | 3 ++-
 sys/kern/subr_taskqueue.c             | 2 ++
 6 files changed, 12 insertions(+), 5 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list