Re: Patch: Make iBook1 work again

From: Benjamin Herrenschmidt
Date: Wed Sep 17 2003 - 16:16:18 EST



> The first thing to do is to check is if the clock programming code is the
> problem. Try to modprobe with "default_mclk=-1 default_xclk=-1" or use
> equivalent kernel command line options.

Trying video=atyfb:mclk:-1,xclk:-1, same result

Note that the xclk and mclk actually used by MacOS are 67.12Mhz, this
may be different from the values setup by the firmware, on those old
machines, the firmware uses 'approximative' values at best while the
MacOS driver has the optimal ones. (Those machines had MacOS partially
in ROM and never really went to the firmware for display except if
you use linux ;)


> If clock programming code should be blamed, the next step is to enable the
> debug define and check which clock registers are modified. You can
> try to revert my changes at mach64_ct.c line 375 and 433 to see if that
> changes something.

Reverting these didn't help neither

> If X corrects the display after starting, the problem might be due to the
> mode setting code. In that case the display should corrupt again when
> switching back to the console.

It does indeed.

Here's the debug output:

atyfb: using auxiliary register aperture
atyfb: 3D RAGE LT-G [0x4c47 rev 0x80] 4M SGRAM, 14.31818 MHz XTAL, 230 MHz PLL, 63 Mhz MCLK, 63 Mhz XCLK
BUS_CNTL DAC_CNTL MEM_CNTL EXT_MEM_CNTL CRTC_GEN_CNTL DSP_CONFIG DSP_ON_OFF CLOCK_CNTL
7b23a040 87010182 003210b7 25000001 03000200 003807c0 00b00510 001a0a03
PLL cd d5 1a 14 72 03 40 fd 8e 9e 76 01 a6 00 00 00 06 a8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 cd d5 1a 14 72 03 40 fd
BUS_CNTL DAC_CNTL MEM_CNTL EXT_MEM_CNTL CRTC_GEN_CNTL DSP_CONFIG DSP_ON_OFF
7b23a040 87010182 003210b7 25000001 03000200 003807c0 00b00510
PLL cd d5 1f 14 88 03 40 fd 8e 9e 76 01 a6 1b 00 00 06 a8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 cd d5 1f 14 88 03 40 fd
atyfb: monitor sense=51e, mode 7
Console: switching to colour frame buffer device 128x48
fb0: ATY Mach64 frame buffer device on PCI


-
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/