commit 8c856f3735586d59bb53f57ce4d5252cad6ece37 Author: Jay Cotton Date: Thu Mar 1 19:06:52 2007 +0200 [mach64] Bug 6829: enable PCI bus after S3 suspend (for Sun). diff --git a/src/aticonsole.c b/src/aticonsole.c index 7117c69..9ecbf11 100644 --- a/src/aticonsole.c +++ b/src/aticonsole.c @@ -514,6 +514,19 @@ ATIEnterGraphics ATIPtr pATI ) { + if (pATI->CPIODecoding == BLOCK_IO) + { + pciVideoPtr pVideo = pATI->PCIInfo; + pciConfigPtr pPCI = pVideo->thisCard; + CARD32 PciReg; + + PciReg = pciReadLong(pPCI->tag, PCI_REG_USERCONFIG); + + /* Possibly fix block I/O indicator (after Sun S3 suspend) */ + if (!(PciReg & 0x00000004U)) + pciWriteLong(pPCI->tag, PCI_REG_USERCONFIG, PciReg | 0x00000004U); + } + /* Map apertures */ if (!ATIMapApertures(pScreenInfo->scrnIndex, pATI)) return FALSE;