Blame SOURCES/9998-kernel-boot-Do-not-perform-device-rename-on-OPA-devi.patch

e934f0
From 1c63f25b55ca4f5317e1c85b548469bbc747e147 Mon Sep 17 00:00:00 2001
e934f0
From: "Goldman, Adam" <adam.goldman@intel.com>
e934f0
Date: Tue, 4 Feb 2020 08:55:20 -0500
e934f0
Subject: [PATCH] kernel-boot: Do not perform device rename on OPA devices
e934f0
e934f0
PSM2 will not run with recent rdma-core releases. Several tools and
e934f0
libraries like PSM2, require the hfi1 name to be present.
e934f0
e934f0
Recent rdma-core releases added a new feature to rename kernel devices,
e934f0
but the default configuration will not work with hfi1 fabrics.
e934f0
e934f0
Related opa-psm2 github issue:
e934f0
  https://github.com/intel/opa-psm2/issues/43
e934f0
e934f0
Fixes: 5b4099d47be3 ("kernel-boot: Perform device rename to make stable names")
e934f0
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
e934f0
Signed-off-by: Goldman, Adam <adam.goldman@intel.com>
e934f0
---
e934f0
 kernel-boot/rdma-persistent-naming.rules | 4 ++--
e934f0
 1 file changed, 2 insertions(+), 2 deletions(-)
e934f0
e934f0
diff --git a/kernel-boot/rdma-persistent-naming.rules b/kernel-boot/rdma-persistent-naming.rules
e934f0
index 6f9c53a5..3ce34ea9 100644
e934f0
--- a/kernel-boot/rdma-persistent-naming.rules
e934f0
+++ b/kernel-boot/rdma-persistent-naming.rules
e934f0
@@ -26,10 +26,10 @@
e934f0
 #   Device type = RoCE
e934f0
 #   mlx5_0 -> rocex525400c0fe123455
e934f0
 #
e934f0
-ACTION=="add", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_FALLBACK"
e934f0
+ACTION=="add", SUBSYSTEM=="infiniband", KERNEL!="hfi1*", PROGRAM="rdma_rename %k NAME_FALLBACK"
e934f0
 
e934f0
 # Example:
e934f0
 # * NAME_FIXED 
e934f0
 #   fixed name for specific board_id
e934f0
 #
e934f0
-#ACTION=="add", ATTR{board_id}=="MSF0010110035", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_FIXED myib"
e934f0
\ No newline at end of file
e934f0
+#ACTION=="add", ATTR{board_id}=="MSF0010110035", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_FIXED myib"
e934f0
-- 
e934f0
2.30.1
e934f0