Current-Users archive

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

5.0.1_PATCH cores with usb device



Hi there
(it seems send-pr doesn't work for me)


I found that plugging in a ti-usbfet, running stty </dev/ttyU0 and
unplugging the device causes a coredump

below is the stack backtrace and the dmesg.
this still happens with the checkout from the 6.Sep


(gdb) target kvm netbsd.8.core
#0  0xc0542f92 in cpu_reboot (howto=260, bootstr=0x0)
    at /mnt/sys_50/sys/arch/i386/i386/machdep.c:928
928                     dumpsys();
(gdb) bt
#0  0xc0542f92 in cpu_reboot (howto=260, bootstr=0x0)
    at /mnt/sys_50/sys/arch/i386/i386/machdep.c:928
#1  0xc0487c30 in panic (fmt=0xc0a1b40f "trap")
    at /mnt/sys_50/sys/kern/subr_prf.c:253
#2  0xc0545c6e in trap (frame=0xcc61da34)
    at /mnt/sys_50/sys/arch/i386/i386/trap.c:367
#3  0xc010cb80 in calltrap ()
#4  0xc053e261 in db_read_bytes (addr=0, size=4, data=0xcc61daa0 "\004")
    at /mnt/sys_50/sys/arch/i386/i386/db_memrw.c:91
#5  0xc01b1c6a in db_get_value (addr=0, size=4, is_signed=false)
    at /mnt/sys_50/sys/ddb/db_access.c:62
#6  0xc053eaea in db_stack_trace_print (addr=-866002028, have_addr=true,
    count=65535, modif=0xc0a4da7c "", pr=0xc0487a10 <printf>)
    at /mnt/sys_50/sys/arch/i386/i386/db_trace.c:485
#7  0xc0487c05 in panic (fmt=0xc0a1b40f "trap")
    at /mnt/sys_50/sys/kern/subr_prf.c:242
#8  0xc0545c6e in trap (frame=0xcc61dc58)
    at /mnt/sys_50/sys/arch/i386/i386/trap.c:367
#9  0xc010cb80 in calltrap ()
#10 0xc071ba1c in usb_transfer_complete (xfer=0xc3093d00)
    at /mnt/sys_50/sys/dev/usb/usbdi.c:766
#11 0xc0319fdc in uhci_idone (ii=<value optimized out>)
    at /mnt/sys_50/sys/dev/usb/uhci.c:1637
#12 0xc031a34a in uhci_softintr (v=0xccd4b004)
    at /mnt/sys_50/sys/dev/usb/uhci.c:1506
#13 0xc046be8c in softint_dispatch (pinned=0xcc2c7c80, s=4)
    at /mnt/sys_50/sys/kern/kern_softint.c:534
#14 0xc0100e6d in Xsoftintr ()
#15 0x00000000 in ?? ()
(gdb) fram 10
#10 0xc071ba1c in usb_transfer_complete (xfer=0xc3093d00)
    at /mnt/sys_50/sys/dev/usb/usbdi.c:766
766             polling = pipe->device->bus->use_polling;
(gdb) p *pipe->device
$1 = {bus = 0x0, default_pipe = 0xc351c400, address = 2 '\002',
  config = 1 '\001', depth = 1 '\001', speed = 2 '\002',
  self_powered = 0 '\0', power = 100, langid = 1033, cookie = {cookie = 6},
  powersrc = 0xc308b0b0, myhub = 0xc308be00, myhsport = 0x0, def_ep = {
    edesc = 0xc3525bac, refcnt = 0}, def_ep_desc = {bLength = 7 '\a',
    bDescriptorType = 5 '\005', bEndpointAddress = 0 '\0',
    bmAttributes = 0 '\0', wMaxPacketSize = "\b", bInterval = 0 '\0'},
  ifaces = 0xc3042180, ddesc = {bLength = 18 '\022',
    bDescriptorType = 1 '\001', bcdUSB = "\020\001", bDeviceClass = 0 '\0',
    bDeviceSubClass = 0 '\0', bDeviceProtocol = 0 '\0',
    bMaxPacketSize = 8 '\b', idVendor = "Q\004", idProduct = "2ô",
    bcdDevice = "\000\001", iManufacturer = 1 '\001', iProduct = 2 '\002',
    iSerialNumber = 3 '\003', bNumConfigurations = 1 '\001'},
  cdesc = 0xc3525580, quirks = 0xc09c65fc, hub = 0x0, subdevlen = 0,
  subdevs = 0xc3146840, nifaces_claimed = 0}
