|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/mwait-idle: add Granite Rapids Xeon D support
commit 24d76e388bd7adac5f2616ddaf8b2eced00d549b
Author: Artem Bityutskiy <artem.bityutskiy@xxxxxxxxxxxxxxx>
AuthorDate: Wed Jul 9 11:02:24 2025 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Jul 9 11:02:24 2025 +0200
x86/mwait-idle: add Granite Rapids Xeon D support
Add Granite Rapids Xeon D C-states support: C1, C1E, C6, and C6P.
The C-states are basically the same as in Granite Rapids Xeon SP/AP, but
characteristics (latency, target residency) are a bit different.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@xxxxxxxxxxxxxxx>
Link:
https://patch.msgid.link/20241107115608.52233-1-artem.bityutskiy@xxxxxxxxxxxxxxx
[ rjw: Changelog edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
f557e0d1c2e6
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/cpu/mwait-idle.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/xen/arch/x86/cpu/mwait-idle.c b/xen/arch/x86/cpu/mwait-idle.c
index 4c16c0bf15..e36bab7b82 100644
--- a/xen/arch/x86/cpu/mwait-idle.c
+++ b/xen/arch/x86/cpu/mwait-idle.c
@@ -784,6 +784,34 @@ static const struct cpuidle_state gnr_cstates[] = {
{}
};
+static const struct cpuidle_state gnrd_cstates[] = {
+ {
+ .name = "C1",
+ .flags = MWAIT2flg(0x00),
+ .exit_latency = 1,
+ .target_residency = 1,
+ },
+ {
+ .name = "C1E",
+ .flags = MWAIT2flg(0x01),
+ .exit_latency = 4,
+ .target_residency = 4,
+ },
+ {
+ .name = "C6",
+ .flags = MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 220,
+ .target_residency = 650,
+ },
+ {
+ .name = "C6P",
+ .flags = MWAIT2flg(0x21) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 240,
+ .target_residency = 750,
+ },
+ {}
+};
+
static const struct cpuidle_state atom_cstates[] = {
{
.name = "C1E",
@@ -1235,6 +1263,11 @@ static const struct idle_cpu idle_cpu_gnr = {
.c1e_promotion = C1E_PROMOTION_DISABLE,
};
+static const struct idle_cpu idle_cpu_gnrd = {
+ .state_table = gnrd_cstates,
+ .c1e_promotion = C1E_PROMOTION_DISABLE,
+};
+
static const struct idle_cpu idle_cpu_avn = {
.state_table = avn_cstates,
.c1e_promotion = C1E_PROMOTION_DISABLE,
@@ -1310,6 +1343,7 @@ static const struct x86_cpu_id intel_idle_ids[]
__initconstrel = {
ICPU(SAPPHIRERAPIDS_X, spr),
ICPU(EMERALDRAPIDS_X, spr),
ICPU(GRANITERAPIDS_X, gnr),
+ ICPU(GRANITERAPIDS_D, gnrd),
ICPU(ATOM_GOLDMONT, bxt),
ICPU(ATOM_GOLDMONT_PLUS, bxt),
ICPU(ATOM_GOLDMONT_D, dnv),
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |