From owner-freebsd-current@FreeBSD.ORG Thu Sep 24 06:49:10 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D45F9106566B for ; Thu, 24 Sep 2009 06:49:10 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 53D2A8FC18 for ; Thu, 24 Sep 2009 06:49:10 +0000 (UTC) Received: (qmail invoked by alias); 24 Sep 2009 06:22:29 -0000 Received: from port-92-192-53-134.dynamic.qsc.de (EHLO zock.doris.net) [92.192.53.134] by mail.gmx.net (mp025) with SMTP; 24 Sep 2009 08:22:29 +0200 X-Authenticated: #1682771 X-Provags-ID: V01U2FsdGVkX18y1/4iCL4yP7/CkjKCNda20auV11sANzWIbQb3oG USNM6UaiajHhyp From: Dorian =?utf-8?q?B=C3=BCttner?= To: freebsd-usb@freebsd.org Date: Thu, 24 Sep 2009 08:22:28 +0200 User-Agent: KMail/1.12.1 (FreeBSD/8.0-RC1; KDE/4.3.1; amd64; ; ) References: <4ABA36B1.9070706@icyb.net.ua> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200909240822.28180.dorian.buettner@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 Cc: freebsd-current@freebsd.org, Andriy Gapon , Andrius =?utf-8?q?Mork=C5=ABnas?= Subject: Re: sb600/sb700 ohci experimental patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2009 06:49:10 -0000 On Friday 25 September 2009 00:31:17 Andrius Mork=C5=ABnas wrote: > On Wed, 23 Sep 2009 17:54:41 +0300, Andriy Gapon wrote: > > If you have a system with SB600, SB700, etc chipset and you have proble= ms > > with low speed USB devices attached during boot (keyboard, mouse), could > > you please try the following experimental patch and report back? > > I am primarily interested in the first several lines produced during bo= ot > > with printfs that are introduced by the patch. Preferably in the context > > of surrounding USB-related dmesg messages. No need to report subsequent > > same-looking ever-repeating messages (if any). >=20 > I hope this helps: >=20 > Test box: FreeBSD 8.0-RC1 amd64 r197323M on Asus M2A-VM (SB600) >=20 > Without your patch, if mouse is plugged into one of the back USB ports and > umass device is present on any USB port, mouse won't work. It has to be > connected to front USB port to be friendly with other devices. >=20 > With your patch, mouse can be plugged anywhere, it won't complain about > umass devices connected to front USB port, but it still doesn't play nice > with devices on back ports during boot. If I connect storage device after > boot, both mouse and storage devices work fine. >=20 >=20 > Parts of dmesg with mouse connected to back and storage to front USB port= s. > Everything works. >=20 > usbus0: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0xcfef1e30 > (hw power) control head =3D> 0x2329000 > usbus1: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0x4143000 > (hw power) control head =3D> 0x4143000 > usbus2: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0x4186000 > (hw power) control head =3D> 0x4186000 > usbus3: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0x41aa000 > (hw power) control head =3D> 0x41aa000 > usbus4: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0x4201000 > (hw power) control head =3D> 0x4201000 > usbus5: 480Mbps High Speed USB v2.0 >=20 > ugen0.1: at usbus0 > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > ugen2.1: at usbus2 > uhub2: on usbus2 > ugen3.1: at usbus3 > uhub3: on usbus3 > ugen4.1: at usbus4 > uhub4: on usbus4 > ugen5.1: at usbus5 > uhub5: on usbus5 > Root mount waiting for: usbus5 usbus4 usbus3 usbus2 usbus1 usbus0 > uhub2: 2 ports with 2 removable, self powered > uhub3: 2 ports with 2 removable, self powered > uhub0: 2 ports with 2 removable, self powered > uhub4: 2 ports with 2 removable, self powered > uhub1: 2 ports with 2 removable, self powered > Root mount waiting for: usbus5 > Root mount waiting for: usbus5 > Root mount waiting for: usbus5 > Root mount waiting for: usbus5 > uhub5: 10 ports with 10 removable, self powered > Root mount waiting for: usbus5 > (hw power) control head <=3D 0x2329000 > (hw power) control head =3D> 0x2329000 > ugen0.2: at usbus0 > ums0: on > usbus0 ums0: 16 buttons and [XYZ] coordinates ID=3D0 > uhid0: on > usbus0 (hw power) control head <=3D 0x2329000 > (hw power) control head =3D> 0x2329000 > ugen5.2: at usbus5 > umass0: on > usbus5 umass0: SCSI over Bulk-Only; quirks =3D 0x0000 > Root mount waiting for: usbus5 > (hw power) control head <=3D 0x2329000 > (hw power) control head =3D> 0x2329000 > umass0:1:0:-1: Attached to scbus1 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: 1967MB (4030463 512 byte sectors: 255H 63S/T 250C) >=20 >=20 > Connected another device to back USB port after booting was finished: >=20 > (hw power) control head <=3D 0x4143000 > (hw power) control head =3D> 0x4143000 > ugen1.2: at usbus1 > umass1: on usbus1 > umass1: SCSI over Bulk-Only; quirks =3D 0x0000 > umass1:2:1:-1: Attached to scbus2 > (hw power) control head <=3D 0x4143000 > (hw power) control head =3D> 0x4143000 > (hw power) control head <=3D 0x4143000 > (hw power) control head =3D> 0x4143000 > (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (probe0:umass-sim1:1:0:0): SCSI Status: Check Condition > (probe0:umass-sim1:1:0:0): UNIT ATTENTION asc:28,0 > (probe0:umass-sim1:1:0:0): Not ready to ready change, medium may have > changed (probe0:umass-sim1:1:0:0): Retrying Command (per Sense Data) > da1 at umass-sim1 bus 1 target 0 lun 0 > da1: Removable Direct Access SCSI-0 device > da1: 1.000MB/s transfers > da1: 964MB (1974272 512 byte sectors: 64H 32S/T 964C) >=20 >=20 >=20 > Another dmesg, booting with storage device and mouse both connected to ba= ck > USB ports. Mouse works, storage doesn't. >=20 > usbus0: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0xcfef1e30 > (hw power) control head =3D> 0x2329000 > usbus1: 12Mbps Full Speed USB v1.0 > (hw power) control head <=3D 0xcfef1e40 > (hw power) control head =3D> 0x4143000 >=20 > >=20 > (hw power) control head <=3D 0x2329000 > (hw power) control head =3D> 0x2329000 > ugen0.2: at usbus0 > ums0: on > usbus0 ums0: 16 buttons and [XYZ] coordinates ID=3D0 > uhid0: on > usbus0 (hw power) control head <=3D 0x2329000 > (hw power) control head =3D> 0x2329000 > (hw power) control head <=3D 0x2329000 > (hw power) control head =3D> 0x2329000 > (hw power) control head <=3D 0x4143000 > (hw power) control head =3D> 0x4143000 > ugen1.2: at usbus1 > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks =3D 0x0000 > umass0:1:0:-1: Attached to scbus1 > (hw power) control head <=3D 0x4143000 > (hw power) control head =3D> 0x4143000 > >=20 >=20 > If you need anything else, let me know. >=20 > And thanks for the patch. >=20 That slightly reminds, back earlier I had the board in a different case whe= re=20 the fron port showed some other (better but also not useful) weirdness,=20 propably something to do with the pinout chart. I don't remember exactly. Also, it appears that you are using 1MB capable usb flash on front, 40MB/s = at=20 the rear port? That brings me to the idea, do you have legacy usb enabled i= n=20 bios or not? Cause, when I disable, I get other head power values than with= =20 legacy enabled. Legacy disabled: Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x3ed8000 (hw power) control head =3D> 0x3ed8000 usbus1: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x3f28000 (hw power) control head =3D> 0x3f28000 usbus2: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x3f84000 (hw power) control head =3D> 0x3f84000 usbus3: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x3fc3000 (hw power) control head =3D> 0x3fc3000 usbus4: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x2e02000 (hw power) control head =3D> 0x2e02000 Legacy enabled was: Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0xcfef1690 (hw power) control head =3D> 0x3edf000 usbus1: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x3f27000 (hw power) control head =3D> 0x3f27000 usbus2: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x3f6f000 (hw power) control head =3D> 0x3f6f000 usbus3: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x403a000 (hw power) control head =3D> 0x403a000 usbus4: 12Mbps Full Speed USB v1.0 (hw power) control head <=3D 0x4083000 (hw power) control head =3D> 0x4083000 usbus5: 480Mbps High Speed USB v2.0