i915: put ARX back into index mode before doing restore

Fixes resume from hibernate in some configurations.
main
Jesse Barnes 2008-02-22 13:57:38 -08:00
parent 0d32015974
commit 20d0e53916
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ static void i915_restore_vga(struct drm_device *dev)
dev_priv->saveGR[0x18]);
/* Attribute controller registers */
inb(st01); /* switch back to index mode */
for (i = 0; i < 20; i++)
i915_write_ar(st01, i, dev_priv->saveAR[i], 0);
inb(st01); /* switch back to index mode */