All of lore.kernel.org
 help / color / mirror / Atom feed
* overrides
@ 2004-03-17 18:01 paul.devriendt
  2004-03-17 20:00 ` overrides Bruno Ducrot
  0 siblings, 1 reply; 3+ messages in thread
From: paul.devriendt @ 2004-03-17 18:01 UTC (permalink / raw)
  To: ducrot, pavel; +Cc: linux, cpufreq

> -----Original Message-----
> From: Bruno Ducrot [mailto:ducrot@poupinou.org] 
> Sent: Wednesday, March 17, 2004 10:04 AM
> To: Pavel Machek
> Cc: Dominik Brodowski; Cpufreq mailing list
> Subject: Re: powernow-k8, more updates
> 
> Why not just provide an override from userspace?

The question of overrides is a difficult question. The
theory is that BIOS provides a table of frequencies/
voltages that should be used for this system. This is
because different processors vary on the frequencies
that they support, and different processors have
different voltages for the same frequency. Also, the
platform may have additional restrictions, such as the
need to restrict operation at higher frequencies when
running on battery power.

Those of us receiving emails from customers with crashing
systems are painfully available that not every BIOS is
providing good data, and not every BIOS is even supplying
any data. I suppose no data is better than wrong data,
given that the bad data normally causes a lockup, typically
caused by the driver setting the system to a voltage that
is just too low.

So, there are various modified versions of the driver
floating around that override the BIOS data - either to
supply data where the BIOS does not, or to override the
BIOS data with values that do not crash the system.

The difficulty with all these override mechanisms is that
the correct values for system x may or may not be correct
for system y. And, I do not think anyone is willing (or is
even able) to own a master table to cover all possible
platforms and processors.

So, today, someone who is willing to modify the driver 
code is capable of implementing an override, and the
driver code is actually structured in a way that this is
actually very easy. If you choose to modify the source to 
a driver (at your own risk) to override something, then
great. Moving to a method where it is easier for a
non-programmer to supply override values is a hard problem,
as how do you know what values you might need to override?

Paul.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: overrides
  2004-03-17 18:01 overrides paul.devriendt
@ 2004-03-17 20:00 ` Bruno Ducrot
  2004-03-17 20:08   ` overrides Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Bruno Ducrot @ 2004-03-17 20:00 UTC (permalink / raw)
  To: paul.devriendt; +Cc: linux, cpufreq, pavel

On Wed, Mar 17, 2004 at 12:01:49PM -0600, paul.devriendt@amd.com wrote:
> > -----Original Message-----
> > From: Bruno Ducrot [mailto:ducrot@poupinou.org] 
> > Sent: Wednesday, March 17, 2004 10:04 AM
> > To: Pavel Machek
> > Cc: Dominik Brodowski; Cpufreq mailing list
> > Subject: Re: powernow-k8, more updates
> > 
> > Why not just provide an override from userspace?
> 
> The question of overrides is a difficult question. The
> theory is that BIOS provides a table of frequencies/
> voltages that should be used for this system. This is
> because different processors vary on the frequencies
> that they support, and different processors have
> different voltages for the same frequency. Also, the
> platform may have additional restrictions, such as the
> need to restrict operation at higher frequencies when
> running on battery power.

Then I think it's way better to kill all of this overriding stuff.

If people want to override, then they have to reimplemente that
by themself.

It's pretty easy by now to change that '#if 0' by '#if 1'...

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: overrides
  2004-03-17 20:00 ` overrides Bruno Ducrot
@ 2004-03-17 20:08   ` Pavel Machek
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2004-03-17 20:08 UTC (permalink / raw)
  To: Bruno Ducrot; +Cc: linux, cpufreq

On St 17-03-04 21:00:51, Bruno Ducrot wrote:
> On Wed, Mar 17, 2004 at 12:01:49PM -0600, paul.devriendt@amd.com wrote:
> > > -----Original Message-----
> > > From: Bruno Ducrot [mailto:ducrot@poupinou.org] 
> > > Sent: Wednesday, March 17, 2004 10:04 AM
> > > To: Pavel Machek
> > > Cc: Dominik Brodowski; Cpufreq mailing list
> > > Subject: Re: powernow-k8, more updates
> > > 
> > > Why not just provide an override from userspace?
> > 
> > The question of overrides is a difficult question. The
> > theory is that BIOS provides a table of frequencies/
> > voltages that should be used for this system. This is
> > because different processors vary on the frequencies
> > that they support, and different processors have
> > different voltages for the same frequency. Also, the
> > platform may have additional restrictions, such as the
> > need to restrict operation at higher frequencies when
> > running on battery power.
> 
> Then I think it's way better to kill all of this overriding stuff.
> 
> If people want to override, then they have to reimplemente that
> by themself.
> 
> It's pretty easy by now to change that '#if 0' by '#if 1'...

Yes, but please keep it in for now. It should be killed before
mainline merge, but it is very helpfull for me just now.

(Oh, and I think I actually cleaned code up while making overriding
easier.)
							Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-17 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-17 18:01 overrides paul.devriendt
2004-03-17 20:00 ` overrides Bruno Ducrot
2004-03-17 20:08   ` overrides Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.