(gdb) quit
-bash-4.0$


-bash-4.0$ dmesg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    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 5.0.1_PATCH (GENERIC_3n) #2: Sat Sep  5 20:15:54 EST 2009
        thilo@rescue:/mnt/obj.50rc1/sys/arch/i386/compile/GENERIC_3n
total memory = 1982 MB
avail memory = 1936 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Winfast   ( )
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (OEM00000 PROD00000000)
cpu0 at mainbus0 apid 0: AMD 686-class, 2099MHz, id 0x60fb1
cpu0: AMD PowerNow! Technology 2100 MHz
cpu0: available frequencies (Mhz): 1000 1800 2000 2100
cpu1 at mainbus0 apid 1: AMD 686-class, 2099MHz, id 0x60fb1
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type ISA
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 3, 24 pins
ioapic1 at mainbus0 apid 3: pa 0xfecc0000, version 3, 24 pins
mpbios: WARNING: pin 31 for apic 3 too high; assuming ACPI global int value
mpbios: WARNING: pin 27 for apic 3 too high; assuming ACPI global int value
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1106 product 0x0336 (rev. 0x00)
agp0 at pchb0 (v3): aperture at 0xd0000000, size 0x10000000
pchb1 at pci0 dev 0 function 1
pchb1: vendor 0x1106 product 0x1336 (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: vendor 0x1106 product 0x2336 (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: vendor 0x1106 product 0x3336 (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: vendor 0x1106 product 0x4336 (rev. 0x00)
vendor 0x1106 product 0x5336 (interrupt system, interface 0x20) at pci0
dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 7
pchb5: vendor 0x1106 product 0x7336 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0xb188 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci1 dev 0 function 0: vendor 0x1106 product 0x3230 (rev. 0x11)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at vga1 not configured
ppb1 at pci0 dev 2 function 0: vendor 0x1106 product 0xa238 (rev. 0x00)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 3 function 0: vendor 0x1106 product 0xc238 (rev. 0x00)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
rtk0 at pci0 dev 9 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
rtk0: interrupting at ioapic0 pin 19
rtk0: Ethernet address 00:15:58:6d:63:81
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci_mem_find: expected type mem, found i/o
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VT8237 SATA Controller (rev. 0x80)
viaide0: bus-master DMA support present
viaide0: primary channel wired to native-PCI mode
viaide0: using ioapic0 pin 20 for native-PCI interrupt
atabus0 at viaide0 channel 0
viaide0: secondary channel wired to native-PCI mode
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 15 function 1
viaide1: VIA Technologies VT8237 ATA133 controller
viaide1: bus-master DMA support present
viaide1: primary channel configured to compatibility mode
viaide1: primary channel interrupting at ioapic0 pin 14
atabus2 at viaide1 channel 0
viaide1: secondary channel configured to compatibility mode
viaide1: secondary channel interrupting at ioapic0 pin 15
atabus3 at viaide1 channel 1
uhci0 at pci0 dev 16 function 0: vendor 0x1106 product 0x3038 (rev. 0x81)
uhci0: interrupting at ioapic0 pin 21
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 16 function 1: vendor 0x1106 product 0x3038 (rev. 0x81)
uhci1: interrupting at ioapic0 pin 21
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 16 function 2: vendor 0x1106 product 0x3038 (rev. 0x81)
uhci2: interrupting at ioapic0 pin 21
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 16 function 3: vendor 0x1106 product 0x3038 (rev. 0x81)
uhci3: interrupting at ioapic0 pin 21
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 16 function 4: vendor 0x1106 product 0x3104 (rev. 0x86)
ehci0: interrupting at ioapic0 pin 21
ehci0: dropped intr workaround enabled
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
pcib0 at pci0 dev 17 function 0
pcib0: vendor 0x1106 product 0x3227 (rev. 0x00)
auvia0 at pci0 dev 17 function 5: VIA Technologies VT8237 AC'97 Audio
(rev 0x60)
auvia0: interrupting at ioapic0 pin 22
auvia0: ac97: Avance Logic ALC655 codec; no 3D stereo
auvia0: ac97: ext id 9c4<AC97_23,LDAC,SDAC,CDAC,SPDIF>
audio0 at auvia0: full duplex, independent
pchb6 at pci0 dev 24 function 0
pchb6: vendor 0x1022 product 0x1100 (rev. 0x00)
pchb7 at pci0 dev 24 function 1
pchb7: vendor 0x1022 product 0x1101 (rev. 0x00)
pchb8 at pci0 dev 24 function 2
pchb8: vendor 0x1022 product 0x1102 (rev. 0x00)
amdtemp0 at pci0 dev 24 function 3
amdtemp0: AMD CPU Temperature Sensors (K8: core rev BH-G1, socket AM2)
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
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
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff
npx0: reported by CPUID; using exception 16
attimer0: attached to pcppi0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
uhub0 at usb1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb3: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb2: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: vendor 0x1106 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viaide0 port 1: device present, speed: 1.5Gb/s
wd0 at atabus1 drive 0: <ST31000333AS>
wd0: quirks 2<FORCE_LBA48>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus2: 2 targets
cd0 at atapibus0 drive 0: <PIONEER DVD-RW  DVR-109, EADL078870WL, 1.58>
cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd1 at atabus2 drive 1: <FUJITSU MPF3102AT>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 9773 MB, 19857 cyl, 16 head, 63 sec, 512 bytes/sect x 20015856 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd1(viaide1:0:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd2 at atabus3 drive 0: <WDC WD3200JB-00KFA0>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd2(viaide1:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex
boot device: wd1
root on wd1a dumps on wd1b
/: replaying log to memory
root file system type: ffs
/: replaying log to disk
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
/mnt: replaying log to disk

insertion of device causes LOTS of hid's...


umodem0 at uhub3 port 2 configuration 1 interface 0
umodem0: Texas Instruments Texas Instruments MSP-FET430UIF, rev
1.10/1.00, addr 2, iclass 2/2
umodem0: data interface 0, has no CM over data, has no break
umodem0: status change notification available
ucom0 at umodem0
uhidev0 at uhub3 port 2 configuration 1 interface 1
uhidev0: Texas Instruments Texas Instruments MSP-FET430UIF, rev
1.10/1.00, addr 2, iclass 3/0
uhidev0: 211 report ids
uhid0 at uhidev0 reportid 1: input=1, output=1, feature=0
uhid1 at uhidev0 reportid 2: input=2, output=2, feature=0
uhid2 at uhidev0 reportid 3: input=3, output=3, feature=0
uhid3 at uhidev0 reportid 4: input=4, output=4, feature=0
uhid4 at uhidev0 reportid 5: input=5, output=5, feature=0
uhid5 at uhidev0 reportid 6: input=6, output=6, feature=0
uhid6 at uhidev0 reportid 7: input=7, output=7, feature=0
uhid7 at uhidev0 reportid 8: input=8, output=8, feature=0
uhid8 at uhidev0 reportid 9: input=9, output=9, feature=0
uhid9 at uhidev0 reportid 10: input=10, output=10, feature=0
uhid10 at uhidev0 reportid 11: input=11, output=11, feature=0
uhid11 at uhidev0 reportid 12: input=12, output=12, feature=0
uhid12 at uhidev0 reportid 13: input=13, output=13, feature=0
uhid13 at uhidev0 reportid 14: input=14, output=14, feature=0
uhid14 at uhidev0 reportid 15: input=15, output=15, feature=0
uhid15 at uhidev0 reportid 16: input=16, output=16, feature=0
uhid16 at uhidev0 reportid 17: input=17, output=17, feature=0
uhid17 at uhidev0 reportid 18: input=18, output=18, feature=0
uhid18 at uhidev0 reportid 32: input=32, output=32, feature=0
uhid19 at uhidev0 reportid 63: input=63, output=63, feature=0
uhid20 at uhidev0 reportid 200: input=0, output=0, feature=1
uhid21 at uhidev0 reportid 201: input=0, output=0, feature=2
uhid22 at uhidev0 reportid 202: input=0, output=0, feature=2
uhid23 at uhidev0 reportid 203: input=0, output=0, feature=1
uhid24 at uhidev0 reportid 204: input=0, output=0, feature=1
uhid25 at uhidev0 reportid 205: input=0, output=0, feature=1
uhid26 at uhidev0 reportid 210: input=0, output=0, feature=1
uhid27 at uhidev0 reportid 211: input=0, output=0, feature=1
-bash-4.0$


cheers thilo


Home | Main Index | Thread Index | Old Index