Radeon 7000 problems with kernels after 2.6.3

From: Jurriaan
Date: Fri Mar 26 2004 - 06:49:16 EST

On recent kernel (2.6.4 and later) my Radeon 7000 doesn't display
anything. My Eizo monitor warns me of really incompatible frequencies
(fV 217.2 Hz, fH 271.5 kHz). fbset returns normal values, by the way.

I've found out that this chunk in patch-2.6.4, applying to
drivers/video/aty/radeon_base.c, causes my problems:

@@ -1329,6 +1320,16 @@
* not sure which model starts having FP2_GEN_CNTL, I assume anything more
* recent than an r(v)100...
+#if 0
+ /* XXX I had reports of flicker happening with the cinema display
+ * on TMDS1 that seem to be fixed if I also forbit odd dividers in
+ * this case. This could just be a bandwidth calculation issue, I
+ * haven't implemented the bandwidth code yet, but in the meantime,
+ * forcing uses_dvo to 1 fixes it and shouln't have bad side effects,
+ * I haven't seen a case were were absolutely needed an odd PLL
+ * divider. I'll find a better fix once I have more infos on the
+ * real cause of the problem.
+ */
while (rinfo->has_CRTC2) {
u32 fp2_gen_cntl = INREG(FP2_GEN_CNTL);
u32 disp_output_cntl;
@@ -1362,6 +1363,9 @@
uses_dvo = 1;
+ uses_dvo = 1;
if (freq > rinfo->pll.ppll_max)
freq = rinfo->pll.ppll_max;
if (freq*12 < rinfo->pll.ppll_min)

If I change that #if 0 to #if 1, I get a normal image. This is with the
following video-card:

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R100 QD [Radeon 7200] (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc Radeon 7000/Radeon
Flags: bus master, stepping, 66Mhz, medium devsel, latency 64, IRQ 16
Memory at d8000000 (32-bit, prefetchable) [size=128M]
I/O ports at a000 [size=256]
Memory at e5000000 (32-bit, non-prefetchable) [size=512K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Capabilities: [50] Power Management version 2

I've seen other messages about problems with radeonfb. Can other people
confirm this problem, and confirm that removing this chunk fixes the

Kind regards,
Don't like these taglines? Steal your own...
Debian (Unstable) GNU/Linux 2.6.5-rc2-mm3 3940 bogomips 0.18 0.28
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/