numam-dpdk/lib/librte_power
Mattias Rönnblom 388c4c03ec power: handle frequency increase with turbo disabled
Calling pstate's or acpi's rte_power_freq_up() when on the highest
non-turbo frequency results in an error, if turbo is enabled in the BIOS,
but disabled via the power library.
The error is in the form of a return code and a RTE_LOG() entry
on the ERR level.

According to the API documentation, the frequency is scaled up
"according to the available frequencies". In case turbo is disabled,
that frequency is not available. This patch's rte_power_freq_up()
behaviour is also consistent with how rte_power_freq_max() is
implemented (i.e. the highest non-turbo frequency is set, in case
turbo is disabled).

Fixes: 445c6528b5 ("power: common interface for guest and host")
Fixes: e6c6dc0f96 ("power: add p-state driver compatibility")
Cc: stable@dpdk.org

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
Tested-by: David Hunt <david.hunt@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Liang Ma <liang.j.ma@intel.com>
2019-11-21 00:52:31 +01:00
..
channel_commands.h power: add packet type for capabilities 2019-10-27 21:12:04 +01:00
guest_channel.c power: extend guest channel for frequency query 2019-10-27 20:57:05 +01:00
guest_channel.h power: extend guest channel for frequency query 2019-10-27 20:57:05 +01:00
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build lib: add reasons for components being disabled 2019-07-02 23:21:05 +02:00
power_acpi_cpufreq.c power: handle frequency increase with turbo disabled 2019-11-21 00:52:31 +01:00
power_acpi_cpufreq.h power: add get capabilities API 2018-07-12 19:15:14 +02:00
power_common.h power: clean common header 2018-01-12 00:37:07 +01:00
power_kvm_vm.c power: fix buffer overruns 2019-04-23 00:15:10 +02:00
power_kvm_vm.h power: add get capabilities API 2018-07-12 19:15:14 +02:00
power_pstate_cpufreq.c power: handle frequency increase with turbo disabled 2019-11-21 00:52:31 +01:00
power_pstate_cpufreq.h power: add p-state driver compatibility 2018-12-21 01:33:59 +01:00
rte_power_empty_poll.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_power_empty_poll.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_power_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
rte_power.c power: reset function pointers on unset environment 2019-04-22 22:45:51 +02:00
rte_power.h lib: fix doxygen typos 2019-11-19 22:03:38 +01:00