Bug #17446: Don't try to manage IRQs in GEM mode.

The kernel told us that it was already doing so, resulting in failure.
This commit is contained in:
Eric Anholt 2008-09-09 19:17:05 -07:00
parent da63b5adec
commit 0f804bfa1e
1 changed files with 2 additions and 2 deletions

View File

@ -3702,8 +3702,8 @@ I830EnterVT(int scrnIndex, int flags)
/* HW status is fixed, we need to set it up before any drm
* operation which accessing that page, like irq install, etc.
*/
if (pI830->starting) {
if (pI830->hw_status != NULL && !I830DRISetHWS(pScrn)) {
if (pI830->starting && !pI830->memory_manager) {
if (!I830DRISetHWS(pScrn)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Fail to setup hardware status page.\n");
I830DRICloseScreen(pScrn->pScreen);