linux-sg2042/drivers/powercap
Sumeet Pawnikar 8365a898fe powercap: Add Power Limit4 support
Modern Intel Mobile platforms support power limit4 (PL4), which is
the SoC package level maximum power limit (in Watts). It can be used
to preemptively limits potential SoC power to prevent power spikes
from tripping the power adapter and battery over-current protection.
This patch enables this feature by exposing package level peak power
capping control to userspace via RAPL sysfs interface. With this,
application like DTPF can modify PL4 power limit, the similar way
of other package power limit (PL1).
As this feature is not tested on previous generations, here it is
enabled only for the platform that has been verified to work,
for safety concerns.

Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Co-developed-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-07-27 14:17:36 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile intel_rapl: abstract RAPL common code 2019-07-11 15:08:58 +02:00
idle_inject.c powercap: idle_inject: Replace play_idle() with play_idle_precise() in comments 2020-07-09 14:40:07 +02:00
intel_rapl_common.c powercap: Add Power Limit4 support 2020-07-27 14:17:36 +02:00
intel_rapl_msr.c powercap: Add Power Limit4 support 2020-07-27 14:17:36 +02:00
powercap_sys.c powercap: Invoke powercap_init() and rapl_init() earlier 2019-07-22 11:23:00 +02:00