Re: + restore-missing-sysfs-max_cstate-attr.patch added to -mm tree



On Fri, 30 Nov 2007 14:06:55 -0800
"Pallipadi, Venkatesh" <venkatesh.pallipadi@xxxxxxxxx> wrote:

Please dont go off-list like this. I put Mark's original mailing list cc's
back.


I will have to Nack this. The reason max_cstate was initentionally
removed due to couple of reasons:

It broke userspace without any warning or migration period, afaict.

1) All in kernel users of max_cstate should rather be using
pm_qos/latency interfaces. All such max_cstate usages must already be
migrated.

That code isn't merged.

2) Supporting max_cstate as a dynamic parameter cleanly is no longer
possible in acpi/processor_idle.c as the C-state policy has moved to
cpuidle instead. It can be done if it is needed. But, just below patch
will not really work with cpuidle.

Selecting max_cstate at boot time as a debug option still works without
this patch.

So, just this patch will not get back the functionality with cpuidle.
Infact changing it at run time will have no effect. Question however is:
Is there a real need to revive this parameter so that user can change
max_cstate at run time?

It is not known whether Mark is actually writing to this thing. Perhaps
read-only permissions would be a suitable fix?


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



Relevant Pages

  • Re: [patch] lockf(3) user-exploitable kernel panic
    ... I know my patch fails ... that libutil tries to provide this interface. ... The reason I asked was because I don't have access to many boxes of ... different architectures or operating systems. ...
    (freebsd-arch)
  • Re: PATCH/RFC: [kdump] fix APIC shutdown sequence
    ... this is correct behavior and it is just specific to level ... Even if my patch in the form in which I submitted it is unusable, ... Or is there any specific reason why the current code does it vice-versa? ... PRIMERGY System Software Engineer ...
    (Linux-Kernel)
  • Re: Why are so many built-in types inheritable?
    ... reason why FunctionType is not subclassable is that nobody bothered to ... why is there a need for such a patch? ... The reason why it doesn't work then seems to boil down to the ... I know about practicality beating purity, ...
    (comp.lang.python)
  • Re: [PATCH 0/4] add task handling notifier
    ... For some reason neither ever made a lot of progess (performance ... it adds runtime overhead purely for the convenience of kernel ... While I (obviously, since I submitted the patch disagree), ...
    (Linux-Kernel)
  • Re: EGNOS working at last!
    ... EGNOS satellites, so it may be worth you checking their site to see if ... there's a patch for your model. ... The reason it's so difficult and unreliable right now is that it isn't fully ... it seems a lot of money to spend on whizz-bang ...
    (uk.rec.walking)