Commit d1b287f6 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Jun Tian
Browse files

thermal: netlink: Add a new event to notify CPU capabilities change

mainline inclusion
from mainline-5.18
commit e4b1eb24
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5DSOL



Intel_SIG: commit e4b1eb24 thermal: netlink: Add a new event to notify
CPU capabilities change.
Backport for Intel HFI (Hardware Feedback Interface) support

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

Add a new netlink event to notify change in CPU capabilities in terms of
performance and efficiency.

Firmware may change CPU capabilities as a result of thermal events in the
system or to account for changes in the TDP (thermal design power) level.

This notification type will allow user space to avoid running workloads
on certain CPUs or proactively adjust power limits to avoid future events.

The netlink message consists of a nested attribute
(THERMAL_GENL_ATTR_CPU_CAPABILITY) with three attributes:

 * THERMAL_GENL_ATTR_CPU_CAPABILITY_ID (type u32):
   -- logical CPU number
 * THERMAL_GENL_ATTR_CPU_CAPABILITY_PERFORMANCE (type u32):
   -- Scaled performance from 0-1023
 * THERMAL_GENL_ATTR_CPU_CAPABILITY_EFFICIENCY (type u32):
   -- Scaled efficiency from 0-1023

Reviewed-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avataryingbao jia <yingbao.jia@intel.com>
Signed-off-by: default avatarJun Tian <jun.j.tian@intel.com>
parent 9c1fe589
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment