systemd/SOURCES/0249-rules-do-not-online-CPU-automatically-on-IBM-platfor.patch
2023-11-07 12:29:40 +00:00

32 lines
980 B
Diff

From 94c7e260b499cd9e5ad8d99d95b9413df2d50cc6 Mon Sep 17 00:00:00 2001
From: Michal Sekletar <msekleta@redhat.com>
Date: Thu, 30 Mar 2023 14:56:16 +0200
Subject: [PATCH] rules: do not online CPU automatically on IBM platforms
RHEL-only
Resolves: #2143107
---
rules.d/40-redhat.rules | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/rules.d/40-redhat.rules b/rules.d/40-redhat.rules
index 3c95cd2df0..efb866966e 100644
--- a/rules.d/40-redhat.rules
+++ b/rules.d/40-redhat.rules
@@ -1,7 +1,13 @@
# do not edit this file, it will be overwritten on update
# CPU hotadd request
-SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
+SUBSYSTEM!="cpu", GOTO="cpu_online_end"
+ACTION!="add", GOTO="cpu_online_end"
+CONST{arch}=="s390*|ppc64*", GOTO="cpu_online_end"
+
+TEST=="online", ATTR{online}=="0", ATTR{online}="1"
+
+LABEL="cpu_online_end"
# Memory hotadd request
SUBSYSTEM!="memory", GOTO="memory_hotplug_end"