Dave,

I found why my G5 was crashing when using the linux-2.6 version of the
DRM + git-drm.patch from 2.6.13-rc6-mm1, but not with the CVS DRM.
The reason was that dev->agp->cant_use_aperture wasn't getting set,
and the reason for that was that <linux/version.h> no longer gets
included and the #if LINUX_VERSION_CODE < 0x020408 in drm_agpsupport.c
was going the wrong way.  With this patch (and a few others) a 32-bit
server works correctly, as does DRI.

I still don't have a 64-bit X server working though.  The X server
gets a certain distance and then the CPU that it is running on just
freezes solid - it doesn't even respond to a soft reset.  This isn't a
DRI problem, though, since it happens without the DRM loaded.

Regards,
Paul.

diff -urN linux-2.6/drivers/char/drm/drm_agpsupport.c 
g5-ppc64/drivers/char/drm/drm_agpsupport.c
--- linux-2.6/drivers/char/drm/drm_agpsupport.c 2005-08-23 11:37:50.000000000 
+1000
+++ g5-ppc64/drivers/char/drm/drm_agpsupport.c  2005-08-23 09:49:24.000000000 
+1000
@@ -426,13 +426,8 @@
                return NULL;
        }
        head->memory = NULL;
-#if LINUX_VERSION_CODE <= 0x020408
-       head->cant_use_aperture = 0;
-       head->page_mask = ~(0xfff);
-#else
        head->cant_use_aperture = head->agp_info.cant_use_aperture;
        head->page_mask = head->agp_info.page_mask;
-#endif
 
        return head;
 }


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to