summaryrefslogtreecommitdiffstats
path: root/0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2020-06-30 09:24:22 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2020-06-30 09:24:22 -0500
commitd176dfce22f5ead7a6018edb69757bc8840cc008 (patch)
treeaa15398098e0f20a9fb643441ec8443b2ffd6328 /0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch
parent61b5e2fd06a4be7134afb1cd363002e015123f7f (diff)
downloadkernel-d176dfce22f5ead7a6018edb69757bc8840cc008.tar.gz
kernel-d176dfce22f5ead7a6018edb69757bc8840cc008.tar.xz
kernel-d176dfce22f5ead7a6018edb69757bc8840cc008.zip
kernel-5.8.0-0.rc3.20200630git7c30b859a947.1
* Tue Jun 30 2020 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.8.0-0.rc3.20200630git7c30b859a947.1] - 7c30b859a947 rebase - Updated changelog for the release based on v5.8-rc3 (Fedora Kernel Team) Resolves: rhbz# Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to '0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch')
-rw-r--r--0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch b/0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch
index 78d88bf92..8ffa070b4 100644
--- a/0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch
+++ b/0001-ipmi-do-not-configure-ipmi-for-HPE-m400.patch
@@ -64,7 +64,7 @@ index bbf7029e224b..cf7faa970dd6 100644
@@ -215,6 +215,21 @@ static int __init scan_for_dmi_ipmi(void)
{
const struct dmi_device *dev = NULL;
-
+
+#ifdef CONFIG_ARM64
+ /* RHEL-only
+ * If this is ARM-based HPE m400, return now, because that platform
@@ -82,7 +82,7 @@ index bbf7029e224b..cf7faa970dd6 100644
+
while ((dev = dmi_find_device(DMI_DEV_TYPE_IPMI, NULL, dev)))
dmi_decode_ipmi((const struct dmi_header *) dev->device_data);
-
+
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index e1b22fe0916c..894eda427214 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
@@ -92,13 +92,13 @@ index e1b22fe0916c..894eda427214 100644
#include <linux/nospec.h>
#include <linux/vmalloc.h>
+#include <linux/dmi.h>
-
+
#define IPMI_DRIVER_VERSION "39.2"
-
+
@@ -5155,8 +5156,21 @@ static int __init ipmi_init_msghandler_mod(void)
{
int rv;
-
+
- pr_info("version " IPMI_DRIVER_VERSION "\n");
+#ifdef CONFIG_ARM64
+ /* RHEL-only
@@ -107,7 +107,7 @@ index e1b22fe0916c..894eda427214 100644
+ * does not exist in the ARM architecture.
+ */
+ const char *dmistr = dmi_get_system_info(DMI_PRODUCT_NAME);
-
+
+ if (dmistr && (strcmp("ProLiant m400 Server", dmistr) == 0)) {
+ pr_debug("%s does not support host ipmi\n", dmistr);
+ return -ENOSYS;
@@ -119,5 +119,5 @@ index e1b22fe0916c..894eda427214 100644
rv = ipmi_register_driver();
mutex_unlock(&ipmi_interfaces_mutex);
--
-2.25.4
+2.26.2