Jacob Meuser <[email protected]>, 2010-11-22 23:06:23:
> On Mon, Nov 22, 2010 at 12:46:05PM +0100, MERIGHI Marcus wrote:
> > http://marc.info/?l=openbsd-bugs&m=122300840417886&w=2
> >
> > [email protected] ([email protected]), 2008.10.02 22:08:
> > > Synopsis: panic after removal of cardbus card if an usb device is being
> > used
> > >
> > > State-Changed-From-To: open->analyzed
> > > State-Changed-By: deraadt
> > > State-Changed-When: Thu Oct 2 16:08:54 MDT 2008
> > > State-Changed-Why:
> > > Please re-test this PR and respond as to whether this problem still
> > > exists.  Our PR database is full of many old errors, and this is an
> > > effort to seperate the repaired bugs from unrepaired bugs.  Please
> > > use http://cvs.openbsd.org/query-pr.html to refresh your memory about
> > > the PR. Thank you.
> >
> > unfortunately this is not a PR database error, the problem is still
> > there, as opposed to the original PR it even occurs without using any
> > device via the pcmcia uhub. below are two tests (labeled "test 1:",
> > "test 2:"), both with attach-messages, detach-messages and ddb output
> > as well as the regular sendbug output (labeled "sendbug output:")
> > with the device attached.
> >
> > test 1:
> >
> > attach:
> > uhci3 at cardbus1 dev 0 function 0 "VIA VT83C572 USB" rev 0x62: irq 11
> > usb3 at uhci3: USB revision 1.0
> > uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1
> > uhci4 at cardbus1 dev 0 function 1 "VIA VT83C572 USB" rev 0x62: irq 11
> > usb4 at uhci4: USB revision 1.0
> > uhub4 at usb4 "VIA UHCI root hub" rev 1.00/1.00 addr 1
> > ehci0 at cardbus1 dev 0 function 2 "VIA VT6202 USB" rev 0x65: irq 11
> > usb5 at ehci0: USB revision 2.0
> > uhub5 at usb5 "VIA EHCI root hub" rev 2.00/1.00 addr 1
> >
> > detach:
> > uhci3: host system error
> > uhci3: host controller process error
> > uhci3: host controller halted
> > uhci4: host system error
> > uhci4: host controller process error
> > uhci4: host controller halted
> > ehci0: unrecoverable error, controller halted
> > ehci0: blocking intrs 0x10
> > uhub3 detached
> > usb3 detached
> > uhci3 detached
> > uhub4 detached
> > usb4 detached
> > uhci4 detached
> > uhub5 detached
> > uvm_fault(0xd0a1a040, 0x0, 0, 1) -> e
> > kernel: page fault trap, code=0
> > Stopped at      usbd_do_request_flags_pipe+0x18:        movl 0x258(%eax),%ec
> > x
> > ddb>
> > ddb> trace
> > usbd_do_request_flags_pipe(d1f3ac00,2,dc16aef8,0,0) at
> > usbd_do_request_flags_pi
> > pe+0x18
> > usbd_do_request_flags(d1f3ac00,dc16aef8,0,0,0) at usbd_do_request_flags+0x3c
> > usbd_do_request(d1f3ac00,dc16aef8,0,d079ab1d,d0a0f200) at
> > usbd_do_request+0x37
> > usbd_reset_port(d1f3ac00,1,d1f3a980,d03e1d87,40) at usbd_reset_port+0x42
> > uhub_explore(d1f3ac00,d1f3accc,dc16af8c,d07978b6,d1f3ac80) at
> > uhub_explore+0x16
> > f
> > usb_explore(d1f3ac80,20,d097e6b6,0,d6d7f768) at usb_explore+0x3f
> > usb_task_thread(d6d7f768) at usb_task_thread+0x76
> 
> does the device work?  does the kernel see devices attached to the USB?

yes. below dmesg with pcmcia card attached as well as usb stick via
pcmcia card. watch out for "pcmcia card inserted" and "usb stick
inserted".

OpenBSD 4.8-current (GENERIC) #1: Fri Nov 19 09:07:22 CET 2010
    [email protected]:/mnt/openbsd/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel" 686-class) 2 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 1072721920 (1023MB)
