http://bugs.freedesktop.org/show_bug.cgi?id=12443





------- Comment #5 from [EMAIL PROTECTED]  2007-09-16 13:33 PST -------
added a fail-safe patch, at least can keep the Xlog and reboot sanely:

--- src/driver/xf86-video-ati-6.7.192/src/radeon_accel.c.orig   2007-08-07
05:15:31.000000000 +0100
+++ src/driver/xf86-video-ati-6.7.192/src/radeon_accel.c        2007-09-16
21:20:52.000000000 +0100
@@ -75,6 +75,7 @@

 #include <errno.h>
 #include <string.h>
+#include <stdlib.h>
                                /* Driver data structures */
 #include "radeon.h"
 #include "radeon_reg.h"
@@ -493,6 +494,7 @@
     int            size = 0;
     int            i = 0;
     int            ret;
+    int            rst_count = 0;

 #if 0
     /* FIXME: pScrn->pScreen has not been initialized when this is first
@@ -536,6 +538,11 @@
            return buf;
        }

+       if (rst_count++ > 5) {
+               xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+                          "Too many resets, aborting...\n");
+               abort();
+       }
        xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                   "GetBuffer timed out, resetting engine...\n");
        RADEONEngineReset(pScrn);


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
xorg-driver-ati mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-ati

Reply via email to