public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/2] cpufreq: ondemand: add AMD specific powersave bias
@ 2013-04-04 16:19 Jacob Shin
  2013-04-04 16:19 ` [PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered Jacob Shin
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Jacob Shin @ 2013-04-04 16:19 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: cpufreq, linux-pm, linux-kernel, Viresh Kumar, Thomas Renninger,
	Borislav Petkov, Jacob Shin

This patchset adds AMD specific powersave bias function to the ondemand
governor; which can be used to help ondemand governor make more power conscious
frequency change decisions based on feedback from hardware (availble on AMD
Family 16h and above).

Hardware feedback tells software how "sensitive" to frequency changes the
workloads are. CPU-bound workloads will be more sensitive -- they will
perform better as frequency increases. Memory/IO-bound workloads will be less
sensitive -- they will not necessarily perform better as frequnecy increases.

This patchset was compared against ondemand governor without powersave bias
and did not show any performance degradation on CPU-bound workloads such as
kernbench and unixbench. While saving power on Memory-bound workloads such as
stream.

V4:
* Added proper documentation to Documentation/cpu-freq/
* Revised so that when this driver loads, the feature is enabled by
  default with a sane tunable value.

V3:
* Added to CPUID bit to cpufeature.h
* Added MODULE_DEVICE_TABLE to autoload this driver.
* Other small changes per feedback from:
  https://lkml.org/lkml/2013/4/2/349

V2:
* Added proper include files to amd_freq_sensitivity.c
* Only register powersave_bias_target function pointer and not the entire
  od_ops.

Jacob Shin (2):
  cpufreq: ondemand: allow custom powersave_bias_target handler to be
    registered
  cpufreq: AMD "frequency sensitivity feedback" powersave bias for
    ondemand governor

 Documentation/cpu-freq/governors.txt   |   21 +++++
 arch/x86/include/asm/cpufeature.h      |    1 +
 arch/x86/kernel/cpu/scattered.c        |    3 +-
 drivers/cpufreq/Kconfig.x86            |   17 ++++
 drivers/cpufreq/Makefile               |    1 +
 drivers/cpufreq/amd_freq_sensitivity.c |  148 ++++++++++++++++++++++++++++++++
 drivers/cpufreq/cpufreq_governor.h     |    4 +
 drivers/cpufreq/cpufreq_ondemand.c     |   56 ++++++++++--
 8 files changed, 242 insertions(+), 9 deletions(-)
 create mode 100644 drivers/cpufreq/amd_freq_sensitivity.c

-- 
1.7.9.5



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

end of thread, other threads:[~2013-04-05 11:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 16:19 [PATCH V4 0/2] cpufreq: ondemand: add AMD specific powersave bias Jacob Shin
2013-04-04 16:19 ` [PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered Jacob Shin
2013-04-04 16:36   ` Viresh Kumar
2013-04-04 17:18     ` Jacob Shin
2013-04-04 19:12       ` Borislav Petkov
2013-04-04 20:28         ` Jacob Shin
2013-04-04 21:32           ` Borislav Petkov
2013-04-04 16:19 ` [PATCH V4 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor Jacob Shin
2013-04-04 19:23   ` Borislav Petkov
2013-04-04 20:29     ` Jacob Shin
2013-04-04 16:42 ` [PATCH V4 0/2] cpufreq: ondemand: add AMD specific powersave bias Thomas Renninger
2013-04-05  4:49 ` Viresh Kumar
2013-04-05  6:49   ` Viresh Kumar
2013-04-05 11:55     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox