netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] mlxsw: Fixes
@ 2024-06-17 16:55 Petr Machata
  2024-06-17 16:56 ` [PATCH net 1/3] mlxsw: pci: Fix driver initialization with Spectrum-4 Petr Machata
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Petr Machata @ 2024-06-17 16:55 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev
  Cc: Ido Schimmel, Petr Machata, mlxsw

This patchset fixes two issues with mlxsw driver initialization, and a
memory corruption issue in shared buffer occupancy handling.

Ido Schimmel (3):
  mlxsw: pci: Fix driver initialization with Spectrum-4
  mlxsw: core_thermal: Fix driver initialization failure
  mlxsw: spectrum_buffers: Fix memory corruptions on Spectrum-4 systems

 .../ethernet/mellanox/mlxsw/core_thermal.c    | 50 ++++++++++---------
 drivers/net/ethernet/mellanox/mlxsw/pci.c     | 18 +++++--
 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  2 +
 .../mellanox/mlxsw/spectrum_buffers.c         | 20 +++++---
 4 files changed, 57 insertions(+), 33 deletions(-)

-- 
2.45.0


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH net 0/3] mlxsw: Fixes
@ 2024-04-16 10:24 Petr Machata
  0 siblings, 0 replies; 9+ messages in thread
From: Petr Machata @ 2024-04-16 10:24 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev
  Cc: Ido Schimmel, Petr Machata, mlxsw

This patchset fixes the following issues:

- During driver de-initialization the driver unregisters the EMAD
  response trap by setting its action to DISCARD. However the manual
  only permits TRAP and FORWARD, and future firmware versions will
  enforce this.

  In patch #1, suppress the error message by aligning the driver to the
  manual and use a FORWARD (NOP) action when unregistering the trap.

- The driver queries the Management Capabilities Mask (MCAM) register
  during initialization to understand if certain features are supported.

  However, not all firmware versions support this register, leading to
  the driver failing to load.

  Patches #2 and #3 fix this issue by treating an error in the register
  query as an indication that the feature is not supported.

Ido Schimmel (3):
  mlxsw: core: Unregister EMAD trap using FORWARD action
  mlxsw: core_env: Fix driver initialization with old firmware
  mlxsw: pci: Fix driver initialization with old firmware

 drivers/net/ethernet/mellanox/mlxsw/core.c     |  2 +-
 drivers/net/ethernet/mellanox/mlxsw/core_env.c | 10 ++++------
 drivers/net/ethernet/mellanox/mlxsw/pci.c      | 10 ++++------
 3 files changed, 9 insertions(+), 13 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-19 14:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 16:55 [PATCH net 0/3] mlxsw: Fixes Petr Machata
2024-06-17 16:56 ` [PATCH net 1/3] mlxsw: pci: Fix driver initialization with Spectrum-4 Petr Machata
2024-06-19 14:50   ` Simon Horman
2024-06-17 16:56 ` [PATCH net 2/3] mlxsw: core_thermal: Fix driver initialization failure Petr Machata
2024-06-17 19:53   ` Wysocki, Rafael J
2024-06-18  6:55     ` Ido Schimmel
2024-06-17 16:56 ` [PATCH net 3/3] mlxsw: spectrum_buffers: Fix memory corruptions on Spectrum-4 systems Petr Machata
2024-06-19 14:51   ` Simon Horman
  -- strict thread matches above, loose matches on Subject: below --
2024-04-16 10:24 [PATCH net 0/3] mlxsw: Fixes Petr Machata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).