-------- Original Message --------
Subject: USB trouble with snapshot 2003-7-16
Date: Sat, 19 Jul 2003 22:41:00 +0200
From: Paul A. Mayer <pa...@fnug.net>
To: mi...@OPENBSD.ORG
Greetings,
I upgraded from 3.3 stable to 3.3 snapshot of 2003-07-07 10 or so days ago:
$ uname -a
OpenBSD disk.fnug.net 3.3 GENERIC#87 i386
After doing this, I updated /usr/src via cvsup, whereafter the kernels I
compiled myself would not complete booting. The boot process stopped
after the rootdev line before the USB lines. (See dmesg below.) If I
disabled USB on my motherboard (An ECS K7S5A v.1), my kernels would
boot. I went back to the generic kernel.
I just began updating to the snapshot of 2003-07-16 using the bsd.rd
kernel, and this kernel now stops in the same place my snap 2003-07-07
kernels stopped.
Has something about kernel usb support changed between the 7th and the
16th? I've not had kernel usb problems with obsd (ca. > 3.0) on this
motherboard.
Thanks for the help ...
BR /Paul
Dmesg on bsd.rd kernel snap 2003-07-16:
OpenBSD 3.3-current (RAMDISK_CD) #70: Wed Jul 16 12:20:29 MDT 2003
der...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: AMD Duron Model 3 (Spitfire) ("AuthenticAMD" 686-class) 896 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 267956224 (261676K)
avail mem = 243175424 (237476K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/29/02, BIOS32 rev. 0 @ 0xfdae0
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf7950/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SIS 85C503 PCI System I/O
Chipset" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SIS 735 Host-PCI" rev 0x01
ppb0 at pci0 dev 1 function 0 "SIS 86C201 Host-AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mach64 GZ" rev 0x7a
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SIS 85C503 PCI System I/O Chipset" rev 0x00
ohci0 at pci0 dev 2 function 2 "SIS 5597/5598 USB" rev 0x07:
interrupting at irq 11, OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3 "SIS 5597/5598 USB" rev 0x07:
interrupting at irq 12, OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pciide0 at pci0 dev 2 function 5 "SIS 5513 EIDE" rev 0xd0: 735: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST340016A>
wd0: 16-sector PIO, LBA, 38166MB, 16383 cyl, 16 head, 63 sec, 78165360
sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CD-ROM SCR-3231, S102> SCSI0
5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2
"SIS 7012 AC97 Audio" rev 0xa0 at pci0 dev 2 function 7 not configured
sis0 at pci0 dev 3 function 0 "SIS 900 10/100BaseTX" rev 0x90: irq 11
address 00:07:95:04:e0:a5
ukphy0 at sis0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000020, model 0x0020, rev. 1
xl0 at pci0 dev 11 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 12
address 00:50:04:34:3c:c7
exphy0 at xl0 phy 24: 3Com internal media interface
isa0 at pcib0
isadma0 at isa0
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
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask d840 netmask d840 ttymask d842
rd0: fixed, 3560 blocks
root on rd0a
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
(MACHINE HANGS)
Dmesg on bsd.rd kernel snap 2003-07-07:
OpenBSD 3.3-current (GENERIC) #87: Mon Jul 7 15:25:31 MDT 2003
der...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Duron Model 3 (Spitfire) ("AuthenticAMD" 686-class) 896 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 267956224 (261676K)
avail mem = 242405376 (236724K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/29/02, BIOS32 rev. 0 @ 0xfdae0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, no battery
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf7950/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SIS 85C503 PCI System I/O
Chipset" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SIS 735 Host-PCI" rev 0x01
ppb0 at pci0 dev 1 function 0 "SIS 86C201 Host-AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mach64 GZ" rev 0x7a
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SIS 85C503 PCI System I/O Chipset" rev 0x00
ohci0 at pci0 dev 2 function 2 "SIS 5597/5598 USB" rev 0x07: irq 11,
OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3 "SIS 5597/5598 USB" rev 0x07: irq 12,
OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pciide0 at pci0 dev 2 function 5 "SIS 5513 EIDE" rev 0xd0: 735: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST340016A>
wd0: 16-sector PIO, LBA, 38166MB, 16383 cyl, 16 head, 63 sec, 78165360
sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CD-ROM SCR-3231, S102> SCSI0
5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2
auich0 at pci0 dev 2 function 7 "SIS 7012 AC97 Audio" rev 0xa0: irq 11,
SiS7012 AC97
ac97: codec id 0x414c4326 (Realtek RL5383 rev 6)
ac97: codec features Realtek 3D
audio0 at auich0
sis0 at pci0 dev 3 function 0 "SIS 900 10/100BaseTX" rev 0x90: irq 11
address 00:07:95:04:e0:a5
ukphy0 at sis0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000020, model 0x0020, rev. 1
xl0 at pci0 dev 11 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 12
address 00:50:04:34:3c:c7
exphy0 at xl0 phy 24: 3Com internal media interface
isa0 at pcib0
isadma0 at isa0
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
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask d840 netmask d840 ttymask d8c2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Logitech USB Mouse, rev 1.10/4.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
You can look here for yourself
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/
As for the cause of the problem... :)
- mattk!
I've also noticed the same problem, -current as of the last couple
of days. (I'm currently running a July 7 kernel.) Following the
directions in http://www.benzedrine.cx/crashreport.html, I got this
objdump section:
/usr/src/sys/arch/i386/compile/GENERIC/../../../../arch/i386/i386/db_memrw.c:57
10: 8a 01 mov (%ecx),%al
12: 88 03 mov %al,(%ebx)
14: 41 inc %ecx
15: 43 inc %ebx
16: 89 d0 mov %edx,%eax
18: 4a dec %edx
19: 85 c0 test %eax,%eax
1b: 75 f3 jne 10 <db_read_bytes+0x10>
1d: 5b pop %ebx
1e: c9 leave
1f: c3 ret
And the trace:
...
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
kernel: page fault trap, code=0
Stopped at 0: kernel: page fault trap, code=0
Stopped at db_read_bytes+0x10: movb 0(%ecx),%al
ddb> trace
db_read_bytes(0,1,d06659fc,d01c3741,0) at db_read_bytes+0x10
db_get_value(0,1,0,0,0) at db_get_value+0x1c
db_disasm(0,0,d01c3524,0,0) at db_disasm+0x20
db_print_loc_and_inst(0,d0665abc,d0665ad0,d02dc23e) at db_print_loc_and_inst+0x
32
db_trap(6,0,d0665b00,d02d07fd,1) at db_trap+0xc3
kdb_trap(6,0,d0665b68,5b1e2000) at kdb_trap+0xc1
trap() at trap+0x1b9
--- trap (number 6) ---
(null)(10,10,40,d055a540,d0665c48) at 0
Bad frame pointer: 0xd0665bcc
ddb>
-Ray-