NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/56124: ebus attach broken



>Number:         56124
>Category:       kern
>Synopsis:       ebus attach broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 25 07:10:00 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.82
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 9.99.81 NetBSD 9.99.81 (MODULAR) #440: Wed Apr 21 16:02:39 CEST 2021 martin%thirdstage.duskware.de@localhost:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

The cfattach changes broke autoconfiguration on sparc/sparc64 systems
with ebus:

[   1.0000000] schizo1:  pci1 at schizo1
[   1.0000000] ebus0 at pci1 dev 7 function 0: Acer Labs M1533 PCI-ISA Bridge, revision 0x00
[   1.0000000] panic: kernel diagnostic assertion "ifattr || cfdriver_iattr_count(parent->dv_cfdriver) < 2" failed: file "../../../../kern/subr_autoconf.c", line 1130 
db{0}> bt
kern_assert(19a48d0, 19a48c0, 1a3c8a0, 1a3c5d8, 46a, 10417a558) at netbsd:kern_assert+0x34
config_vsearch(1041690c0, 2004ed0, eeeeeeee, 2004eb0, 0, 19a01a0) at netbsd:config_vsearch+0x250
config_vfound(1041690c0, 2004ed0, 1022d80, eeeeeeee, 2004eb0, 104176d50) at netbsd:config_vfound+0x10
config_found(1041690c0, 2004ed0, 1022d80, eeeeeeee, 10417a3b0, 0) at netbsd:config_found+0x20
ebus_attach(1a3f270, 1041690c0, 1c027e0, 10417a380, 1c7c9e0, fffffffff00a1d6c) at netbsd:ebus_attach+0x184
config_vattach(104168d80, 1, 2005290, 0, 19a6238, 1c6a260) at netbsd:config_vattach+0x1a0
config_found(104168d80, 2005290, 1076e20, 0, 15e0660, 3) at netbsd:config_found+0x20
pci_probe_device(104068000, f00a0d1000003800, 0, 44a4, 10406c440, 0) at netbsd:pci_probe_device+0x488
sparc64_pci_enumerate_bus(104068000, 1766778, 0, 0, 1a3f270, 19a5680) at netbsd:sparc64_pci_enumerate_bus+0x2ec
pcirescan(104168d80, 19ce670, 1766778, 1a37000, 1c99400, 104068000) at netbsd:pcirescan+0x44
pciattach(1a22c00, 104168d80, 20057a8, 3, 19a9780, 104068000) at netbsd:pciattach+0x10c
config_vattach(104168a40, 1, 20057a8, 0, 19ce670, 1c6a260) at netbsd:config_vattach+0x1a0
config_found(104168a40, 20057a8, 101c520, eeeeeeee, 1590, 4000f601190) at netbsd:config_found+0x20
schizo_attach(0, 0, 0, 0, 10377dd80, 103776400) at netbsd:schizo_attach+0x7c0
config_vattach(10374e380, 1, 2005a30, 0, 19a5038, 1c6a260) at netbsd:config_vattach+0x1a0
config_found(10374e380, 2005a30, 1041d40, eeeeeeee, 2005a50, 103773390) at netbsd:config_found+0x20
mainbus_attach(19a4400, 10374e380, fffffffff00716f4, fffffffff00716f4, 2005a78, 175f648) at netbsd:mainbus_attach+0x3b4
config_vattach(0, 1, 0, 0, 19a91d0, 1c6a260) at netbsd:config_vattach+0x1a0
config_attach(0, 1c674d0, 0, 0, eeeeeeee, 1cbe400) at netbsd:config_attach+0x20
cpu_configure(2005cc8, fffffffff002d26c, 1c7caf8, 1cbe400, 0, 1c5fb58) at netbsd:cpu_configure+0x300
main(19a48c0, 1c01800, 19a48d0, 1cbe400, 1c5f000, e0048000) at netbsd:main+0x3f8


For reference, here is dmesg from an older kernel:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.99.81 (MODULAR) #440: Wed Apr 21 16:02:39 CEST 2021
	martin%thirdstage.duskware.de@localhost:/usr/src/sys/arch/sparc64/compile/MODULAR
