linux-mips
[Top] [All Lists]

Re: [PATCH v2] GIO bus support for SGI IP22/28

To: Joshua Kinard <kumba@gentoo.org>
Subject: Re: [PATCH v2] GIO bus support for SGI IP22/28
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: Tue, 1 Nov 2011 11:00:09 +0100
Cc: linux-mips@linux-mips.org, linux-fbdev@vger.kernel.org, ralf@linux-mips.org, FlorianSchandinat@gmx.de
In-reply-to: <4EAE5681.2090103@gentoo.org>
References: <20111020221928.0C2191DA27@solo.franken.de> <4EADB701.9040506@gentoo.org> <20111030223418.GA16346@alpha.franken.de> <4EAE5681.2090103@gentoo.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-06-14)
On Mon, Oct 31, 2011 at 04:04:17AM -0400, Joshua Kinard wrote:
> A.k.a., Tulip (and possibly ThunderLAN) assume little-endian, when we're
> talking big-endian archs here.  Interesting.  Simple fix, as in defining a
> few driver structures with little- and big-endian versions (if they're doing
> something like packing bits or using bitfields)?  Or is it more complex than
> that?

iirc, the PCI bridge on the cards do 32bit swaps (address invariant) so
tulip chips need to run in big endian mode, which in turn makes descriptors
also big endian. But none of the tulip driver supports big endian descriptors.
That's fixable of course.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH v2] GIO bus support for SGI IP22/28, Thomas Bogendoerfer <=