From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?C=E9dric_Cano?= Subject: Re: R600 definition error for interrupt handler swap Date: Thu, 02 Feb 2012 09:42:50 +0100 Message-ID: <4F2A4C8A.3070504@interfaceconcept.com> References: <4F290705.4080506@ic.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from smtp08.msg.oleane.net (smtp08.msg.oleane.net [62.161.4.8]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DC3CA02E4 for ; Thu, 2 Feb 2012 00:42:54 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alex Deucher Cc: icthj , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Alex, We don't have the documentation that contains this register definition. We try to use the Linux 3.0.0 on our PowerPC board and M96 GPU (RV730): = it doesn't work as is. We need to revert this definition like it was = before 2.6.39.4 = (http://lists.freedesktop.org/archives/dri-devel/2011-July/012811.html). Are you sure the documentation is correct? Cedric Le 01/02/2012 20:46, Alex Deucher a =E9crit : > On Wed, Feb 1, 2012 at 4:33 AM, C=E9dric Cano= wrote: >> Hello, >> >> We're trying to use R600 DRM driver with big endian architecture. We find >> the following error in R600 definition of interrupt handler swap. >> >> Perhaps there's the same error in the evergreen definitions header file. > The definition in the register header is correct according to the > register spec. It's bits 2:1 on both r6xx and evergreen. > > 0 =3D no swap > 1 =3D 16 bit swap (0xaabb becomes 0xbbaa) > 2 =3D 32 bit swap (0xaabbccdd becomes 0xddccbbaa) > 3 =3D 64 bit swap (0xaabbccddeeff0011 becomes 0x1100ffeeddccbbaa)) > > Alex > >> Cedric >> >> Signed-off-by: C=E9dric Cano >> Signed-off-by: Thomas Jourdan >> --- >> diff -Naur linux-3.2.2/drivers/gpu/drm/radeon/r600d.h >> linux-3.2.2/drivers/gpu/drm/radeon/r600d.h >> --- linux-3.2.2/drivers/gpu/drm/radeon/r600d.h 2012-01-26 >> 01:39:32.000000000 +0100 >> +++ linux-3.2.2/drivers/gpu/drm/radeon/r600d.h 2012-02-01 >> 10:25:04.000000000 +0100 >> @@ -552,7 +552,7 @@ >> #define IH_RB_WPTR_ADDR_LO 0x3e14 >> #define IH_CNTL 0x3e18 >> # define ENABLE_INTR (1<< 0) >> -# define IH_MC_SWAP(x) ((x)<< 1) >> +# define IH_MC_SWAP(x) ((x)<< 2) >> # define IH_MC_SWAP_NONE 0 >> # define IH_MC_SWAP_16BIT 1 >> # define IH_MC_SWAP_32BIT 2 >> -- >> >> >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/dri-devel