RE: usb2 under 5.2, how to use ehci

"Graaf, Rob" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <A16923DE912AD411B0F800A024519D4C01E1811C@lion-msrvp.leidenuniv.nl>
 
Hi Brian,

I recompiled the kernel, but it doesn't work (yet).

I included the following line into the kernel configuration file:
device		ehci		# USB2

So (part of) the configuration files looks like:
------------------------------------------------
# USB support
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse
device          urio            # Diamond Rio 500 MP3 player
device          uscanner        # Scanners
device          ehci            # USB2

Recompiled the kernel and rebooted.

On insert of the LaCie usb harddisk (but also on insert of a memory stick)
/var/log/messages says:
------------------------------------------------
Nov  1 10:23:22 dowould kernel: usb3: unrecoverable error, controller halted
Nov  1 10:23:22 dowould kernel: usb3: blocking intrs 0x10
Nov  1 10:23:47 dowould kernel: usb3: port reset timeout

(The usb mouse works fine)

Could you or anybody give me a hint?

The dmesg is included below.

Regards,

Rob de Graaf



Here is the dmesg:
------------------------------------------------
Copyright (c) 1992-2004 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 5.2.1-RELEASE #0: Mon Nov  1 09:57:05 GMT 2004
    [email protected]:/usr/src/sys/i386/compile/MYKERNEL
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a83000.
Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc0a8321c.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc0a832c8.
Preloaded elf module "/boot/kernel/linprocfs.ko" at 0xc0a83374.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc0a83424.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a834d0.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Mobile Intel(R) Pentium(R) 4     CPU 2.80GHz (2797.64-MHz 686-class
CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
 
Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV
,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 535597056 (510 MB)
avail memory = 510570496 (486 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL   CPi R  > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 10 entries at 0xc00fcbb0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 2 INTA is routed to irq 11
pcib0: slot 29 INTA is routed to irq 11
pcib0: slot 29 INTB is routed to irq 11
pcib0: slot 29 INTC is routed to irq 11
pcib0: slot 29 INTD is routed to irq 11
pcib0: slot 31 INTB is routed to irq 11
pcib0: slot 31 INTB is routed to irq 11
pci0: <base peripheral> at device 0.1 (no driver attached)
pci0: <base peripheral> at device 0.3 (no driver attached)
agp0: <Intel 8285xM (85xGM GMCH) SVGA controller> port 0xc000-0xc007 mem
0xf6f80000-0xf6ffffff,0xe8000000-0xefffffff irq 11 at device 2.0 on pci0
agp0: detected 892k stolen memory
agp0: aperture size is 128M
pci0: <display> at device 2.1 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xbf80-0xbf9f irq 11
at device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xbf40-0xbf5f irq 11
at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xbf20-0xbf3f irq 11
at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel 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 0xf6effc00-0xf6efffff irq 11
at device 29.7 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: (0x8086) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib1
pcib1: slot 1 INTA is routed to irq 11
bfe0: <Broadcom BCM4401 Fast Ethernet> mem 0xfcffe000-0xfcffffff irq 11 at
device 1.0 on pci2
bfe0: Ethernet address: 00:0f:1f:18:de:96
miibus0: <MII bus> on bfe0
bmtphy0: <BCM4401 10/100baseTX PHY> on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cbb0: <TI1510 PCI-CardBus Bridge> at device 4.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pcib1: slot 4 INTA is routed to irq 11
cbb0: [MPSAFE]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port
0xbfa0-0xbfaf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pcm0: <Intel ICH4 (82801DB)> port 0xcc40-0xcc7f,0xc800-0xc8ff mem
0xf6eff400-0xf6eff4ff,0xf6eff800-0xf6eff9ff irq 11 at device 31.5 on pci0
pcm0: <SigmaTel STAC9750/51 AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x66,0x62,0x64,0x60 irq 1 on
acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> flags 0x1000 irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
orm0: <Option ROMs> at iomem
0xcf800-0xcffff,0xcf000-0xcf7ff,0xce800-0xcefff,0xce000-0xce7ff,0xcd800-0xcd
fff,0xc0000-0xcd7ff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2797636524 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
acd0: CDRW <SAMSUNG CDRW/DVD SN-324F> at ata0-master PIO4
GEOM: create disk ad2 dp=0xc4912660
ad2: 57231MB <IC25N060ATMR04-0> [116280/16/63] at ata1-master UDMA100
Mounting root from ufs:/dev/ad2s3a











-----Original Message-----
From: Brian Reichert
To: Graaf, Rob
Cc: '[email protected]'
Sent: 10/31/04 8:54 PM
Subject: Re: usb2 under 5.2, how to use ehci

On Sun, Oct 31, 2004 at 06:09:15PM +0100, Graaf, Rob wrote:
> Hi,
> 
> i'm running FreeBSD 5.2.1 (installed right-out-of-the-box)
> and make use of a LaCie external harddisk which is connected
> by usb.
> 
> The usb driver used is uhci, but this supports only usb1,
> which is not fast.
> 
> How can I use ehci, which seems to support usb2?

I went through this very same firedrill recently:

<http://lists.freebsd.org/pipermail/freebsd-mobile/2004-August/004653.ht
ml>

After I put 'device ehci' in my kernal. my laptop-to-LaCie throughput
was
pretty good:

  # dd if=/dev/zero of=/new/junk bs=4k count=125000
  125000+0 records in
  125000+0 records out
  512000000 bytes transferred in 58.722096 secs (8719035 bytes/sec)

> Anybody can give me directions how replace the ehci?
> 
> Thanks
> 
> Rob de Graaf

-- 
Brian Reichert				<[email protected]>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			BSD admin/developer at large	
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.