From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O2ohH-0004uR-QI for mharc-grub-devel@gnu.org; Fri, 16 Apr 2010 12:47:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2ohF-0004rb-1W for grub-devel@gnu.org; Fri, 16 Apr 2010 12:47:13 -0400 Received: from [140.186.70.92] (port=41029 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2ohC-0003ma-K6 for grub-devel@gnu.org; Fri, 16 Apr 2010 12:47:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2oa5-00071E-84 for grub-devel@gnu.org; Fri, 16 Apr 2010 12:39:50 -0400 Received: from mail-bw0-f225.google.com ([209.85.218.225]:63600) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2oa4-00070a-LO for grub-devel@gnu.org; Fri, 16 Apr 2010 12:39:49 -0400 Received: by bwz25 with SMTP id 25so2902199bwz.8 for ; Fri, 16 Apr 2010 09:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=SPvYfBrZhkl9uRx5Y/RoZISrtodF16lHXQGVl7o7c/s=; b=OIqbu4qtMCAt8dnSLkOZv+qk+Uvn18rf90womO0J3zwcgwcqRNIlIew9M8zXGAZsXr 72/PJDJTil7lPS08X1wElfA6hqbBhEqDj/CJTPXFGoblchzcEGxV9wRmVe8fxFIa2uzV 5j/YVimaCPL2+57JmXyoIxOACcoCjkLrSc0w4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=iQp9kN4EYU+WxfIs79y7n8AKA4S3iQ6MtzUCyTPcqR06xVYLIyBK74BbpYbSMHKIrX iMKwnv5U6ngEYJai00WuzZHEXZP2ujYUSJpybOUrEoaj/+PIV2eno6OaM0wcOL273FoP w0FENgwIEH1ETNId6F2n0/9XJYoXmio1+x9ZM= Received: by 10.204.6.203 with SMTP id a11mr2005112bka.8.1271435987060; Fri, 16 Apr 2010 09:39:47 -0700 (PDT) Received: from debian.bg45.phnet (gprs59.swisscom-mobile.ch [193.247.250.59]) by mx.google.com with ESMTPS id 15sm1960702bwz.4.2010.04.16.09.39.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 Apr 2010 09:39:44 -0700 (PDT) Message-ID: <4BC892C3.3090507@gmail.com> Date: Fri, 16 Apr 2010 18:39:31 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <1268605383.2839.26.camel@homenes1> <4BB657BB.60801@gmail.com> <1270669741.2732.129.camel@homenes1> <4BBCED68.3080900@gmail.com> <1270762038.2730.37.camel@homenes1> In-Reply-To: <1270762038.2730.37.camel@homenes1> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigD054BDC8E3BA912D7CEEC865" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [Patch] [bug #26237] multiple problems with usb devices X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 16:47:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD054BDC8E3BA912D7CEEC865 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ale=C5=A1 Nesrsta wrote: > I will test the usb.diff soon and than I try to more study EHCI > specification. On my PC is OHCI detected properly but I have very old > machine Toshiba Satellite 2140CDS (i586 at 450MHz) with one OHCI only > interface. I.e. it looks like problem appears only on combined OHCI-EHC= I > interfaces. I have also plan to debug GRUB2 USB support on other, newer= > machine with OHCI-EHCI interfaces. > I will inform You there if I will discover something interesting... > > =20 I discovered something. It looks like on Yeeloong the problem is caused by the skipped step of initialising of timings and power management. Quick and dirty fix: =3D=3D=3D modified file 'bus/usb/ohci.c' --- bus/usb/ohci.c 2010-01-20 19:40:30 +0000 +++ bus/usb/ohci.c 2010-04-16 16:32:38 +0000 @@ -91,10 +93,15 @@ GRUB_OHCI_REG_BULKCURR, GRUB_OHCI_REG_DONEHEAD, GRUB_OHCI_REG_FRAME_INTERVAL, + GRUB_OHCI_REG_PERIODIC_START =3D 16, GRUB_OHCI_REG_RHUBA =3D 18, GRUB_OHCI_REG_RHUBPORT =3D 21 } grub_ohci_reg_t; =20 +#define GRUB_OHCI_RHUB_PORT_POWER_MASK 0x300 +#define GRUB_OHCI_RHUB_PORT_ALL_POWERED 0x200 + + static grub_uint32_t grub_ohci_readreg32 (struct grub_ohci *o, grub_ohci_reg_t reg) { @@ -166,6 +215,11 @@ if ((revision & 0xFF) !=3D 0x10) goto fail; =20 + grub_ohci_writereg32 (o, GRUB_OHCI_REG_RHUBA, + (grub_ohci_readreg32 (o, GRUB_OHCI_REG_RHUBA) + & ~GRUB_OHCI_RHUB_PORT_POWER_MASK) + | GRUB_OHCI_RHUB_PORT_ALL_POWERED); + /* Backup the frame interval register. */ frame_interval =3D grub_ohci_readreg32 (o, GRUB_OHCI_REG_FRAME_INTERVA= L); @@ -175,10 +229,14 @@ grub_dprintf ("ohci", "OHCI reset\n"); =20 /* Restore the frame interval register. */ + /* FIXME: is this choice of timings sane? */ + frame_interval =3D (frame_interval & 0xffff) | 0x27780000; grub_ohci_writereg32 (o, GRUB_OHCI_REG_FRAME_INTERVAL, frame_interval)= ; =20 + grub_ohci_writereg32 (o, GRUB_OHCI_REG_PERIODIC_START, 0x257f); + /* Setup the HCCA. */ - grub_ohci_writereg32 (o, GRUB_OHCI_REG_HCCA, (grub_uint32_t) o->hcca);= + grub_ohci_writereg32 (o, GRUB_OHCI_REG_HCCA, (grub_uint32_t) o->hcca);= grub_dprintf ("ohci", "OHCI HCCA\n"); =20 /* Enable the OHCI. */ =20 > Best regards > Ales > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigD054BDC8E3BA912D7CEEC865 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAkvIkssACgkQNak7dOguQgk9LQD+Jt7aqRpxmov1tiEiTNjFu0fl FJ1dAdU67QXHJWRgLJABAKIxY+EcTaZRuQckKzLYsrkAxv5kjM8AWl96jHbKnHai =vn2f -----END PGP SIGNATURE----- --------------enigD054BDC8E3BA912D7CEEC865--