Re: current couldn't attach usb mouse

From: Chao Shin <quakelee_at_geekcn.org>
Date: Tue, 05 May 2009 14:30:06 +0800
Hi Hans,
There is new dmesg with debug=15, but I can't catch difference...

[root_at_currentpark] ~# dmesg
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #4: Tue May  5 00:25:41 CST 2009
     root_at_currentpark.intra.umessage.com.cn:/usr/obj/usr/src/sys/UMESSAGE
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) Dual  CPU  E2160  _at_ 1.80GHz (1795.51-MHz K8-class  
CPU)
   Origin = "GenuineIntel"  Id = 0x6fd  Stepping = 13
   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
   AMD Features=0x20100800<SYSCALL,NX,LM>
   AMD Features2=0x1<LAHF>
   TSC: P-state invariant
real memory  = 1073741824 (1024 MB)
avail memory = 1012195328 (965 MB)
ACPI APIC Table: <DELL   B8K    >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 8
ioapic0 <Version 2.0> irqs 0-23 on motherboard
lapic0: Forcing LINT1 to edge trigger
kbd1 at kbdmux0
acpi0: <DELL B8K    > on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, f00000 (3) failed
acpi0: reservation of 1000000, 3e5ffc00 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on  
acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xecb8-0xecbf mem  
0xfea00000-0xfeafffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0
agp0: <Intel Q965 SVGA controller> on vgapci0
agp0: detected 7676k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xfeb00000-0xfebfffff at device 2.1  
on pci0
uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0xff20-0xff3f irq  
16 at device 26.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x0f10
usbus0: <Intel 82801H (ICH8) USB controller USB-D> on uhci0
uhci1: <Intel 82801H (ICH8) USB controller USB-E> port 0xff00-0xff1f irq  
17 at device 26.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x0f10
usbus1: <Intel 82801H (ICH8) USB controller USB-E> on uhci1
ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> mem  
0xfe9fbc00-0xfe9fbfff irq 22 at device 26.7 on pci0
ehci0: [ITHREAD]
usbus2: waiting for BIOS to give up control
usbus2: EHCI version 1.0
usbus2: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.4 on pci0
pci3: <ACPI PCI bus> on pcib3
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0xb002>  
mem 0xfe6f0000-0xfe6fffff irq 16 at device 0.0 on pci3
miibus0: <MII bus> on bge0
brgphy0: <BCM5787 10/100/1000baseTX PHY> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,  
1000baseT-FDX, auto
bge0: Ethernet address: 00:1a:a0:e1:31:eb
bge0: [ITHREAD]
uhci2: <Intel 82801H (ICH8) USB controller USB-A> port 0xff80-0xff9f irq  
23 at device 29.0 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x0000
usbus3: <Intel 82801H (ICH8) USB controller USB-A> on uhci2
uhci3: <Intel 82801H (ICH8) USB controller USB-B> port 0xff60-0xff7f irq  
17 at device 29.1 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x0000
usbus4: <Intel 82801H (ICH8) USB controller USB-B> on uhci3
uhci4: <Intel 82801H (ICH8) USB controller USB-C> port 0xff40-0xff5f irq  
18 at device 29.2 on pci0
uhci4: [ITHREAD]
uhci4: LegSup = 0x0000
usbus5: <Intel 82801H (ICH8) USB controller USB-C> on uhci4
ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> mem  
0xff980800-0xff980bff irq 23 at device 29.7 on pci0
ehci1: [ITHREAD]
usbus6: EHCI version 1.0
usbus6: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH8 SATA300 controller> port  
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfec0-0xfecf,0xecc0-0xeccf at device  
31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
atapci1: <Intel ICH8 SATA300 controller> port  
0xfe40-0xfe47,0xfe50-0xfe53,0xfe60-0xfe67,0xfe70-0xfe73,0xfed0-0xfedf,0xecd0-0xecdf  
irq 20 at device 31.5 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
atrtc0: <AT realtime clock> port 0x70-0x7f irq 8 on acpi0
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77f irq 7 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppc0: [ITHREAD]
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
plip0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
uart0: <Non-standard ns8250 class UART with FIFOs> port 0x3f8-0x3ff irq 4  
flags 0x10 on acpi0
uart0: [FILTER]
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 928092806000928
device_attach: est0 attach returned 6
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 928092806000928
device_attach: est1 attach returned 6
p4tcc1: <CPU Frequency Thermal Control> on cpu1
orm0: <ISA Option ROMs> at iomem  
0xc0000-0xcafff,0xcb000-0xccfff,0xcd000-0xcffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
uhci_interrupt: host system error
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 480Mbps High Speed USB v2.0
ad0: 152587MB <Seagate ST3160815AS 4.ADA> at ata0-master SATA300
uhci_interrupt: host system error
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <Intel> at usbus5
uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen6.1: <Intel> at usbus6
uhub6: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
GEOM: ad0: geometry does not match label (255h,63s != 16h,63s).
GEOM_LABEL: Label for provider ad0a is ufsid/49f98454ff52b98f.
GEOM_LABEL: Label for provider ad0a is ufs/root.
GEOM_LABEL: Label for provider ad0d is ufsid/49f9845b4cbc1341.
GEOM_LABEL: Label for provider ad0d is ufs/var.
GEOM_LABEL: Label for provider ad0e is ufsid/49f98455b2c7e9e5.
GEOM_LABEL: Label for provider ad0e is ufs/tmp.
GEOM_LABEL: Label for provider ad0f is ufsid/49f9845405ff03de.
GEOM_LABEL: Label for provider ad0f is ufs/home.
GEOM_LABEL: Label for provider ad0g is ufsid/49f98456bbb9c493.
GEOM_LABEL: Label for provider ad0g is ufs/usr.
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub2: 4 ports with 4 removable, self powered
uhub6: 6 ports with 6 removable, self powered
uhci_interrupt: host system error
acd0: DVDROM <TSSTcorpDVD-ROM TS-H353B/D200> at ata1-master SATA150
lapic1: Forcing LINT1 to edge trigger
SMP: AP CPU #1 Launched!
Root mount waiting for: usbus6
Trying to mount root from ufs:/dev/ufs/root
uhci_interrupt: host system error
GEOM_LABEL: Label ufsid/49f98454ff52b98f removed.
GEOM_LABEL: Label ufsid/49f9845405ff03de removed.
GEOM_LABEL: Label ufsid/49f98455b2c7e9e5 removed.
GEOM_LABEL: Label ufsid/49f984
bb
b9c493 removed.
GEOM_LABEL: Label ufsid/49f9845b4cbc1341 removed.
usb2_alloc_device:1574: set address 2 failed (USB_ERR_TIMEOUT, ignored)
ugen4.2: <Dell> at usbus4
ukbd0: <Dell product 0x2105, class 0/0, rev 1.10/3.52, addr 2> on usbus4
kbd2 at ukbd0
usb2_alloc_device:1612: getting device descriptor at addr 2 failed,  
USB_ERR_TIMEOUT!
uhci_interrupt: host system error
usb2_req_re_enumerate:1519: addr=2, set address failed! (USB_ERR_TIMEOUT,  
ignored)
bge0: link state changed to UP
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
usb2_req_re_enumerate:1533: getting device descriptor at addr 2 failed,  
USB_ERR_TIMEOUT!
uhci_interrupt: host system error
usb2_req_re_enumerate:1519: addr=2, set address failed! (USB_ERR_TIMEOUT,  
ignored)
usb2_req_re_enumerate:1533: getting device descriptor at addr 2 failed,  
USB_ERR_TIMEOUT!
ugen1.2: <> at usbus1 (disconnected)
uhub_reattach_port:417: could not allocate new device!