avail mem = 1045123072 (996MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/12/03, BIOS32 rev. 0 @ 0xfd7e0, SMBIOS 
rev. 2.31 @ 0xe0010 (48 entries)
bios0: vendor IBM version "1IET66WW (2.05 )" date 06/12/2003
bios0: IBM 2366EG9
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) PCI0(S4) PCI1(S4) DOCK(S4) 
USB0(S3) USB1(S3) USB2(S3) AC97(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0: C3, C2, FVS, 2000, 1200 MHz
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 94 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "IBM-COMPATIBLE" serial 20884 type LION oem "GW"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: DOCK not docked (0)
bios0: ROM list: 0xc0000/0x10000 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe0000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M7" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: irq 11
drm0 at radeondrm0
uhci0 at pci0 dev 29 function 0 "Intel 82801CA/CAM USB" rev 0x02: irq 11
uhci1 at pci0 dev 29 function 1 "Intel 82801CA/CAM USB" rev 0x02: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801CA/CAM USB" rev 0x02: irq 11
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x42
pci2 at ppb1 bus 2
mem address conflict 0x50000000/0x1000
mem address conflict 0x51000000/0x1000
cbb0 at pci2 dev 0 function 0 "TI PCI1520 CardBus" rev 0x01: irq 11
cbb1 at pci2 dev 0 function 1 "TI PCI1520 CardBus" rev 0x01: irq 11
fxp0 at pci2 dev 8 function 0 "Intel PRO/100 VE" rev 0x42, i82562: irq 11, 
address 00:09:6b:3f:67:a8
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801CAM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801CAM IDE" rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD3200BEVE-00A0HT0>
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide0 channel 1 drive 0: <WDC WD1600BEVE-00WZT0>
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801CA/CAM SMBus" rev 0x02: irq 11
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 "Intel 82801CA/CAM AC97" rev 0x02: irq 11, 
ICH3 AC97
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at auich0
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb1 at uhci1: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci2: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask eded netmask eded ttymask ffff
mtrr: Pentium Pro MTRR support
com3 at pcmcia1 function 1 "Sierra Wireless, AC850, 3G Network Adapter" port 
0x33f8/8: ns16550a, 16 byte fifo
umass0 at uhub1 port 2 configuration 1 interface 0 "Generic AutoRUN/Partition" 
rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Mass, Storage Device, \\001 \\001> SCSI0 
0/direct removable
sd0: 3781MB, 512 bytes/sec, 7744511 sec total
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
scsibus2 at softraid0: 1 targets
sd1 at scsibus2 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd1: 256006MB, 512 bytes/sec, 524300593 sec total
scsibus3 at softraid0: 1 targets
sd2 at scsibus3 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd2: 111916MB, 512 bytes/sec, 229204498 sec total
scsibus4 at softraid0: 1 targets
sd3 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd3: 3600MB, 512 bytes/sec, 7373233 sec total
sd2 detached
scsibus3 detached
sd3 detached
scsibus4 detached
umass1 at uhub1 port 1 configuration 1 interface 0 "Nokia Nokia 5230" rev 
2.00/1.00 addr 3
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: <Nokia, S60, 1.0> SCSI0 0/direct removable
sd2: 1882MB, 512 bytes/sec, 3854336 sec total
sd2 detached
scsibus3 detached
umass1 detached
sd0 detached
scsibus0 detached
umass0 detached
ubt0 at uhub1 port 2 "Cambridge Silicon Radio Bluetooth" rev 2.00/31.64 addr 2
bthub0 at ubt0 00:1b:dc:0f:f3:34
# pcmcia card inserted
uhci3 at cardbus0 dev 0 function 0 "VIA VT83C572 USB" rev 0x62: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1
uhci4 at cardbus0 dev 0 function 1 "VIA VT83C572 USB" rev 0x62: irq 11
usb4 at uhci4: USB revision 1.0
uhub4 at usb4 "VIA UHCI root hub" rev 1.00/1.00 addr 1
ehci0 at cardbus0 dev 0 function 2 "VIA VT6202 USB" rev 0x65: irq 11
usb5 at ehci0: USB revision 2.0
uhub5 at usb5 "VIA EHCI root hub" rev 2.00/1.00 addr 1
# usb stick inserted
umass0 at uhub5 port 3 configuration 1 interface 0 "Generic AutoRUN/Partition" 
rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Mass, Storage Device, \\001 \\001> SCSI0 
0/direct removable
sd0: 3781MB, 512 bytes/sec, 7744511 sec total
# just automatic hotplugd softraid stuff
scsibus3 at softraid0: 1 targets
sd2 at scsibus3 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd2: 111916MB, 512 bytes/sec, 229204498 sec total
scsibus4 at softraid0: 1 targets
sd3 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd3: 3600MB, 512 bytes/sec, 7373233 sec total
sd3 detached
scsibus4 detached
uid 0 on /mnt/uid/debeec0d840653f1-d: file system full
sd2 detached
scsibus3 detached
sd0 detached
scsibus0 detached
umass0 detached
# usb stick inserted once more
umass0 at uhub5 port 3 configuration 1 interface 0 "Generic AutoRUN/Partition" 
rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Mass, Storage Device, \\001 \\001> SCSI0 
0/direct removable
sd0: 3781MB, 512 bytes/sec, 7744511 sec total
# just automatic hotplugd softraid stuff
scsibus3 at softraid0: 1 targets
sd2 at scsibus3 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd2: 111916MB, 512 bytes/sec, 229204498 sec total
scsibus4 at softraid0: 1 targets
sd3 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd3: 3600MB, 512 bytes/sec, 7373233 sec total
sd3 detached
scsibus4 detached

bye, 

marcus

Reply via email to