lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250419025504.9760-1-ricardo.neri-calderon@linux.intel.com>
Date: Fri, 18 Apr 2025 19:55:02 -0700
From: Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>
To: Sudeep Holla <sudeep.holla@....com>,
	"Rafael J. Wysocki" <rafael@...nel.org>,
	Danilo Krummrich <dakr@...nel.org>,
	Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
	Len Brown <len.brown@...el.com>
Cc: linux-kernel@...r.kernel.org,
	linux-pm@...r.kernel.org,
	Ricardo Neri <ricardo.neri@...el.com>,
	Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>
Subject: [PATCH 0/2] topology/sysfs, cpufreq/intel_pstate: Populate cpu_capacity

Hi,

Capacity-aware scheduling is now supported on Intel hybrid processors. It
makes sense now to populate the interface /sys/devices/system/cpu/cpuN/
cpu_capacity. User space entities can use this information to implement
policy such as utilization clamps.

This interface currently lives in arch_topology.c. Rather than implementing
the interface again for x86, we can move it to a common location in
topology.c from which other architectures can also benefit and populate
using their own mechanisms.

I tested this patchset on Intel Alder Lake and DragonBoard 845c. The
interfaces are populated correctly.

I'd appreciate any feedback!

Thanks and BR,
Ricardo
Ricardo Neri (2):
  arch_topology: Relocate cpu_scale to topology.[h|c]
  cpufreq: intel_pstate: Populate the cpu_capacity sysfs entries

 drivers/base/arch_topology.c   | 52 ----------------------------------
 drivers/base/topology.c        | 52 ++++++++++++++++++++++++++++++++++
 drivers/cpufreq/intel_pstate.c |  2 ++
 include/linux/arch_topology.h  |  8 ------
 include/linux/topology.h       |  9 ++++++
 5 files changed, 63 insertions(+), 60 deletions(-)

-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