netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] mlxsw: Introduce modular system support by minimal driver
@ 2022-08-21 16:20 Petr Machata
  2022-08-21 16:20 ` [PATCH net-next 1/8] mlxsw: core_linecards: Separate line card init and fini flow Petr Machata
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Petr Machata @ 2022-08-21 16:20 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev
  Cc: Vadim Pasternak, Ido Schimmel, mlxsw, Petr Machata

Vadim Pasternak writes:

This patchset adds line cards support in mlxsw_minimal, which is used
for monitoring purposes on BMC systems. The BMC is connected to the
ASIC over I2C bus, unlike the host CPU that is connected to the ASIC
via PCI bus.

The BMC system needs to be notified whenever line cards become active
or inactive, so that, for example, netdevs will be registered /
unregistered by mlxsw_minimal. However, traps cannot be generated
towards the BMC over the I2C bus. To overcome that, the I2C bus driver
(i.e., mlxsw_i2c) registers an handler for an IRQ that is fired upon
specific system wide changes, like line card activation and
deactivation.

The generated event is handled by mlxsw_core, which checks whether
anything changed in the state of available line cards. If a line card
becomes active or inactive, interested parties such as mlxsw_minimal
are notified via their registered line card event callback.

Patch set overview:

Patches #1 is preparations.

Patches #2-#3 extend mlxsw_core with an infrastructure to handle the
	previously mentioned system events.

Patch #4 extends the I2C bus driver to register an handler for the IRQ
	fired upon specific system wide changes.

Patches #5-#8 gradually add line cards support in mlxsw_minimal by
	dynamically registering / unregistering netdevs for ports found on
	line cards, whenever a line card becomes active / inactive.

Vadim Pasternak (8):
  mlxsw: core_linecards: Separate line card init and fini flow
  mlxsw: core: Add registration APIs for system event handler
  mlxsw: core_linecards: Register a system event handler
  mlxsw: i2c: Add support for system interrupt handling
  mlxsw: minimal: Extend APIs with slot index for modular system support
  mlxsw: minimal: Move ports allocation to separate routine
  mlxsw: minimal: Extend module to port mapping with slot index
  mlxsw: minimal: Extend to support line card dynamic operations

 drivers/net/ethernet/mellanox/mlxsw/core.c    |  68 ++++
 drivers/net/ethernet/mellanox/mlxsw/core.h    |   8 +
 .../ethernet/mellanox/mlxsw/core_linecards.c  | 100 +++--
 drivers/net/ethernet/mellanox/mlxsw/i2c.c     |  87 +++-
 drivers/net/ethernet/mellanox/mlxsw/minimal.c | 381 ++++++++++++++----
 5 files changed, 552 insertions(+), 92 deletions(-)

-- 
2.35.3


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

end of thread, other threads:[~2022-08-24  0:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-21 16:20 [PATCH net-next 0/8] mlxsw: Introduce modular system support by minimal driver Petr Machata
2022-08-21 16:20 ` [PATCH net-next 1/8] mlxsw: core_linecards: Separate line card init and fini flow Petr Machata
2022-08-21 16:20 ` [PATCH net-next 2/8] mlxsw: core: Add registration APIs for system event handler Petr Machata
2022-08-21 16:20 ` [PATCH net-next 3/8] mlxsw: core_linecards: Register a " Petr Machata
2022-08-21 16:20 ` [PATCH net-next 4/8] mlxsw: i2c: Add support for system interrupt handling Petr Machata
2022-08-22  1:48   ` Andrew Lunn
2022-08-22 11:53     ` Vadim Pasternak
2022-08-21 16:20 ` [PATCH net-next 5/8] mlxsw: minimal: Extend APIs with slot index for modular system support Petr Machata
2022-08-21 16:20 ` [PATCH net-next 6/8] mlxsw: minimal: Move ports allocation to separate routine Petr Machata
2022-08-21 16:20 ` [PATCH net-next 7/8] mlxsw: minimal: Extend module to port mapping with slot index Petr Machata
2022-08-21 16:20 ` [PATCH net-next 8/8] mlxsw: minimal: Extend to support line card dynamic operations Petr Machata
2022-08-24  0:40 ` [PATCH net-next 0/8] mlxsw: Introduce modular system support by minimal driver patchwork-bot+netdevbpf

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).