Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2009 08:22:28 +0200
From:      Dorian =?utf-8?q?B=C3=BCttner?= <dorian.buettner@gmx.de>
To:        freebsd-usb@freebsd.org
Cc:        freebsd-current@freebsd.org, Andriy Gapon <avg@icyb.net.ua>, Andrius =?utf-8?q?Mork=C5=ABnas?= <hinokind@gmail.com>
Subject:   Re: sb600/sb700 ohci experimental patch
Message-ID:  <200909240822.28180.dorian.buettner@gmx.de>
In-Reply-To: <op.u0r8ufux43o42p@klevas>
References:  <4ABA36B1.9070706@icyb.net.ua> <op.u0r8ufux43o42p@klevas>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 25 September 2009 00:31:17 Andrius Mork=C5=ABnas wrote:
> On Wed, 23 Sep 2009 17:54:41 +0300, Andriy Gapon <avg@icyb.net.ua> 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: <ATI> at usbus0
> uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
> ugen1.1: <ATI> at usbus1
> uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
> ugen2.1: <ATI> at usbus2
> uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
> ugen3.1: <ATI> at usbus3
> uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
> ugen4.1: <ATI> at usbus4
> uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
> ugen5.1: <ATI> at usbus5
> uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> 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: <Logitech> at usbus0
> ums0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/52.00, addr 2> on
>  usbus0 ums0: 16 buttons and [XYZ] coordinates ID=3D0
> uhid0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/52.00, addr 2> on
>  usbus0 (hw power) control head <=3D 0x2329000
> (hw power) control head =3D> 0x2329000
> ugen5.2: <PQI> at usbus5
> umass0: <PQI PQI USB Flash Drive, class 0/0, rev 2.00/1.00, addr 2> 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: <Generic USB Flash Disk 0.00> 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: <CUSTT13> at usbus1
> umass1: <Mass Storage Interface> 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: <Agere MMCSD Storage 2.01> 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
> <everything here is the same as in the dmesg above>
>=20
> (hw power) control head <=3D 0x2329000
> (hw power) control head =3D> 0x2329000
> ugen0.2: <Logitech> at usbus0
> ums0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/52.00, addr 2> on
>  usbus0 ums0: 16 buttons and [XYZ] coordinates ID=3D0
> uhid0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/52.00, addr 2> 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: <CUSTT13> at usbus1
> umass0: <Mass Storage Interface> 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
> <last two lines repeat 7 more times>
>=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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909240822.28180.dorian.buettner>