Subject: Re: Powerbook G4 Performace
To: Emmanuel Hainry <ehainry@free.fr>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 03/09/2006 10:34:52
--Signature_Thu__9_Mar_2006_10_34_52_-0500_QWP2uO0f3=7Aw0MB
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> My powerbook is quite slow too: the proc does not run as the desired
> speed: dmesg says
>=20
> cpu0: 668.73 MHz, 512KB L2 cache
>=20
> when the cpu should run twice as fast...

That's - sadly - quite normal. Apple used at least two different ways to
control CPU speed - by switching bus clock and by having the PMU
manipulate the core clock frequency. I have a patch sitting around which
supports the former method on my iBook G4 ( early 2004, it doesn't work
on later models where the CPU runs at more than 800MHz ).
The reason why this happens is that the firmware doesn't start up the
CPU at full speed and NetBSD just uses what it finds.

To fix this Someone(tm) will have to dig through the Darwin source, find
the part that controls CPU clock via PMU and then adapt our PMU code.

have fun
Michael

--Signature_Thu__9_Mar_2006_10_34_52_-0500_QWP2uO0f3=7Aw0MB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBRBBLHMpnzkX8Yg2nAQJpBAgAjA4dDWbulYLOlN9iiA3loHzWq09LQRQV
Hi654dRRWi08URhTyXlapcORRElAnWj6F0gLzW5wHDIyn+I7ODgZrN36bADr1P8W
y/CXQsAJV2acaJkYIOf1nOFAPIxleuI+ao/+EJd+zLfM68+btQBxYdY10mrrPC4S
ldAUU7xEoDZzNTZb84npbeQEtu8z0QZ0lOZO7obVgbekmuoNRVEQFTdwzb/qqC2c
C4XxeHhelBQQy/rrfk7ChStDgZobU4lNeh/meShyvrFHNmc6kFOoTaIqF8q0Suxh
NPLH10H87gJ6y3guzcRzRIpyLdB9K1mjn8J3CjNcnHkm7rni9XK9/w==
=nXRS
-----END PGP SIGNATURE-----

--Signature_Thu__9_Mar_2006_10_34_52_-0500_QWP2uO0f3=7Aw0MB--