Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2009 01:31:17 +0300
From:      =?utf-8?B?QW5kcml1cyBNb3JrxatuYXM=?= <hinokind@gmail.com>
To:        "Andriy Gapon" <avg@icyb.net.ua>
Cc:        freebsd-current@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: sb600/sb700 ohci experimental patch
Message-ID:  <op.u0r8ufux43o42p@klevas>
In-Reply-To: <4ABA36B1.9070706@icyb.net.ua>
References:  <4ABA36B1.9070706@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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 problems 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 boot 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).

I hope this helps:

Test box: FreeBSD 8.0-RC1 amd64 r197323M on Asus M2A-VM (SB600)

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.

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.


Parts of dmesg with mouse connected to back and storage to front USB ports.
Everything works.

usbus0: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0xcfef1e30
(hw power) control head => 0x2329000
usbus1: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0x4143000
(hw power) control head => 0x4143000
usbus2: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0x4186000
(hw power) control head => 0x4186000
usbus3: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0x41aa000
(hw power) control head => 0x41aa000
usbus4: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0x4201000
(hw power) control head => 0x4201000
usbus5: 480Mbps High Speed USB v2.0

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 <= 0x2329000
(hw power) control head => 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=0
uhid0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/52.00, addr 2> on usbus0
(hw power) control head <= 0x2329000
(hw power) control head => 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 = 0x0000
Root mount waiting for: usbus5
(hw power) control head <= 0x2329000
(hw power) control head => 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)


Connected another device to back USB port after booting was finished:

(hw power) control head <= 0x4143000
(hw power) control head => 0x4143000
ugen1.2: <CUSTT13> at usbus1
umass1: <Mass Storage Interface> on usbus1
umass1:  SCSI over Bulk-Only; quirks = 0x0000
umass1:2:1:-1: Attached to scbus2
(hw power) control head <= 0x4143000
(hw power) control head => 0x4143000
(hw power) control head <= 0x4143000
(hw power) control head => 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)



Another dmesg, booting with storage device and mouse both connected to back
USB ports. Mouse works, storage doesn't.

usbus0: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0xcfef1e30
(hw power) control head => 0x2329000
usbus1: 12Mbps Full Speed USB v1.0
(hw power) control head <= 0xcfef1e40
(hw power) control head => 0x4143000

<everything here is the same as in the dmesg above>

(hw power) control head <= 0x2329000
(hw power) control head => 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=0
uhid0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/52.00, addr 2> on usbus0
(hw power) control head <= 0x2329000
(hw power) control head => 0x2329000
(hw power) control head <= 0x2329000
(hw power) control head => 0x2329000
(hw power) control head <= 0x4143000
(hw power) control head => 0x4143000
ugen1.2: <CUSTT13> at usbus1
umass0: <Mass Storage Interface> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:1:0:-1: Attached to scbus1
(hw power) control head <= 0x4143000
(hw power) control head => 0x4143000
<last two lines repeat 7 more times>


If you need anything else, let me know.

And thanks for the patch.

-- 
Andrius



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