Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade

From: Ingo Molnar
Date: Sun Jan 25 2009 - 10:03:49 EST



* Florian Fainelli <florian.fainelli@xxxxxxxxxxxxx> wrote:

> Le Saturday 24 January 2009 02:36:30 john stultz, vous avez écrit :
> > On Fri, Jan 23, 2009 at 3:04 AM, Ingo Molnar <mingo@xxxxxxx> wrote:
> > > * john stultz <johnstul@xxxxxxxxxx> wrote:
> > >> I'd think this would ideally be more of a subarch in the config
> > >> selection like the AMD Elan is, so folks know it really is not just a
> > >> extra-support feature and in fact limits what hardware you can use the
> > >> resulting kernel on.
> > >
> > > a better solution is that if RDC is set [it is unset by default] we
> > > should turn PIT_TICK_RATE into a variable, defaulting it to 1193182. If a
> > > real RDC or ELAN system is running, that variable is changed during early
> > > bootup, in the init functions for those platforms.
> >
> > Took a quick look at this, and I don't see any detection code for
> > either RDC. The X86_ELAN config also has no conditionals, but maybe
> > the elan cpufreq code can help here.
> >
> > Florian: Is there any way we can check very early (ie: in setup_arch)
> > for an RDC box?
>
> Sorry for answering so late.
>
> We cannot rely on the cpuid since there is not one, nor the bios, since
> most (if not all) boards use RedBoot as a bootloader. If we have PCI
> initiliazed, we could check the presence of a R6040 Ethernet MAC.
> [...]

yep, an early PCI quirk for that would suffice.

Ingo

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