Skip to contentSkip to conversation

New governor?

DISCUSSION Jacob Shin 3 participants 3 messages Jan 23, 2013

lore
Share & tools
lore

Jacob Shin

author
#0 lore raw

Rafael, cpufreq list,

I was wondering ..

- Is hardware architecture specific governor acceptable in upstream? i.e. drivers/cpufreq/cpufreq_amd_governor.c

If not ..

- Is it acceptable to patch ondemand and/or conservative governors to call into some hardware achitecture specific function that affects the governors's freqency change decisions? (of course it would only be avaiable on certain hardware and only kicks in if user wants it to)

Basically, we have some AMD specific processor registers that tell us information that could help in making frequency change decisions for better power savings, and I was wondering what the proper way to go about implementing something like this would be.

Thanks!

-Jacob

#1 lore raw
Quoted 6 lines · Jacob Shin

Rafael, cpufreq list,

I was wondering ..

- Is hardware architecture specific governor acceptable in upstream? i.e. drivers/cpufreq/cpufreq_amd_governor.c

It generally is, although the details of implementation matter too.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#2 lore raw
Quoted 13 lines · Rafael J. Wysocki
Quoted 6 lines · Jacob Shin

Rafael, cpufreq list,

I was wondering ..

- Is hardware architecture specific governor acceptable in upstream? i.e. drivers/cpufreq/cpufreq_amd_governor.c

It generally is, although the details of implementation matter too.

Thanks,
Rafael

Intel has also been talking about hardware-specific driver/governor bundles. For now, I'd say go ahead, try to make it backwards compatible if that makes sense, and regard it as experimental. In the long run we will need to generalize what it is doing so we can once again have a higher-level, hardware-independent configuration API over the hardware-specific governors. Linux Distributions aren't going to want to use hardware-specific APIs to configure a machine, so they will likely ignore your (and Intel's) governor until there is a generic interface.

DCN