diff options
author | Eric Anholt <eric@anholt.net> | 2008-03-24 13:25:37 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-03-24 13:32:38 -0700 |
commit | 552a1b824db31a234d7c5cb71057ed0e0ce64477 (patch) | |
tree | 88a333358fbfaebb8857e595c390a76f3308186f /src/i830_driver.c | |
parent | c1a2bc357fc122d3718eca771530367ba2915815 (diff) |
Disable a bunch of clock gating disables on IGD_GM, which doesn't need them.
Besides our driver having fallen through to the GM965 path for
RENCLK_GATE_D1, the BIOS was turning some of these on. It may be relevant
for previous platforms as well to zero out the fields that should be zero
in the other registers.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 98f4261c..c2ddf454 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -1887,7 +1887,11 @@ SetHWOperatingState(ScrnInfoPtr pScrn) /* Disable clock gating reported to work incorrectly according to the specs. */ - if (IS_I965GM(pI830)) { + if (IS_IGD_GM(pI830)) { + OUTREG(RENCLK_GATE_D1, 0); + OUTREG(RENCLK_GATE_D2, 0); + OUTREG(DSPCLK_GATE_D, VRHUNIT_CLOCK_GATE_DISABLE); + } else if (IS_I965GM(pI830)) { OUTREG(RENCLK_GATE_D1, I965_RCC_CLOCK_GATE_DISABLE); } else if (IS_I965G(pI830)) { OUTREG(RENCLK_GATE_D1, |