There is a lack of information on how to use p_keys on CentOS 8/RHEL 8 with ConnectX-4 adapters and MLNX_OFED 5.0-2.1.8.0 driver. After specifying the keys in /etc/opensm/partitions.conf and restarting the service the keys do not appear as configured under /sys/class/infiniband/mlx5_*/ports/1/pkeys/. All documentation about setting p_keys available is addressing mlx4 driver, not mlx5. For instance, there is no iov subfolder under /sys/class/infiniband/mlx5_0/ (the OFED documentation usually refers to /sys/class/infiniband/mlx4_0/iov). And no, things like echo 0x8001 > /sys/class/net/ib0/create_child create interface but there is no carrier status of the interface.
Is there a proper documentation on how to use p_keys for ConnectX-4 MLNX_OFED 5.0-2.1.8.0 on Linux that actually works?