[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New powerbooks support status



El vie, 25-02-2005 a las 15:22 +1100, Benjamin Herrenschmidt escribió:

Hi BenH!

> Wht do you mean ? The half bogomips ? well, it might just be a matter of
> enabling support for your machine in arch/ppc/platforms/pmac_cpufreq.c
> around those lines:
> 
>         if (machine_is_compatible("PowerBook6,5") ||
>             machine_is_compatible("PowerBook6,4") ||
>             machine_is_compatible("PowerBook5,5") ||
>             machine_is_compatible("PowerBook5,4")) {
>                 pmac_cpufreq_init_7447A(cpunode);
> 
> Though that code will probably think you are running at high speed which
> isn't the case apparently... We probably need to add some code to read
> back the current speed mode from the processor to get the initial speed
> correct or all the kernel delay loops will be broken.

That did the trick, decided to give a try to 2.6.11-rc5 and modified
arch/ppc/platforms/pmac_cpufreq.c to look like this:

        /*  Check for 7447A based iBook G4 or PowerBook */
        if (machine_is_compatible("PowerBook6,8") || /* My CPU */
            machine_is_compatible("PowerBook6,5") ||
            machine_is_compatible("PowerBook6,4") ||
            machine_is_compatible("PowerBook5,5") ||
            machine_is_compatible("PowerBook5,4")) {
                pmac_cpufreq_init_7447A(cpunode);

Thank's a lot, I can now use full speed (cpufreq works again).

A. Corbi



Reply to: