From owner-freebsd-sparc64@FreeBSD.ORG Wed Apr 4 12:40:04 2012 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86937106566B for ; Wed, 4 Apr 2012 12:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5FAC38FC18 for ; Wed, 4 Apr 2012 12:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q34Ce3GG070242 for ; Wed, 4 Apr 2012 12:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q34Ce3BG070241; Wed, 4 Apr 2012 12:40:03 GMT (envelope-from gnats) Date: Wed, 4 Apr 2012 12:40:03 GMT Message-Id: <201204041240.q34Ce3BG070241@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Manuel Tobias Schiller Cc: Subject: Re: sparc64/141918: [ehci] ehci_interrupt: unrecoverable error, controller halted (sparc64) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Manuel Tobias Schiller List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2012 12:40:04 -0000 The following reply was made to PR sparc64/141918; it has been noted by GNATS. From: Manuel Tobias Schiller To: Marius Strobl Cc: bug-followup@FreeBSD.org Subject: Re: sparc64/141918: [ehci] ehci_interrupt: unrecoverable error, controller halted (sparc64) Date: Wed, 4 Apr 2012 14:38:25 +0200 --Sig_/XcvQd6ZGZTkVfcTQkvdtpVl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 3 Apr 2012 23:19:52 +0200 Marius Strobl wrote: > On Mon, Apr 02, 2012 at 01:00:56AM +0200, Manuel Tobias Schiller wrote: > > On Sun, 1 Apr 2012 12:41:24 +0200 > > Marius Strobl wrote: > >=20 > > > Well, the individual patches shouldn't make things worse except for > > > the second one causing more memory to be used so I'd suggest to > > > combine them. If in the end things actually work we still can check > > > what changes are needed for that. > > > Looking at the Linux USB code, the FreeBSD one doesn't some to honor > > > some DMA constraints and at least for the alignment it's actually > > > hard to follow what value eventually is used. One thing that stands > > > out is that for EHCI, the boundary is 4096. This is most easily > > > fixed by defining USB_PAGE_SIZE to 4096 in sys/dev/usb/usb_busdma.h. > > >=20 > > > Marius > >=20 > > Ok, the second patch on its own doesn't appear to work either, so I'm > > trying the combination of patches now. By the way: defining > > USB_PAGE_SIZE to 4096 in sys/dev/usb/usb_busdma.h is a bad idea - the > > kernel panics with a backtrace pointing into the mmu-related code. > > Probably has to do with sparc64 mmu only supporting 8k pages, so I'm > > not terribly surprised... >=20 > Okay, could you please give the following patch a try? > http://people.freebsd.org/~marius/usb_busdma.diff >=20 > Marius Okay, I tried both my idea (which naturally did not work ;) and your patch (without my patch, so I don't screw up the results). Unfortunately, your patch does not seem to work either. From what I can tell from here at work, the machine is stuck in a reboot loop (I guess after trying to access the USB disks), but I'd like to be sure and watch the disk's LEDs for a bit when I get home tonight (to make sure that the reboot loop is really related to USB disk access). Manuel --=20 Homepage: http://www.hinterbergen.de/mala OpenPGP: 0xA330353E (DSA) or 0xD87D188C (RSA) --Sig_/XcvQd6ZGZTkVfcTQkvdtpVl Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQGcBAEBAgAGBQJPfEDBAAoJEEPbVOqHHK4gOfgL/3AvlvRfF/zVo4mg5LEa3Bl5 DoEaam/vElALUkBEWDcxaxxzjo42HaCSWYuUtDuCN1Z9vzU7lbZ3L157F/1Y1gI9 uWnWrINOauPGgwQ3dRam3ts59xGBp9IS44X5Md/2kZW5oa3qcctZ5FZy5/9zZLmd A3U4mPYiH2RXyhO3+qMGu2ZEXbSSxpiqskazQBHOYrQO1UJGuYqfqQYGuBRH3epW 8N3+/ssZTZQwqSGEzjtP8bk2JbKRAZCJ5xnQstrLPFl/ECzZ0byGRwPsZKtvqBTc bypA6vo5faiGt2S+n+ED1MBzaP2Nt9r5cQ4LH492Ch1Sl+7FLSC8xn0KCWB1DMJc ck6zigHfmcTDag5PjAyWYkt497pYOGy3TWl0C+xYrn0KtP/A83cv6LPGXEjh3M0F Nz9ELhhAXrkQh/sJRv2gubevAH+mNLipc7efExpFPwcGXTwmM/Np9vCnJb0Rh8dB C6A2V7IHHHyhiPTSsu+/wAI9gWZPnU19ubWsJcdetA== =lTLR -----END PGP SIGNATURE----- --Sig_/XcvQd6ZGZTkVfcTQkvdtpVl--