Mailinglist Archive: radeonhd (621 mails)

< Previous Next >
[radeonhd] Regression with 292a4f4ba057d57d388da1cd5ee7e5f9f53176cc
  • From: Maarten Lankhorst <mlankhorst@xxxxxxxxxxxxx>
  • Date: Wed, 24 Oct 2007 23:35:26 +0200
  • Message-id: <471FBA9E.70302@xxxxxxxxxxxxx>
If you switch from radeonhd to a console or to fglrx xorg, the pallettes
are all messed up and weird. Writing 0 instead of anything else fixes
it, however this is a hack that WorksForMe. Hopefully this helps in
finding a proper solution.

Cheers,
Maarten.
diff --git a/src/rhd_pll.c b/src/rhd_pll.c
index 8ff733f..a987d6a 100644
--- a/src/rhd_pll.c
+++ b/src/rhd_pll.c
@@ -432,7 +432,7 @@ PLL1Restore(struct rhdPLL *PLL)
}

if (PLL->StoreActive) {
- RHDRegWrite(PLL, P1PLL_INT_SS_CNTL, PLL->StoreSpreadSpectrum);
+ RHDRegWrite(PLL, P1PLL_INT_SS_CNTL, 0);

PLL1SetLow(PLL, PLL->StoreRefDiv, PLL->StoreFBDiv,
PLL->StorePostDiv, PLL->StoreControl);
@@ -444,7 +444,7 @@ PLL1Restore(struct rhdPLL *PLL)
RHDRegWrite(PLL, EXT1_PPLL_FB_DIV, PLL->StoreFBDiv);
RHDRegWrite(PLL, EXT1_PPLL_POST_DIV, PLL->StorePostDiv);
RHDRegWrite(PLL, EXT1_PPLL_CNTL, PLL->StoreControl);
- RHDRegWrite(PLL, P1PLL_INT_SS_CNTL, PLL->StoreSpreadSpectrum);
+ RHDRegWrite(PLL, P1PLL_INT_SS_CNTL, 0);
}
}

@@ -463,7 +463,7 @@ PLL2Restore(struct rhdPLL *PLL)
}

if (PLL->StoreActive) {
- RHDRegWrite(PLL, P2PLL_INT_SS_CNTL, PLL->StoreSpreadSpectrum);
+ RHDRegWrite(PLL, P2PLL_INT_SS_CNTL, 0);

PLL2SetLow(PLL, PLL->StoreRefDiv, PLL->StoreFBDiv,
PLL->StorePostDiv, PLL->StoreControl);
@@ -475,7 +475,7 @@ PLL2Restore(struct rhdPLL *PLL)
RHDRegWrite(PLL, EXT2_PPLL_FB_DIV, PLL->StoreFBDiv);
RHDRegWrite(PLL, EXT2_PPLL_POST_DIV, PLL->StorePostDiv);
RHDRegWrite(PLL, EXT2_PPLL_CNTL, PLL->StoreControl);
- RHDRegWrite(PLL, P2PLL_INT_SS_CNTL, PLL->StoreSpreadSpectrum);
+ RHDRegWrite(PLL, P2PLL_INT_SS_CNTL, 0);
}
}

< Previous Next >