Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-sparc
Navigation:
Lists: gentoo-sparc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Gentoo Sparc <gentoo-sparc@g.o>
From: Ferris McCormick <fmccor@g.o>
Subject: [Fwd: [Bug 3914] ATI Mach64 locks up sparc post 6.8.99.3]
Date: Thu, 24 Aug 2006 18:49:44 +0000
Is anyone in a position to verify this?  It's basically a proposed
one-line fix for the sparc/mach64 lockup problem with xorg-x11-7.1, and
if it works, it's better than remove-altix.

The actual proposed patch looks like
========================
--- hw/xfree86/os-support/bus/linuxPci.c-       2006-08-24
18:32:52.000000000 +0000
+++ hw/xfree86/os-support/bus/linuxPci.c        2006-08-24
18:37:10.000000000 +0000
@@ -84,7 +84,11 @@
 /* pciAddrBusToHost */ linuxPpcBusAddrToHostAddr,
 #else
 /* pciAddrHostToBus */ pciAddrNOOP,
+#ifdef __ia64__
 /* pciAddrBusToHost */ linuxTransAddrBusToHost,
+#else
+/* pciAddrBusToHost */ pciAddrNOOP,
+#endif
 #endif
 
 /* pciControlBridge */         NULL,
===========================
I have attached it as jparnes.patch, as well.  I have verified that the
patch installs, and that linuxPci.c compiles with it applied, but I do
not have a mach64 system on which to test it.


-------- Forwarded Message --------
From: bugzilla-daemon@...
To: fmccor@g.o
Subject: [Bug 3914] ATI Mach64 locks up sparc post 6.8.99.3
Date: Wed, 23 Aug 2006 09:20:20 -0700 (PDT)

Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=3914          
     




------- Additional Comments From jbarnes@...  2006-08-23 09:20 -------
The snippet below (from the revert patch) removes the new 
linuxTransAddrBusToHost routine from the PCI mapping function table.  This 
routine is *supposed* to be generic, but it may well be broken on some sparc64 
configurations.  Can you try building a tree without the revert patch but with 
that line protected #if defined(__ia64__) ... #endif instead of removed 
entirely?  That would tell us for sure if the xf86GetOSOffsetFromPCI routine 
was the culprit (it probably is, it has quite a few shortcomings).

If that works, simply protecting that line with an #ifdef __ia64__ might be a 
good short term fix...

Thanks,
Jesse

--- a/hw/xfree86/os-support/bus/linuxPci.c
+++ b/hw/xfree86/os-support/bus/linuxPci.c
@@ -63,7 +63,6 @@ #include "Pci.h"
 static CARD32 linuxPciCfgRead(PCITAG tag, int off);
 static void linuxPciCfgWrite(PCITAG, int off, CARD32 val);
 static void linuxPciCfgSetBits(PCITAG tag, int off, CARD32 mask, CARD32 bits);
-static ADDRESS linuxTransAddrBusToHost(PCITAG tag, PciAddrType type, ADDRESS 
addr);
 #if defined(__powerpc__)
 static ADDRESS linuxPpcBusAddrToHostAddr(PCITAG, PciAddrType, ADDRESS);
 static ADDRESS linuxPpcHostAddrToBusAddr(PCITAG, PciAddrType, ADDRESS);
@@ -84,7 +83,7 @@ #if defined(__powerpc__)
 /* pciAddrBusToHost */	linuxPpcBusAddrToHostAddr,
 #else
 /* pciAddrHostToBus */	pciAddrNOOP,
-/* pciAddrBusToHost */	linuxTransAddrBusToHost,
+/* pciAddrBusToHost */	pciAddrNOOP,
 #endif
 
 /* pciControlBridge */		NULL,          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

=================================================

Thanks,
Ferris
-- 
Ferris McCormick (P44646, MI) <fmccor@g.o>
Developer, Gentoo Linux (Devrel, Sparc)

Attachment:
jbarnes.patch (Text Data)
Attachment:
signature.asc (This is a digitally signed message part)
Navigation:
Lists: gentoo-sparc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[Fwd: Re: xorg-x11-7.1 (X-modular) is stable on sparc and in sync with x86.]
Next by thread:
RE: [Fwd: [Bug 3914] ATI Mach64 locks up sparc pos t 6.8.99.3]
Previous by date:
[Fwd: Re: xorg-x11-7.1 (X-modular) is stable on sparc and in sync with x86.]
Next by date:
Re: Help with Gentoo on E4500


Updated Jun 17, 2009

Summary: Archive of the gentoo-sparc mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.