[PATCH] cpufreq support for 7447A on 2004 iBooks

John Steele Scott toojays at toojays.net
Thu Jun 10 21:34:35 EST 2004



On Sun, 6 Jun 2004 01:51 am, Benjamin Herrenschmidt wrote:
> I suggest you also look at the latest Darwin code Apple released, more
> sepecifically AppleMacRISC2PE. There is some new bits including something
> about tweaking a bus delay when changing the frequency on these models.

I had time to have a look at this today (actually, I didn't have time, but I
looked at it anyway :). There is a register in the UniNorth which controls
whether the address acknowledge will be delayed or not. This delay is not
required when running at high speed.

I have made a new patch for this, available from:
http://www.toojays.net/~toojays/misc/7447a_cpufreq_20040610.patch

This is a fair bit larger than the previous patch, as I have added a function
to the intrepid feature table to control the AACK delay. There is a slight
performance improvement for processes which are bound by memory latency (e.g.
repeatedly cat'ing a 180MB file to /dev/null takes 0.270s with this patch
versus 0.277s with the last one).

This patch also accepts the PowerBook5,4 models. One thing that needs checking
as that the revision of UniNorth on this model is high enough for
intrepid_aack_delay_enable to do its thing. I just assumed that they have the
same UniNorth, but I will ask in the forum thread which Colin pointed to
earlier tonight.

cheers,

John

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list