On Tue, 17 Nov 2026 15:18:05 +0530 Ajit Kumar <[email protected]> wrote:
> From: Ajit Kumar <[email protected]> > > The I2C and MDIO buses are shared by all ports on the device. > axgbe_phy_get_comm_ownership() takes the per-port phy_mutex, which > does not stop two ports in the same process from using the bus at > once, causing I2C failures (-EAGAIN, -ENOTCONN, -ETIMEDOUT) and > incorrect link status reporting. > > Add a driver-wide mutex taken before the per-port one, as the Linux > xgbe driver does (xgbe_phy_comm_lock), which this DPDK PMD lost when > its equivalent global lock became the per-port pdata->phy_mutex. > > This fix applies to ports owned by a single process. If ports of the > same device are ever split across separate processes, or one port > stays with the kernel xgbe driver, the hardware mutex registers > remain the only arbitration between them; this is a pre-existing > limitation, not something this patch changes. Applied to next-net for 27.03 but I trimmed the commit message down. The version change should be below cutline --- and the link status part was not here anymore