total memory = 4096 MB
avail memory = 4003 MB
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
mainbus0 (root): SUNW,Sun-Fire-V210 (Sun Fire V210): hostid 8345d5ed
cpu0 at mainbus0: SUNW,UltraSPARC-IIIi @ 1002 MHz, CPU id 0
cpu0: manuf 3e, impl 16, mask 24
cpu0: system tick frequency 12 MHz
cpu0: 32K instruction (32 b/l), 64K data (32 b/l), 1024K external (64 b/l)
cpu1 at mainbus0: SUNW,UltraSPARC-IIIi @ 1002 MHz, CPU id 1
cpu1: manuf 3e, impl 16, mask 24
cpu1: system tick frequency 12 MHz
cpu1: 32K instruction (32 b/l), 64K data (32 b/l), 1024K external (64 b/l)
memory-controller at mainbus0 not configured
memory-controller at mainbus0 not configured
schizo0 at mainbus0: addr 4000ff00000: Tomatillo, version 4, ign 7c0, bus B 0 to 0
schizo0:  pci0 at schizo0
pci0: i/o space, memory space enabled
bge0 at pci0 dev 2 function 0: Broadcom BCM5704C Dual Gigabit Ethernet
bge0: interrupting at ivec 37c8
bge0: HW config 00000000, 00000000, 00000000, 00000000 00000000
bge0: ASIC BCM5704 A3 (0x2003), Ethernet address 00:03:ba:45:d5:ed
brgphy0 at bge0 phy 1: BCM5704 1000BASE-T media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge1 at pci0 dev 2 function 1: Broadcom BCM5704C Dual Gigabit Ethernet
bge1: interrupting at ivec 37c9
bge1: HW config 00000000, 00000000, 00000000, 00000000 00000000
bge1: ASIC BCM5704 A3 (0x2003), Ethernet address 00:03:ba:45:d5:ee
brgphy1 at bge1 phy 1: BCM5704 1000BASE-T media interface, rev. 0
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
schizo1 at mainbus0: addr 4000f600000: Tomatillo, version 4, ign 780, bus A 0 to 0
schizo1:  pci1 at schizo1
pci1: i/o space, memory space enabled
ebus0 at pci1 dev 7 function 0: Acer Labs M1533 PCI-ISA Bridge, revision 0x00
flashprom at ebus0 addr 0-fffff, 290-290 not configured
rtc0 at ebus0 addr 70-71: mc146818 compatible time-of-day clock: m5819p
pcfiic0 at ebus0 addr 320-321 ipl 2e
iic0 at pcfiic0: I2C bus
i2c-bridge at iic0 addr 0x0b not configured
i2c-bridge at iic0 addr 0x0c not configured
seeprom0 at iic0 addr 0x51: motherboard-fru-prom: size 8192
seeprom1 at iic0 addr 0x54: chassis-fru-prom: size 8192
seeprom2 at iic0 addr 0x58: power-supply-fru-prom: size 8192
spdmem0 at iic0 addr 0x5b
spdmem0: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem0: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem0: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem1 at iic0 addr 0x5c
spdmem1: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem1: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem1: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem1: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem2 at iic0 addr 0x5d
spdmem2: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem2: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem2: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem2: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem3 at iic0 addr 0x5e
spdmem3: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem3: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem3: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem3: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem4 at iic0 addr 0x63
spdmem4: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem4: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem4: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem4: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem5 at iic0 addr 0x64
spdmem5: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem5: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem5: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem5: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem6 at iic0 addr 0x65
spdmem6: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem6: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem6: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem6: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem7 at iic0 addr 0x66
spdmem7: DDR SDRAM (registered), data ECC, 512MB, 286MHz (PC-2300)
spdmem7: 13 rows, 11 cols, 1 ranks, 4 banks/chip, 7.0ns cycle time
spdmem7: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem7: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
rscrtc at iic0 addr 0x68 not configured
seeprom3 at iic0 addr 0x28: nvram: size 8192
pcagpio0 at iic0 addr 0x22: PCA9555
pcagpio1 at iic0 addr 0x23: PCA9555
pcagpio2 at iic0 addr 0x34: PCA9555
pcagpio3 at iic0 addr 0x38: PCA9556
adm1026hm0 at iic0 addr 0x2e: ADM1026 hardware monitor: rev. 0x4, step. 0x4
adm1026hm0: 8 fans, 3 temperatures, 15 voltages
lmtemp0 at iic0 addr 0x4e: temperature-sensor LM75 Temperature Sensor
power at ebus0 addr 800-82f ipl 20 not configured
com0 at ebus0 addr 3f8-3ff ipl 2c: ns16550a, 1-byte FIFO
com0: console
com1 at ebus0 addr 2e8-2ef ipl 2c: ns16550a, 1-byte FIFO
rmc-comm at ebus0 addr 3e8-3ef ipl 2c not configured
alipm0 at pci1 dev 6 function 0: 223KHz clock
iic1 at alipm0: I2C bus
ohci0 at pci1 dev 10 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci0: interrupting at ivec 7a7
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
aceride0 at pci1 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc4)
aceride0: bus-master DMA support present
aceride0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
aceride0: primary channel configured to native-PCI mode
aceride0: using ivec 1f98 for native-PCI interrupt
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to native-PCI mode
atabus1 at aceride0 channel 1
schizo2 at mainbus0: addr 4000e600000: Tomatillo, version 4, ign 700, bus A 0 to 0
schizo2:  pci2 at schizo2
pci2: i/o space, memory space enabled
esiop0 at pci2 dev 2 function 0: Symbios Logic 53c1010-66 (ultra3-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at ivec 1f29
scsibus0 at esiop0: 16 targets, 8 luns per target
esiop1 at pci2 dev 2 function 1: Symbios Logic 53c1010-66 (ultra3-wide scsi)
esiop1: using on-board RAM
esiop1: interrupting at ivec 1f28
scsibus1 at esiop1: 16 targets, 8 luns per target
schizo3 at mainbus0: addr 4000ef00000: Tomatillo, version 4, ign 740, bus B 0 to 0
schizo3:  pci3 at schizo3
pci3: i/o space, memory space enabled
bge2 at pci3 dev 2 function 0: Broadcom BCM5704C Dual Gigabit Ethernet
bge2: interrupting at ivec 375c
bge2: HW config 00000000, 00000000, 00000000, 00000000 00000000
bge2: ASIC BCM5704 A3 (0x2003), Ethernet address 00:03:ba:45:d5:ef
brgphy2 at bge2 phy 1: BCM5704 1000BASE-T media interface, rev. 0
brgphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge3 at pci3 dev 2 function 1: Broadcom BCM5704C Dual Gigabit Ethernet
bge3: interrupting at ivec 375d
bge3: HW config 00000000, 00000000, 00000000, 00000000 00000000
bge3: ASIC BCM5704 A3 (0x2003), Ethernet address 00:03:ba:45:d5:f0
brgphy3 at bge3 phy 1: BCM5704 1000BASE-T media interface, rev. 0
brgphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
siisata0 at pci3 dev 1 function 0: CMD Technology SiI3124 SATALink (rev. 0x02)
siisata0: interrupting at ivec 744
siisata0: SiI3124, 3.0Gb/s
siisata0: 64-bit 66MHz PCI
atabus2 at siisata0 channel 0
atabus3 at siisata0 channel 1
atabus4 at siisata0 channel 2
atabus5 at siisata0 channel 3
pcons at mainbus0 not configured
entropy: WARNING: extracting entropy too early
timecounter: Timecounter "tick-counter" frequency 1002000000 Hz quality 100
timecounter: Timecounter "stick-counter" frequency 12000000 Hz quality 200
No counter-timer -- using %stick at 12MHz as system clock.
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
uhub0 at usb0: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
aes: BearSSL aes_ct
chacha: Portable C ChaCha
adiantum: self-test passed
aes_ccm: self-test passed
blake2s: self-test passed
siisata0 port 3: device present, speed: 3.0Gb/s
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST336607LSUN36G, 0307> disk fixed
sd0: 34732 MB, 24622 cyl, 27 head, 107 sec, 512 bytes/sect x 71132959 sectors
sd0: 5779 trailing sectors not covered by disklabel
sd0: sync (12.50ns offset 62), 16-bit (160.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST336607LSUN36G, 0307> disk fixed
sd1: 34732 MB, 24622 cyl, 27 head, 107 sec, 512 bytes/sect x 71132959 sectors
sd1: sync (12.50ns offset 62), 16-bit (160.000MB/s) transfers, tagged queueing
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <DV-28E-B, , 1.2B> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(aceride0:0:0): using PIO mode 4
wd0 at atabus5 drive 0
wd0: <Samsung SSD 840 PRO Series>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 238 GB, 496149 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
wd0: GPT GUID: f320eaff-2e63-4597-a44f-b20ced92ab14
dk0 at wd0: "main-swap", 16777216 blocks at 2048, type: swap
dk1 at wd0: "current-root", 314572800 blocks at 16779264, type: ffs
dk2 at wd0: "9-root", 83886080 blocks at 331352064, type: ffs
dk3 at wd0: "8-root", 84879360 blocks at 415238144, type: ffs
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
wd0(siisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (30 tags)
cgd: self-test aes-xts-256
cgd: self-test aes-xts-512
cgd: self-test aes-cbc-128
cgd: self-test aes-cbc-256
cgd: self-test 3des-cbc-192
cgd: self-test blowfish-cbc-448
cgd: self-test aes-cbc-128 (encblkno8)
cgd: self-tests passed
sd0: 5779 trailing sectors not covered by disklabel
sd0: 5779 trailing sectors not covered by disklabel
sd0: 5779 trailing sectors not covered by disklabel
root on dk1 dumps on dk0
kern.module.path=/stand/sparc64/9.99.81/modules
sd0: 5779 trailing sectors not covered by disklabel
sd0: 5779 trailing sectors not covered by disklabel
sd0: 5779 trailing sectors not covered by disklabel
sd0: 5779 trailing sectors not covered by disklabel
entropy: ready



>How-To-Repeat:

Just try to boot current

>Fix:
n/a



Home | Main Index | Thread Index | Old Index