Skip to content

Commit ad8c0ad

Browse files
committed
kernel-boot: Add rdma_topo tool
For some time now modern multi-NIC servers now have very complex topology. Often with NICs, GPUs and NVMe devices that are topologically co-located. These systems tend to come with specialized ACS requirements for PCI Peer to Peer, for instance ACS disable or ACS setup specially for translated traffic. NVIDIA's latest systems have a novel PCI multipath system that requires special asymmetric ACS. Introduce a tool to help users configure the ACS on such systems. The tool will be able to parse the PCI topology and identify the topological features then generate the require ACS settings. Modern kernels support the config_acs kernel command line parameter to allow fine grained settings so the correct ACS for the topology can be fed into Grub and to the kernel command line to configure it at boot The tool has four functions: topo - Print out the topology from the RDMA perspective. Indicate what devices are P2P connected to the NIC. write-grub-acs - Emit the config_acs kernel command line parameter for the required ACS configuration setpci-acs - Use setpci after booting to set the required ACS configuration. This is not recommended but provided to help legacy systems without config_acs. check - Read the live ACS settings and compare them to the required configuration This initial version supports two NVIDIA platforms. There is an expectation it will grow to more broadly support more common topologies as well. Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 8eaec4f commit ad8c0ad

File tree

5 files changed

+770
-0
lines changed

5 files changed

+770
-0
lines changed

debian/rdma-core.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ lib/udev/rules.d/90-rdma-ulp-modules.rules
2222
lib/udev/rules.d/90-rdma-umad.rules
2323
usr/lib/truescale-serdes.cmds
2424
usr/sbin/iwpmd
25+
usr/sbin/rdma_topo
2526
usr/sbin/rdma-ndd
2627
usr/share/doc/rdma-core/70-persistent-ipoib.rules
2728
usr/share/doc/rdma-core/MAINTAINERS

kernel-boot/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ rdma_subst_install(FILES "persistent-ipoib.rules.in"
4141
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
4242
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
4343

44+
install(FILES "rdma_topo"
45+
DESTINATION "${CMAKE_INSTALL_SBINDIR}")
46+
4447
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
4548

4649
# Create an installed executable (under /usr/lib/udev)

0 commit comments

Comments
 (0)