[GIT PULL] Power management updates for v5.11-rc2

From: Rafael J. Wysocki
Date: Fri Jan 01 2021 - 11:57:17 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
pm-5.11-rc2

with top-most commit 0856ef671f314e27d42998470d07c6b428d23e64

Merge branches 'pm-cpufreq', 'pm-cpuidle' and 'powercap'

on top of commit 5c8fe583cce542aa0b84adc939ce85293de36e5e

Linux 5.11-rc1

to receive power management updates for 5.11-rc2.

These fix a crash in intel_pstate during resume from suspend-to-RAM
that may occur after recent changes and two resource leaks in error
paths in the operating performance points (OPP) framework, add a new
C-states table to intel_idle, update the cpuidle MAINTAINERS entry
to cover the governors too and add a new power capping facility
allowing aggregate power constraints to be applied to sets of devices
in a distributed manner.

Specifics:

- Fix recently introduced crash in the intel_pstate driver that
occurs if scale-invariance is disabled during resume from
suspend-to-RAM due to inconsistent changes of APERF or MPERF
MSR values made by the platform firmware (Rafael Wysocki).

- Fix a memory leak and add a missing clk_put() in error paths in
the OPP framework (Quanyang Wang, Viresh Kumar).

- Add new C-states table for SnowRidge processors to the intel_idle
driver (Artem Bityutskiy).

- Update the MAINTAINERS entry for cpuidle to make it clear that
the governors are covered by it too (Lukas Bulwahn).

- Add new power capping facility called DTPM (Dynamic Thermal Power
Management), based on the existing power capping framework, to
allow aggregate power constraints to be applied to sets of devices
in a distributed manner, along with a CPU backend driver based on
the Energy Model (Daniel Lezcano).

Happy New Year!


---------------

Artem Bityutskiy (1):
intel_idle: add SnowRidge C-state table

Daniel Lezcano (5):
units: Add Watt units
Documentation/powercap/dtpm: Add documentation for dtpm
powercap/drivers/dtpm: Add API for dynamic thermal power management
powercap/drivers/dtpm: Add CPU energy model based support
powercap/drivers/dtpm: Fix __udivdi3 and __aeabi_uldivmod
unresolved symbols

Lukas Bulwahn (1):
MAINTAINERS: include governors into CPU IDLE TIME MANAGEMENT FRAMEWORK

Quanyang Wang (1):
opp: fix memory leak in _allocate_opp_table

Rafael J. Wysocki (1):
cpufreq: intel_pstate: Fix fast-switch fallback path

Viresh Kumar (1):
opp: Call the missing clk_put() on error

---------------

Documentation/power/index.rst | 1 +
Documentation/power/powercap/dtpm.rst | 212 +++++++++++++++
MAINTAINERS | 2 +-
drivers/cpufreq/intel_pstate.c | 1 -
drivers/idle/intel_idle.c | 41 ++-
drivers/opp/core.c | 9 +-
drivers/powercap/Kconfig | 13 +
drivers/powercap/Makefile | 2 +
drivers/powercap/dtpm.c | 473 ++++++++++++++++++++++++++++++++++
drivers/powercap/dtpm_cpu.c | 257 ++++++++++++++++++
include/asm-generic/vmlinux.lds.h | 11 +
include/linux/cpuhotplug.h | 1 +
include/linux/dtpm.h | 77 ++++++
include/linux/units.h | 4 +
14 files changed, 1099 insertions(+), 5 deletions(-)