From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by ozlabs.org (Postfix) with ESMTP id 59D9BDDDFB for ; Thu, 28 Feb 2008 14:33:57 +1100 (EST) From: Jarod Wilson To: linux1394-devel@lists.sourceforge.net Subject: Re: [PATCH 1/2] firewire: endianess fix Date: Wed, 27 Feb 2008 22:33:47 -0500 References: <20080220220326.GA22328@uranus.ravnborg.org> <200802271458.28401.jwilson@redhat.com> In-Reply-To: <200802271458.28401.jwilson@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200802272233.48039.jwilson@redhat.com> Cc: Kristian Hoegsberg , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Stefan Richter , sparclinux@vger.kernel.org, Sam Ravnborg , Harvey Harrison List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wednesday 27 February 2008 02:58:28 pm Jarod Wilson wrote: > On Saturday 23 February 2008 06:24:17 am Stefan Richter wrote: > > The generation of incoming requests was filled in in wrong byte order on > > machines with big endian CPU. > > > > Signed-off-by: Stefan Richter > > Cc: sparclinux@vger.kernel.org > > Cc: linuxppc-dev@ozlabs.org > > --- > > > > This patch is a shot in the dark, based on a warning when building with > > C=1 CHECKFLAGS="-D__CHECK_ENDIAN__". Is it really a fix, or was the > > previous code accidentally correct? > > > > This needs to be tested on different big endian PCs, if possible with > > the Apple Uninorth FireWire controller and other types of controllers. > > One test which involves ohci->request_generation is simply with an SBP-2 > > device (harddisk, CD-ROM...). Does SBP-2 login etc. work? > > Works just fine with the Apple UniNorth controller in my powerbook in > cursory testing. Tested with multiple sbp2 hard disks, plugging and > unplugging, mounting and unmounting, etc. > > > If possible, also test whether the device remains accessible after > > forcing a bus reset, e.g. by "echo br short > firecontrol". You need > > the easy to build utility firecontrol and a libraw1394 with "juju" > > backend. See wiki.linux1394.org for directions. > > Forgot to check that it survived bus resets. Will try to double-check that > tonight. Survives bus resets just fine, including with ongoing I/O from an sbp2 disk. -- Jarod Wilson jwilson@redhat.com