[root_at_currentpark] ~# cat /boot/loader.conf
hw.usb2.uhci.debug=15

after I patched your patch, the mouse still couldn't recognize, there is  
nothing different than before

usb2_alloc_device:1574: set address 2 failed (USB_ERR_TIMEOUT, ignored)
ugen4.2: <Dell> at usbus4
ukbd0: <Dell product 0x2105, class 0/0, rev 1.10/3.52, addr 2> on usbus4
kbd2 at ukbd0
usb2_alloc_device:1612: getting device descriptor at addr 2 failed,  
USB_ERR_TIMEOUT!
uhci_interrupt: host system error
usb2_req_re_enumerate:1519: addr=2, set address failed! (USB_ERR_TIMEOUT,  
ignored)
bge0: link state changed to UP
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
usb2_req_re_enumerate:1533: getting device descriptor at addr 2 failed,  
USB_ERR_TIMEOUT!
uhci_interrupt: host system error
usb2_req_re_enumerate:1519: addr=2, set address failed! (USB_ERR_TIMEOUT,  
ignored)
usb2_req_re_enumerate:1533: getting device descriptor at addr 2 failed,  
USB_ERR_TIMEOUT!
ugen1.2: <> at usbus1 (disconnected)
uhub_reattach_port:417: could not allocate new device!

any idea?

> On Monday 04 May 2009, Chao Shin wrote:
>> usbus0: 12Mbps Full Speed USB v1.0
>> uhci_interrupt: host controller process error
>
> Hi,
>
> It appears your USB Host Controller Hardware has crashed.
>
> Could you boot having the following line in /boot/loader.conf:
>
> hw.usb2.uhci.debug=15
>
> And send new dmesg.
>
>
>
> Patch you can try in the meanwhile:
>
> Edit /sys/dev/usb/controller/usb_controller.c:
>
> -	usb2_dma_tag_setup(bus->dma_parent_tag, bus->dma_tags,
> -	    dmat, &bus->bus_mtx, NULL, 32, USB_BUS_DMA_TAG_MAX);
>
> +	usb2_dma_tag_setup(bus->dma_parent_tag, bus->dma_tags,
> +	    dmat, &bus->bus_mtx, NULL, 30, USB_BUS_DMA_TAG_MAX);
>
> This will reduce the DMA bits to 30.
>
> --HPS
>
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to  
> "freebsd-current-unsubscribe_at_freebsd.org"



-- 
The Power to Serve
Received on Tue May 05 2009 - 04:31:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC