[GIT PULL] More power management updates for v5.3-rc1

From: Rafael J. Wysocki
Date: Thu Jul 18 2019 - 05:06:32 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
pm-5.3-rc1-2

with top-most commit 918e162e6a71e924a343b41f71789ad14e1e3229

Merge branch 'pm-cpufreq'

on top of commit cf2d213e49fdf47e4c10dc629a3659e0026a54b8

Merge tag 'pm-5.3-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

to receive more power management updates for 5.3-rc1.

These modify the Intel RAPL driver to allow it to use an MMIO
interface to the hardware, make the int340X thermal driver provide
such an interface for it, add Intel Ice Lake CPU IDs to the RAPL
driver (these changes depend on the previously merged x86 arch
changes), update cpufreq to use the PM QoS framework for managing
the min and max frequency limits, and add update the imx-cpufreq-dt
cpufreq driver to support i.MX8MN.

Specifics:

- Add MMIO interface support to the Intel RAPL power capping
driver and update the int340X thermal driver to provide a
RAPL MMIO interface (Zhang Rui, Stephen Rothwell).

- Add Intel Ice Lake CPU IDs to the RAPL driver (Zhang Rui,
Rajneesh Bhardwaj).

- Make cpufreq use the PM QoS framework (instead of notifiers) for
managing the min and max frequency constraints (Viresh Kumar).

- Add i.MX8MN support to the imx-cpufreq-dt cpufreq driver (Anson
Huang).

Thanks!


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

Anson Huang (1):
cpufreq: imx-cpufreq-dt: Add i.MX8MN support

Rajneesh Bhardwaj (1):
powercap/rapl: Add Ice Lake NNPI support to RAPL driver

Stephen Rothwell (1):
intel_rapl: need linux/cpuhotplug.h for enum cpuhp_state

Viresh Kumar (8):
PM / QOS: Pass request type to dev_pm_qos_{add|remove}_notifier()
PM / QOS: Rename __dev_pm_qos_read_value() and dev_pm_qos_raw_read_value()
PM / QOS: Pass request type to dev_pm_qos_read_value()
PM / QoS: Add support for MIN/MAX frequency constraints
cpufreq: Register notifiers with the PM QoS framework
cpufreq: intel_pstate: Reuse refresh_frequency_limits()
cpufreq: Add QoS requests for userspace constraints
cpufreq: Make cpufreq_generic_init() return void

Zhang Rui (16):
intel_rapl: use reg instead of msr
intel_rapl: remove hardcoded register index
intel_rapl: introduce intel_rapl.h
intel_rapl: introduce struct rapl_if_private
intel_rapl: abstract register address
intel_rapl: abstract register access operations
intel_rapl: cleanup some functions
intel_rapl: cleanup hardcoded MSR access
intel_rapl: abstract RAPL common code
intel_rapl: support 64 bit register
intel_rapl: support two power limits for every RAPL domain
int340X/processor_thermal_device: add support for MMIO RAPL
intel_rapl: Fix module autoloading issue
powercap/intel_rapl: add support for IceLake desktop
powercap/intel_rapl: add support for ICX
powercap/intel_rapl: add support for ICX-D

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

Documentation/power/pm_qos_interface.txt | 12 +-
MAINTAINERS | 1 +
drivers/base/power/domain.c | 8 +-
drivers/base/power/domain_governor.c | 4 +-
drivers/base/power/qos.c | 135 +++-
drivers/base/power/runtime.c | 2 +-
drivers/cpufreq/bmips-cpufreq.c | 17 +-
drivers/cpufreq/cpufreq.c | 216 ++++--
drivers/cpufreq/davinci-cpufreq.c | 3 +-
drivers/cpufreq/imx-cpufreq-dt.c | 3 +-
drivers/cpufreq/imx6q-cpufreq.c | 6 +-
drivers/cpufreq/intel_pstate.c | 7 +-
drivers/cpufreq/kirkwood-cpufreq.c | 3 +-
drivers/cpufreq/loongson1-cpufreq.c | 8 +-
drivers/cpufreq/loongson2_cpufreq.c | 3 +-
drivers/cpufreq/maple-cpufreq.c | 3 +-
drivers/cpufreq/omap-cpufreq.c | 15 +-
drivers/cpufreq/pasemi-cpufreq.c | 3 +-
drivers/cpufreq/pmac32-cpufreq.c | 3 +-
drivers/cpufreq/pmac64-cpufreq.c | 3 +-
drivers/cpufreq/s3c2416-cpufreq.c | 9 +-
drivers/cpufreq/s3c64xx-cpufreq.c | 15 +-
drivers/cpufreq/s5pv210-cpufreq.c | 3 +-
drivers/cpufreq/sa1100-cpufreq.c | 3 +-
drivers/cpufreq/sa1110-cpufreq.c | 3 +-
drivers/cpufreq/spear-cpufreq.c | 3 +-
drivers/cpufreq/tegra20-cpufreq.c | 8 +-
drivers/cpuidle/governor.c | 2 +-
drivers/powercap/Kconfig | 11 +-
drivers/powercap/Makefile | 3 +-
.../powercap/{intel_rapl.c => intel_rapl_common.c} | 801 ++++++++-------------
drivers/powercap/intel_rapl_msr.c | 183 +++++
drivers/thermal/intel/int340x_thermal/Kconfig | 6 +
.../int340x_thermal/processor_thermal_device.c | 173 ++++-
include/linux/cpufreq.h | 14 +-
include/linux/intel_rapl.h | 155 ++++
include/linux/pm_qos.h | 48 +-
37 files changed, 1196 insertions(+), 699 deletions(-)