summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-03-28 11:09:56 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-03-28 11:53:13 -0400
commit834bdfc2503f64d8f3bff088dc5eaf8f52f828f5 (patch)
tree149fed9d49252a37789d9eb0f76715283bcc68d8 /src
parent630390dc5b892941ed6609ca5c35b90be53333f7 (diff)
Disable MTRR support for PCIE G200SE cards, as it tickles hardware bugs.
Diffstat (limited to 'src')
-rw-r--r--src/mga_driver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 9bb3ecf..3d172de 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1477,6 +1477,14 @@ MGAPreInit(ScrnInfoPtr pScrn, int flags)
memcpy(pMga->Options, MGAOptions, sizeof(MGAOptions));
xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pMga->Options);
+ if (pMga->is_G200SE) {
+ /* Disable MTRR support on PCIe systems */
+ CARD32 temp = pciReadLong(pMga->PciTag, 0xDC);
+ if ((temp & 0x0000FF00) != 0x0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Disabling MTRR support.\n");
+ pScrn->options = xf86ReplaceBoolOption(pScrn->options, "MTRR", FALSE);
+ }
+ }
#if !defined(__powerpc__)
pMga->softbooted = FALSE;