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

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