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