>Synopsis:      ehci: kernel diagnostic assertion (reg & 0x3) == 0 failed
>Category:      amd64
>Environment:
        System      : OpenBSD 5.5
        Details     : OpenBSD 5.5-current (GENERIC) #18: Sat Mar 22 22:41:35 
MDT 2014
                         
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        A kernel diagnostic assertion regarding ehci happens during early boot.
        This is an old Lenovo which I upgrade from time to time when I have
        access to it.
>How-To-Repeat:
        Boot a /bsd kernel.  /bsd.rd works fine.
>Fix:
        Unknown.  I work around this by disabling ehci with config(8).

ddb (copied by hand):
ehci0 at pci0 dev 3 function 3 "SiS 7002 USB" rev 0x00: apic 2 int 23
panic: kernel diagnostic assertion "(reg & 0x3) == 0" failed: file "../../../
arch/amd64/pci/pci_machdep.c", line 272
Stopped at      Debugger+0x5:   leave
Debugger() at Debugger+0x5
panic() at panic+0xee
__assert() at __assert+0x21
pci_conf_read() at pci_conf_read+0xdd
ehci_pci_takecontroller() at ehci_pci_takecontroller+0x6b
ehci_pci_attach() at ehci_pci_attach+0x22a
config_attach() at config_attach+0x1bc
pci_probe_device() at pci_probe_device+0x447
pci_enumerate_bus() at pci_enumerate_bus+0xe9
config_attach() at config_attach+0x1bc
end trace frame: 0xffffffff81edce80, count: 0
RUN AT LEASE 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> trace
Debugger() at Debugger+0x5
panic() at panic+0xee
__assert() at __assert+0x21
pci_conf_read() at pci_conf_read+0xdd
ehci_pci_takecontroller() at ehci_pci_takecontroller+0x6b
ehci_pci_attach() at ehci_pci_attach+0x22a
config_attach() at config_attach+0x1bc
pci_probe_device() at pci_probe_device+0x447
pci_enumerate_bus() at pci_enumerate_bus+0xe9
config_attach() at config_attach+0x1bc
mainbus_attach() at mainbus_attach+0x163
config_attach() at config_attach+0x1bc
cpu_configure() at cpu_configure+0x17
main() at main+0x41c
end trace frame: 0x0, count: -14
ddb> ps
   PID   PPID   PGRP    UID  S      FLAGS  WAIT       COMMAND
*    0     -1      0      0  7      0x200             swapper
ddb>

dmesg (RAMDISK_CD):
OpenBSD 5.5-current (RAMDISK_CD) #18: Sat Mar 22 22:53:39 MDT 2014
    [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 1056899072 (1007MB)
avail mem = 1023336448 (975MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (32 entries)
bios0: vendor LENOVO version "40KT27A" date 06/13/2007
bios0: LENOVO 8818D34
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU 3.20GHz, 3201.30 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG,LAHF,PERF
cpu0: 256KB 64b/line 4-way L2 cache
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 14, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "SiS 661 PCI" rev 0x11
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce4 MX 420" rev 0xa3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
"SiS 964 ISA" rev 0x36 at pci0 dev 2 function 0 not configured
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x01: 661: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, DVD-ROM TS-H352C, IB02> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
"SiS 7012 AC97" rev 0xa0 at pci0 dev 2 function 7 not configured
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 20, 
version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 21, 
version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 22, 
version 1.0, legacy support
ehci0 at pci0 dev 3 function 3 "SiS 7002 USB" rev 0x00: apic 2 int 23
ehci0: reset timeout
ehci0: init failed, error=13
pciide1 at pci0 dev 5 function 0 "SiS 180 SATA" rev 0x01: DMA
pciide1: using apic 2 int 17 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <HDS728080PLA380 40Y9028LEN>
wd0: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
re0 at pci0 dev 15 function 0 "Realtek 8169" rev 0x10: RTL8110S (0x0400), apic 
2 int 17, address XXX
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci2: USB revision 1.0
uhub2 at usb2 "SiS OHCI root hub" rev 1.00/1.00 addr 1
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/22.01 addr 2
uhidev0: iclass 3/1
uhid at uhidev0 not configured
uhidev1 at uhub1 port 1 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/22.01 addr 2
uhidev1: iclass 3/0, 17 report ids
uhid at uhidev1 reportid 3 not configured
uhid at uhidev1 reportid 16 not configured
uhid at uhidev1 reportid 17 not configured
softraid0 at root
scsibus1 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b

dmesg (GENERIC with ehci disabled):
OpenBSD 5.5-current (GENERIC) #18: Sat Mar 22 22:41:35 MDT 2014
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056899072 (1007MB)
avail mem = 1020145664 (972MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (32 entries)
bios0: vendor LENOVO version "40KT27A" date 06/13/2007
bios0: LENOVO 8818D34
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) AMR0(S4) UAR1(S4) 
PCI0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU 3.20GHz, 3201.30 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG,LAHF,PERF
cpu0: 256KB 64b/line 4-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 14, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "SiS 661 PCI" rev 0x11
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce4 MX 420" rev 0xa3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SiS 964 ISA" rev 0x36
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x01: 661: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, DVD-ROM TS-H352C, IB02> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: apic 2 int 18, 
SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 20, 
version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 21, 
version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 22, 
version 1.0, legacy support
"SiS 7002 USB" rev 0x00 at pci0 dev 3 function 3 not configured
pciide1 at pci0 dev 5 function 0 "SiS 180 SATA" rev 0x01: DMA
pciide1: using apic 2 int 17 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <HDS728080PLA380 40Y9028LEN>
wd0: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
re0 at pci0 dev 15 function 0 "Realtek 8169" rev 0x10: RTL8110S (0x0400), apic 
2 int 17, address XXX 
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 0
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8705F rev 3, EC port 0x290
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci2: USB revision 1.0
uhub2 at usb2 "SiS OHCI root hub" rev 1.00/1.00 addr 1
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/22.01 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 16 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub1 port 1 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/22.01 addr 2
uhidev1: iclass 3/0, 17 report ids
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 16: input=6, output=6, feature=0
uhid2 at uhidev1 reportid 17: input=19, output=19, feature=0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (86249a63910824cf.a) swap on wd0b dump on wd0b

usbdevs:
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x1039), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x1039), 
rev 1.00
 port 1 addr 2: full speed, power 98 mA, config 1, USB Receiver(0xc52f), 
Logitech(0x046d), rev 22.01
 port 2 powered
 port 3 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x1039), 
rev 1.00
 port 1 powered
 port 2 powered

Reply via email to