Re: [PATCH] powernow-k8 max speed sanity check

From: Tony Lindgren
Date: Thu Feb 05 2004 - 20:17:53 EST


* Pavel Machek <pavel@xxxxxx> [040205 16:28]:
> Hi!
>
> > > Well, I wanted some way to detect exactly this broken machine. You
> > > might want to simply put == 8 there.. but proper solution is DMI blacklist.
> >
> > Or just use the current running values for max speed. That will fail if the
> > system boots at lower speeds on battery though. And the BIOS checks will
> > fail on buggy BIOSes and when upgrading the CPU. So maybe use both checks?
>
> Well... for your own kernel hack it any way you want.
>
> For public consumtion... I guess DMI blacklist and assume user did not
> exchange cpus... We could cross-check /proc/cpuinfo.

Yeah, I don't care as long as it works good :)

> > > > What do you think about using module options maxfid and maxvid?
> > >
> > > Well, the original BIOS has not only maximum values wrong, but also
> > > 1600MHz wrong, as far as I can tell...
> >
> > Outch! I did not know that...
> >
> > Are the middle values needed? What if you only use the min and max
> > fid/vid values, and always recalculate the stepping tables from those
> > values?
>
> Well, 1600MHz operation is very nice, as it has significantly less
> power consumption but pretty much same performance. It also does not
> start CPU fan most of the time :-).

Yes, 1600MHz would be nice, I agree.

But I meant calculating all the valid values inbetween min and max without
relying on getting those values from the BIOS.

Then you would only need to find out the min and max values, and not
care about bugs in the BIOS table inbetween min and max.

I guess the code already does that to figure out how many steps are needed
to change between min and max?

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