ehci driver disables USB support on boot time

FUJIMOTO Kou fujimoto at j.dendai.ac.jp
Fri Dec 26 00:10:21 PST 2003


Hello,

I have C2M266-FL M/B, which have VIA CLE266 chipset that
supports USB 2.0. I usually attach USB keyboard/mouse/two HUBs
to USB ports (none of them is USB 2.0 compliant, of course).
I have USB2.0-compliant DVD recorder and sometimes would like
to use it with FreeBSD.

Enabling "device ehci" on 5.2-RC kernel config and rebooting,
both uhci and ehci devices are recognized as below.
On the next boot time, however, LEDs on HUBs don't light
and keyboard don't work until kernel loads USB drivers.
After USB controllers are recognized by kernel, LEDs are on and
keyboard/mouse work properly.

It looks like that BIOS USB support is disabled, but it is
actually enabled on BIOS setup menu.
This is a problem because I can neither modify BIOS setup nor
select boot options (single or multiuser mode, etc).
This problem occurs both on hot and cold boot, and is resolved
only when I short out CMOS clear jumper.

Disabling ehci driver, this problem never occur, i.e. all LEDs
on HUBs light and keyboard works well on BIOS setup.

Does anyone have the same problem? Any solution or workaround?

[dmesg with ehci enabled]
=============================================================
uhci0: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 15 at device 16.0 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 12 at device 16.1 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 11 at device 16.2 on pci0
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xdf002000-0xdf0020ff irq 5 at
device 16.3 on pci0
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
ehci_pci_attach: companion usb2
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <EHCI (generic) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: (0x1106) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
uhub0: port error, restarting port 1
uhub4: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
uhub4: 3 ports with 3 removable, self powered
uhid0: EIZO EIZO USB HID Monitor, rev 1.10/27.12, addr 3, iclass 3/0
uhub5: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 4
uhub5: 4 ports with 4 removable, bus powered
ums0: Logitech USB-PS/2 Trackball, rev 1.00/2.10, addr 5, iclass 3/1
ums0: 3 buttons and Z dir.
uhub6: Chicony Generic USB Hub, class 9/0, rev 1.10/1.00, addr 6
uhub6: 1 port with 0 removable, bus powered
ukbd0: Chicony PFU-65 USB Keyboard, rev 1.10/1.00, addr 7, iclass 3/1
kbd0 at ukbd0
=============================================================

[dmesg with ehci disabled]
=============================================================
uhci0: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 15 at device 16.0 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
uhub1: 3 ports with 3 removable, self powered
ugen0: EIZO EIZO USB HID Monitor, rev 1.10/27.12, addr 3
uhub2: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 4
uhub2: 4 ports with 4 removable, bus powered
ums0: Logitech USB-PS/2 Trackball, rev 1.00/2.10, addr 5, iclass 3/1
ums0: 3 buttons and Z dir.
uhub3: Chicony Generic USB Hub, class 9/0, rev 1.10/1.00, addr 6
uhub3: 1 port with 0 removable, bus powered
ukbd0: Chicony PFU-65 USB Keyboard, rev 1.10/1.00, addr 7, iclass 3/1
kbd0 at ukbd0
uhci1: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 12 at device 16.1 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub4: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 11 at device 16.2 on pci0
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub5: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub5: 2 ports with 2 removable, self powered
uhub5: port error, restarting port 2
uhub5: port error, giving up port 2
pci0: <serial bus, USB> at device 16.3 (no driver attached)
=============================================================

-- 
FUJIMOTO Kou, Tokyo Denki University
http://www.j.dendai.ac.jp/~fujimoto/




More information about the freebsd-current mailing list