git: kernel - Fix mountroot / usb diskkey race.

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jul 16 20:31:45 PDT 2015


commit 67616947056b13e8c351500c64f1f3068fc89982
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jul 16 20:21:11 2015 -0700

    kernel - Fix mountroot / usb diskkey race.
    
    * Use the intr_config_hook mechanism to prevent mountroot from running
      until all usb busses have completed two scans.  umass's CAM
      intr_config_hook will take over once umass is detected.
    
    * Pull the hw.usb.xhci.use_polling tunable out of USB_DEBUG and make it work
      generally.  Setting this feature in /boot/loader.conf to 1 forces xhci to
      always poll.
    
      The polling rate is not the best in the world with this commit so do
      not expect good performance.  Only use if your USB doesn't work due to
      e.g. interrupt routing issues.

Summary of changes:
 sys/bus/u4b/controller/usb_controller.c | 37 +++++++++++++++++++++++++++++++++
 sys/bus/u4b/controller/xhci.c           | 23 ++++++++++----------
 sys/bus/u4b/controller/xhci_pci.c       | 20 ++++++++++++------
 sys/bus/u4b/usb_bus.h                   |  3 ++-
 4 files changed, 65 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/67616947056b13e8c351500c64f1f3068fc89982


-- 
DragonFly BSD source repository


More information about the Commits mailing list