git: kernel - Fix early console probe when serial port does not exist

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jan 7 18:05:40 PST 2023


commit acaa8830b243bc0c7672ff550bf18e463c123b9f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jan 7 18:02:05 2023 -0800

    kernel - Fix early console probe when serial port does not exist
    
    * Newer machines may ship without any legacy serial ports at all,
      but our default sio0.flags (in the kernel config) are set to 0x10
      to enable console operation if syscons isn't available.
    
      If the serial port does not actually exist, this will panic or
      livelock the kernel in early boot.
    
    * Fix in two ways.  First, force sioN.disabled to TRUE if the sio
      device probe fails.  If the serial console probe is still reached,
      the serial console probe will also ensure that he serial port is
      able to drain before assigning it.
    
    * Fixes Ryzen 7000 series headless booting.  You can also workaround
      the issue by setting sio0.flags=0 in /boot/loader.conf if you do
      not have a fixed kernel.

Summary of changes:
 sys/dev/serial/sio/sio.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list