[PATCH] matroxfb: fix jittery display on non-ppc systems

I wish I was happier about this patch. It'll serve as a placeholder for
the moment. I'm still trying to get a G550 working in order to even
reproduce the problem this patch introduces. I find that the G450 has
jitter even without this patch, so it won't show me what the patch changed.
At this point, I'll continue trying to get the G550 to work, and in
parallel work with the G450 to work out the kinks.

The patch is below.

Set XDVICLKCTRL only on PPC, as doing this apparently introduces jitter on
the G550, at least on x86 architectures.

Signed-off-by: Paul A. Clarke <pc@us.ibm.com>
Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Paul A. Clarke and committed by Linus Torvalds b8cf3689 01cfaf0d

+8
+8
drivers/video/matrox/g450_pll.c
··· 331 tmp |= M1064_XPIXCLKCTRL_PLL_UP; 332 } 333 matroxfb_DAC_out(PMINFO M1064_XPIXCLKCTRL, tmp); 334 matroxfb_DAC_out(PMINFO M1064_XDVICLKCTRL, 0); 335 matroxfb_DAC_out(PMINFO M1064_XPWRCTRL, xpwrctrl); 336 337 matroxfb_DAC_unlock_irqrestore(flags);
··· 331 tmp |= M1064_XPIXCLKCTRL_PLL_UP; 332 } 333 matroxfb_DAC_out(PMINFO M1064_XPIXCLKCTRL, tmp); 334 + #ifdef __powerpc__ 335 + /* This is necessary to avoid jitter on PowerPC 336 + * (OpenFirmware) systems, but apparently 337 + * introduces jitter, at least on a x86-64 338 + * using DVI. 339 + * A simple workaround is disable for non-PPC. 340 + */ 341 matroxfb_DAC_out(PMINFO M1064_XDVICLKCTRL, 0); 342 + #endif /* __powerpc__ */ 343 matroxfb_DAC_out(PMINFO M1064_XPWRCTRL, xpwrctrl); 344 345 matroxfb_DAC_unlock_irqrestore(flags);