From owner-freebsd-usb@FreeBSD.ORG Tue May 8 06:20:14 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6E4E16A402 for ; Tue, 8 May 2007 06:20:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 50B1513C448 for ; Tue, 8 May 2007 06:20:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l486KD16051834 for ; Tue, 8 May 2007 06:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l486KD6x051833; Tue, 8 May 2007 06:20:13 GMT (envelope-from gnats) Date: Tue, 8 May 2007 06:20:13 GMT Message-Id: <200705080620.l486KD6x051833@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Igor Popov Cc: Subject: Re: usb/112461: ehci USB 2.0 doesn't work on nforce4 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Igor Popov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 06:20:14 -0000 The following reply was made to PR usb/112461; it has been noted by GNATS. From: Igor Popov To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/112461: ehci USB 2.0 doesn't work on nforce4 Date: Tue, 8 May 2007 09:19:44 +0300 =D0=92 =D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B8 =D0=BE=D1=82 = Monday 07 May 2007 16:12:50 Hans Petter Selasky =D0=BD=D0=B0=D0=BF=D0=B8=D1= =81=D0=B0=D0=BB(=D0=B0): > On Monday 07 May 2007 08:09, Igor Popov wrote: > > Good morning. > > > > > On Sunday 06 May 2007 13:51, Igor Popov wrote: > > > > >Number: 112461 > > > > >Category: usb > > > > >Synopsis: ehci USB 2.0 doesn't work on nforce4 > > > > >Confidential: no > > > > >Severity: non-critical > > > > >Priority: medium > > > > >Responsible: freebsd-usb > > > > >State: open > > > > >Quarter: > > > > >Keywords: > > > > >Date-Required: > > > > >Class: sw-bug > > > > >Submitter-Id: current-users > > > > >Arrival-Date: Sun May 06 12:00:11 GMT 2007 > > > > >Closed-Date: > > > > >Last-Modified: > > > > >Originator: Igor Popov > > > > >Release: 6.0, 6.1, 6.2 > > > > >Organization: > > > > >Environment: > > > > > > > > FreeBSD unix.my.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sat Jan 27 > > > > 13:01:18 EET 2007 =20 > > > > toor@unix.my.net:/usr/obj/usr/src/sys/SUPERKERNEL i386 > > > > > > > > >Description: > > > > > > > > I have motherboard(Asus A8N-E) that built on nforce4 chipset, it has > > > > usb 2.0 ports, but under FreeBSD with usb 2.0 flashdrive max speed > > > > near 1.2Mb/s on file copying (my custom kernel has ehci driver), th= at > > > > is usb1.[01] speed. But under both linux an windows with the same > > > > flashdrive speed is near 10Mb/s. > > > > > > > > Copyright (c) 1992-2007 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 6.2-RELEASE #0: Sat Jan 27 13:01:18 EET 2007 > > > > toor@unix.my.net:/usr/obj/usr/src/sys/SUPERKERNEL > > > > ACPI APIC Table: > > > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > > > CPU: AMD Athlon(tm) 64 Processor 3000+ (1809.28-MHz 686-class CPU) > > > > Origin =3D "AuthenticAMD" Id =3D 0x20ff2 Stepping =3D 2 > > > > > > > > Features=3D0x78bfbff > > >GE ,M CA ,CM OV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> > > > > Features2=3D0x1 > > > > AMD Features=3D0xe2500800 > > > > AMD Features2=3D0x1 > > > > real memory =3D 536805376 (511 MB) > > > > avail memory =3D 507523072 (484 MB) > > > > ioapic0 irqs 0-23 on motherboard > > > > wlan: mac acl policy registered > > > > ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, > > > > RF5413) acpi0: on motherboard > > > > acpi_bus_number: can't get _ADR > > > > acpi_bus_number: can't get _ADR > > > > acpi0: Power Button (fixed) > > > > acpi_bus_number: can't get _ADR > > > > acpi_bus_number: can't get _ADR > > > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > > > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on > > > > acpi0 cpu0: on acpi0 > > > > acpi_button0: on acpi0 > > > > pcib0: port 0xcf8-0xcff on acpi0 > > > > pci0: on pcib0 > > > > pci0: at device 0.0 (no driver attached) > > > > isab0: at device 1.0 on pci0 > > > > isa0: on isab0 > > > > nfsmb0: port > > > > 0xe400-0xe41f,0x4c00-0x4c3f,0x4c 40-0x4c7f irq 20 at device 1.1 on > > > > pci0 smbus0: on nfsmb0 > > > > smb0: on smbus0 > > > > nfsmb1: on nfsmb0 > > > > smbus1: on nfsmb1 > > > > smb1: on smbus1 > > > > ohci0: mem 0xd3104000-0xd3104fff irq > > > > 21 at devic e 2.0 on pci0 > > > > ohci0: [GIANT-LOCKED] > > > > usb0: OHCI version 1.0, legacy support > > > > usb0: on ohci0 > > > > usb0: USB revision 1.0 > > > > uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > > > > uhub0: 10 ports with 10 removable, self powered > > > > ehci0: mem 0xfeb00000-0xfeb000ff > > > > irq 22 at d evice 2.1 on pci0 > > > > ehci0: [GIANT-LOCKED] > > > > usb1: EHCI version 1.0 > > > > usb1: companion controller, 4 ports each: usb0 > > > > usb1: on ehci0 > > > > usb1: USB revision 2.0 > > > > uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > > > > uhub1: 10 ports with 10 removable, self powered > > > > pcm0: port 0xdc00-0xdcff,0xe000-0xe0ff mem > > > > 0xd3103000-0xd3103ff f irq 23 at device 4.0 on pci0 > > > > pcm0: > > > > atapci0: port > > > > 0x1f0-0x1f7,0x3f6,0x170-0 x177,0x376,0xf000-0xf00f at device 6.0 on > > > > pci0 ata0: on atapci0 > > > > ata1: on atapci0 > > > > atapci1: port > > > > 0x9f0-0x9f7,0xbf0-0xbf3,0 x970-0x977,0xb70-0xb73,0xd800-0xd80f mem > > > > 0xd3102000-0xd3102fff irq 21 at device 7.0 on pci0 > > > > ata2: on atapci1 > > > > ata3: on atapci1 > > > > atapci2: port > > > > 0x9e0-0x9e7,0xbe0-0xbe3,0 x960-0x967,0xb60-0xb63,0xc400-0xc40f mem > > > > 0xd3101000-0xd3101fff irq 22 at device 8.0 on pci0 > > > > ata4: on atapci2 > > > > ata5: on atapci2 > > > > pcib1: at device 9.0 on pci0 > > > > pci5: on pcib1 > > > > ath0: mem 0xd3000000-0xd300ffff irq 16 at device 6.0 > > > > on pci5 ath0: Ethernet address: 00:15:e9:a4:58:9b > > > > ath0: mac 7.9 phy 4.5 radio 5.6 > > > > nfe0: port > > > > 0xb000-0xb007 mem 0xd3 100000-0xd3100fff irq 23 at device 10.0 on > > > > pci0 > > > > miibus0: on nfe0 > > > > e1000phy0: on miibus0 > > > > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > > > 1000baseTX-FDX, auto nfe0: Ethernet address: 00:17:31:13:8d:3f > > > > nfe0: [FAST] > > > > pcib2: at device 11.0 on pci0 > > > > pci4: on pcib2 > > > > pcib3: at device 12.0 on pci0 > > > > pci3: on pcib3 > > > > pcib4: at device 13.0 on pci0 > > > > pci2: on pcib4 > > > > pcib5: at device 14.0 on pci0 > > > > pci1: on pcib5 > > > > nvidia0: port 0xa000-0xa07f mem > > > > 0xd0000000-0xd0ffffff,0xc0 000000-0xcfffffff,0xd1000000-0xd1ffffff > > > > irq 18 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] > > > > acpi_tz0: on acpi0 > > > > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 = on > > > > acpi0 fdc0: [FAST] > > > > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > > > > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 > > > > on acpi0 sio0: type 16550A > > > > ppc0: port 0x378-0x37f irq 7 on > > > > acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > > > > ppbus0: on ppc0 > > > > lpt0: on ppbus0 > > > > lpt0: Interrupt-driven port > > > > ppi0: on ppbus0 > > > > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > > > > atkbd0: irq 1 on atkbdc0 > > > > atkbd0: [GIANT-LOCKED] > > > > psm0: irq 12 on atkbdc0 > > > > psm0: [GIANT-LOCKED] > > > > psm0: model IntelliMouse, device ID 3 > > > > pmtimer0 on isa0 > > > > sc0: at flags 0x100 on isa0 > > > > sc0: VGA <16 virtual consoles, flags=3D0x300> > > > > sio1: configured irq 3 not in bitmap of probed irqs 0 > > > > sio1: port may not be enabled > > > > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on > > > > isa0 Timecounter "TSC" frequency 1809282513 Hz quality 800 > > > > Timecounters tick every 1.000 msec > > > > ad0: 238475MB at ata0-master UDMA100 > > > > acd0: DVDR at ata1-master UDMA66 > > > > ad1: 190782MB at ata5-master SATA150 > > > > Trying to mount root from ufs:/dev/ad0s2a > > > > ath0: link state changed to UP > > > > nfe0: link state changed to UP > > > > umass0: vendor 0x0457 USB Mass Storage Device, rev 2.00/1.00, addr 2 > > > > da0 at umass-sim0 bus 0 target 0 lun 0 > > > > da0: Removable Direct Access SCSI-2 device > > > > da0: 40.000MB/s transfers > > > > da0: 3920MB (8028160 512 byte sectors: 255H 63S/T 499C) > > > > > > This is maybe a SCSI problem. > > > > > > If you install the new USB stack [the SVN version], see: > > > > > > http://www.turbocat.net/~hselasky/usb4bsd > > > > > > Then try to copy some files and turn on debugging: > > > > > > sysctl hw.usb.umass.debug=3D-1 > > > > > > You might get a lot of messages. Look for errors. > > > > No, it is standard kernel from RELENG_6_2 branch, usb stack is not > > modified. > > You have to compile a new USB kernel with "options USB_DEBUG". My new USB > stack has that flag set by default. > =20 Recompiled kernel with makeoptions DEBUG=3D-DUSB_DEBUG # sysctl hw.usb hw.usb.ehci.debug: 1 hw.usb.ohci.debug: 1 hw.usb.ugen.debug: 1 hw.usb.uhci.debug: 1 hw.usb.uhci.loop: 0 hw.usb.uhid.debug: 0 hw.usb.uhub.debug: 0 hw.usb.ukbd.debug: 0 hw.usb.ulpt.debug: 0 hw.usb.umass.debug: 1 hw.usb.ums.debug: 0 hw.usb.debug: 1 ehci_pcd: change=3D0x02 ehci after reset, status=3D0x00001005 ehci port 1 reset, status =3D 0x00001005 usbd_new_device bus=3D0xc3b51000 port=3D1 depth=3D1 speed=3D3 usbd_new_device: adding unit addr=3D2, rev=3D200, class=3D0, subclass=3D0, = protocol=3D0,=20 maxpacket=3D64, len=3D18, speed=3D3 usbd_new_device: new dev (addr 2), dev=3D0xc4c35900, parent=3D0xc3b3f900 usbd_probe_and_attach: trying device specific drivers usbd_probe_and_attach: no device specific driver found usbd_probe_and_attach: looping over 1 configurations usbd_set_config_index: (addr 1) cno=3D2 attr=3D0x80, selfpowered=3D0, power= =3D98 usbd_set_config_index: set config 1 umass0: vendor 0x0457 USB Mass Storage Device, rev 2.00/1.00, addr 2 umass0: SCSI over Bulk-Only; quirks =3D 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 3920MB (8028160 512 byte sectors: 255H 63S/T 499C) umass0: BBB reset failed, IOERROR ehci_device_clear_toggle: epipe=3D0xc4c35180 status=3D0x80008d00 usbd_dump_pipe: pipe=3D0xc4c35180 usbd_dump_iface: iface=3D0xc40bb020 device=3D0xc4c35900 idesc=3D0xc433fe09 index=3D0 altindex=3D0 priv=3D0 usbd_dump_device: dev=3D0xc4c35900 bus=3D0xc3b51000 default_pipe=3D0xc4c35800 address=3D2 config=3D1 depth=3D1 speed=3D3 self_powered=3D0 power=3D98 lang= id=3D1033 usbd_dump_endpoint: endp=3D0xc3d12dcc edesc=3D0xc433fe19 refcnt=3D1 bEndpointAddress=3D0x82 (usbd_dump_pipe:) refcnt=3D1 running=3D0 aborting=3D0 intrxfer=3D0, repeat=3D0, interval=3D-1 umass0: BBB bulk-in clear stall failed, IOERROR ehci_device_clear_toggle: epipe=3D0xc4c35000 status=3D0x801f8049 usbd_dump_pipe: pipe=3D0xc4c35000 usbd_dump_iface: iface=3D0xc40bb020 device=3D0xc4c35900 idesc=3D0xc433fe09 index=3D0 altindex=3D0 priv=3D0 usbd_dump_device: dev=3D0xc4c35900 bus=3D0xc3b51000 default_pipe=3D0xc4c35800 address=3D2 config=3D1 depth=3D1 speed=3D3 self_powered=3D0 power=3D98 lang= id=3D1033 usbd_dump_endpoint: endp=3D0xc3d12dc0 edesc=3D0xc433fe12 refcnt=3D1 bEndpointAddress=3D0x01 (usbd_dump_pipe:) refcnt=3D1 running=3D0 aborting=3D0 intrxfer=3D0, repeat=3D0, interval=3D-1 umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR ehci_device_clear_toggle: epipe=3D0xc4c35180 status=3D0x8d00 usbd_dump_pipe: pipe=3D0xc4c35180 usbd_dump_iface: iface=3D0xc40bb020 device=3D0xc4c35900 idesc=3D0xc433fe09 index=3D0 altindex=3D0 priv=3D0 usbd_dump_device: dev=3D0xc4c35900 bus=3D0xc3b51000 default_pipe=3D0xc4c35800 address=3D2 config=3D1 depth=3D1 speed=3D3 self_powered=3D0 power=3D98 lang= id=3D1033 usbd_dump_endpoint: endp=3D0xc3d12dcc edesc=3D0xc433fe19 refcnt=3D1 bEndpointAddress=3D0x82 (usbd_dump_pipe:) refcnt=3D1 running=3D0 aborting=3D0 IOERROR on mount, so I have to turn of debug, unplug and plug usbdrive, mou= nt=20 it and turn on debug. On file copying there were no kernel messages. =2D-=20 If it heals good, say it.