Re: [PATCH rdma-next 0/9] RDMA/mlx5: Don't lose port configuration events during probe

From: Leon Romanovsky

Date: Thu Nov 26 2026 - 03:55:36 EST



On Sun, 22 Nov 2026 19:39:08 +0200, Edward Srouji wrote:
> mlx5_ib registers its event notifier after ib_register_device() and
> dispatches no event until the device is active, so a port
> configuration change that races with probe is lost: ib_core and the
> clients keep what they read. A lost P_Key change leaves ib_sa on a
> stale P_Key index and IPoIB without a carrier for good, as OpenSM
> writes a P_Key block only when it differs from the one on the port.
> This is hit on hypervisor setups, where the SM can program a VF's
> partitions while it probes.
>
> [...]

Applied, thanks!

[1/9] RDMA/mlx5: Validate port number in handle_port_change()
https://git.kernel.org/rdma/rdma/c/b60b42559388d3
[2/9] RDMA/mlx5: Don't let a slave port mark its master active
https://git.kernel.org/rdma/rdma/c/57e8846fbc47fa
[3/9] RDMA/mlx5: Flush system error and slave port event work
https://git.kernel.org/rdma/rdma/c/4104da4f89854a
[4/9] RDMA/core: Derive enforce_security from the cache event
https://git.kernel.org/rdma/rdma/c/5e2c7d3b46a3a2
[5/9] RDMA/core: Add ib_dispatch_event_sync()
https://git.kernel.org/rdma/rdma/c/40fde0fd31f0b1
[6/9] RDMA/mlx5: Pass the port and subtype to handle_port_change()
https://git.kernel.org/rdma/rdma/c/6db275d186dc45
[7/9] RDMA/mlx5: Activate the device in a stage of its own
https://git.kernel.org/rdma/rdma/c/9c31888fdaf66a
[8/9] RDMA/mlx5: Replay port configuration events after probe
https://git.kernel.org/rdma/rdma/c/c32ba2c6e113a6
[9/9] RDMA/mlx5: Register event notifier before IB registration
https://git.kernel.org/rdma/rdma/c/bcfc30f05f9b87

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>