public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Daniël Mantione" <daniel@deadlock.et.tudelft.nl>
Cc: linux-kernel mailing list <linux-kernel@vger.kernel.org>,
	Marcelo Tosatti <marcelo.tosatti@cyclades.com.br>
Subject: Re: Patch: Make iBook1 work again
Date: Wed, 17 Sep 2003 23:12:00 +0200	[thread overview]
Message-ID: <1063833118.600.210.camel@gaston> (raw)
In-Reply-To: <Pine.LNX.4.44.0309172218210.25790-100000@deadlock.et.tudelft.nl>


> 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



  reply	other threads:[~2003-09-17 21:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.44.0309162303490.32610-100000@deadlock.et.tudelft.nl>
2003-09-17 20:07 ` Patch: Make iBook1 work again Benjamin Herrenschmidt
2003-09-17 20:42   ` Daniël Mantione
2003-09-17 21:12     ` Benjamin Herrenschmidt [this message]
2003-09-17 21:10   ` Daniël Mantione
2003-09-17 21:23     ` Benjamin Herrenschmidt
2003-09-17 21:49       ` Daniël Mantione
2003-09-18  8:00         ` Daniël Mantione
2003-09-18  9:03           ` Benjamin Herrenschmidt
2003-09-18 20:23           ` Benjamin Herrenschmidt
2003-09-18 22:06             ` Daniël Mantione
2003-09-19  6:57               ` Benjamin Herrenschmidt
2003-09-19  7:09                 ` Daniël Mantione
2003-09-19  7:40                   ` Benjamin Herrenschmidt
2003-09-19  8:29                     ` Daniël Mantione
2003-09-19  8:38                       ` Benjamin Herrenschmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1063833118.600.210.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=daniel@deadlock.et.tudelft.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox