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: <4664631.LvFx2qVVIh@rjwysocki.net>
Date: Wed, 09 Jul 2025 12:47:17 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: x86 Maintainers <x86@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Linux PM <linux-pm@...r.kernel.org>,
 Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>,
 Peter Zijlstra <peterz@...radead.org>
Subject:
 [PATCH v1] x86/sched: Print debug messages on hybrid asym capacity changes

From: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
Subject: [PATCH v1] x86/sched: Print debug messages on hybrid asym capacity changes

Make arch_set_cpu_capacity() print a debug message including the
capacity and maximum frequency ratio used in scale-invariant utilization
computations for a given CPU and in capacity-aware scheduling (CAS) or
energy-aware scheduling (EAS).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
---
 arch/x86/kernel/cpu/aperfmperf.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/arch/x86/kernel/cpu/aperfmperf.c
+++ b/arch/x86/kernel/cpu/aperfmperf.c
@@ -416,6 +416,10 @@
 			   div_u64(cap << SCHED_CAPACITY_SHIFT, max_cap));
 		WRITE_ONCE(per_cpu_ptr(arch_cpu_scale, cpu)->freq_ratio,
 			   div_u64(cap_freq << SCHED_CAPACITY_SHIFT, base_freq));
+
+		pr_debug("CPU%d: capacity = %lu, freq_ratio = %lu\n", cpu,
+			 per_cpu_ptr(arch_cpu_scale, cpu)->capacity,
+			 per_cpu_ptr(arch_cpu_scale, cpu)->freq_ratio);
 	} else {
 		WARN_ONCE(1, "Hybrid CPU capacity scaling not enabled");
 	}




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