summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2011-09-18 22:28:31 +0200
committerTormod Volden <debian.tormod@gmail.com>2011-09-23 21:00:02 +0200
commitf7516fd3a01241aaeab65cd409091e68b4be234a (patch)
tree72c80adf76e17e5b2af5f0664544dd4a22d449a3
parentca6c41fd8c9fcb563ee5f97689806edcb0da54bf (diff)
savage: Warn if broken drm maps are detected
Linux kernel 2.6.30 - 2.6.39 had broken drm maps which would result in assorted problems. Leave a message in the log if it looks like the framebuffer map and the aperture map are mixed up. https://bugs.freedesktop.org/show_bug.cgi?id=32511 Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--src/savage_dri.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/savage_dri.c b/src/savage_dri.c
index 69563bd..8750925 100644
--- a/src/savage_dri.c
+++ b/src/savage_dri.c
@@ -1070,6 +1070,11 @@ Bool SAVAGEDRIScreenInit( ScreenPtr pScreen )
return FALSE;
}
+ /* Linux kernel DRM broken in 2.6.30 through 2.6.39 */
+ if (pDRIInfo->hFrameBuffer == pSAVAGEDRIServer->aperture.handle)
+ xf86DrvMsg( pScrn->scrnIndex, X_WARNING,
+ "[drm] Detected broken drm maps. Please upgrade to linux kernel 3.x\n");
+
if ( !SAVAGEDRIBuffersInit( pScreen ) ) {
SAVAGEDRICloseScreen( pScreen );
return FALSE;