[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <7bb4f1f4-c67f-8c7b-86ba-7bf9f74ffc28@solarflare.com>
Date: Thu, 16 Jul 2020 13:57:45 +0100
From: Edward Cree <ecree@...arflare.com>
To: <linux-net-drivers@...arflare.com>, <davem@...emloft.net>
CC: <netdev@...r.kernel.org>
Subject: [PATCH v3 net-next 00/16] sfc_ef100: driver for EF100 family NICs,
part 1
EF100 is a new NIC architecture under development at Xilinx, based
partly on existing Solarflare technology. As many of the hardware
interfaces resemble EF10, the driver is implemented largely through
libraries of code from the 'sfc' driver, which previous patch series
"commonised" for this purpose.
The new driver is called 'sfc_ef100'.
In order to maintain bisectability while splitting into patches of a
reasonable size, I had to do a certain amount of back-and-forth with
stubs for things that the common code may try to call, mainly because
we can't do them until we've set up MCDI, but we can't set up MCDI
without probing the event queues, at which point a lot of the common
machinery becomes reachable from event handlers.
Consequently, this first series doesn't get as far as actually sending
and receiving packets. I have a second series ready to follow it
which implements the datapath (and a few other things like ethtool).
Changes from v2:
* remove MODULE_VERSION.
* call efx_destroy_reset_workqueue() from ef100_exit_module().
* correct uint32_ts to u32s. While I was at it, I fixed a bunch of
other style issues in the function-control-window code.
All in patch #4.
Changes from v1:
* kernel test robot spotted a link error when sfc_ef100 was built
without mdio. It turns out the thing we were trying to link to
was a bogus thing to do on anything but Falcon, so new patch #1
removes it from this driver.
* fix undeclared symbols in patch #4 by shuffling around prototypes
and #includes and adding 'static' where appropriate.
* fix uninitialised variable 'rc2' in patch #7.
Edward Cree (16):
sfc: remove efx_ethtool_nway_reset()
sfc_ef100: add EF100 register definitions
sfc_ef100: register accesses on EF100
sfc_ef100: skeleton EF100 PF driver
sfc_ef100: reset-handling stub
sfc_ef100: PHY probe stub
sfc_ef100: don't call efx_reset_down()/up() on EF100
sfc_ef100: implement MCDI transport
sfc_ef100: implement ndo_open/close and EVQ probing
sfc_ef100: process events for MCDI completions
sfc_ef100: read datapath caps, implement check_caps
sfc_ef100: extend ef100_check_caps to cover datapath_caps3
sfc_ef100: actually perform resets
sfc_ef100: probe the PHY and configure the MAC
sfc_ef100: read device MAC address at probe time
sfc_ef100: implement ndo_get_phys_port_{id,name}
drivers/net/ethernet/sfc/Kconfig | 10 +
drivers/net/ethernet/sfc/Makefile | 8 +
drivers/net/ethernet/sfc/ef10.c | 1 +
drivers/net/ethernet/sfc/ef100.c | 577 ++++++++++++++++++
drivers/net/ethernet/sfc/ef100_ethtool.c | 26 +
drivers/net/ethernet/sfc/ef100_ethtool.h | 12 +
drivers/net/ethernet/sfc/ef100_netdev.c | 280 +++++++++
drivers/net/ethernet/sfc/ef100_netdev.h | 17 +
drivers/net/ethernet/sfc/ef100_nic.c | 620 +++++++++++++++++++
drivers/net/ethernet/sfc/ef100_nic.h | 32 +
drivers/net/ethernet/sfc/ef100_regs.h | 693 ++++++++++++++++++++++
drivers/net/ethernet/sfc/ef100_rx.c | 31 +
drivers/net/ethernet/sfc/ef100_rx.h | 19 +
drivers/net/ethernet/sfc/ef100_tx.c | 63 ++
drivers/net/ethernet/sfc/ef100_tx.h | 22 +
drivers/net/ethernet/sfc/efx.h | 1 -
drivers/net/ethernet/sfc/efx_common.c | 11 +-
drivers/net/ethernet/sfc/ethtool.c | 1 -
drivers/net/ethernet/sfc/ethtool_common.c | 8 -
drivers/net/ethernet/sfc/ethtool_common.h | 1 -
drivers/net/ethernet/sfc/io.h | 16 +-
drivers/net/ethernet/sfc/mcdi.h | 4 +-
drivers/net/ethernet/sfc/net_driver.h | 14 +-
drivers/net/ethernet/sfc/tx_common.h | 2 +
24 files changed, 2449 insertions(+), 20 deletions(-)
create mode 100644 drivers/net/ethernet/sfc/ef100.c
create mode 100644 drivers/net/ethernet/sfc/ef100_ethtool.c
create mode 100644 drivers/net/ethernet/sfc/ef100_ethtool.h
create mode 100644 drivers/net/ethernet/sfc/ef100_netdev.c
create mode 100644 drivers/net/ethernet/sfc/ef100_netdev.h
create mode 100644 drivers/net/ethernet/sfc/ef100_nic.c
create mode 100644 drivers/net/ethernet/sfc/ef100_nic.h
create mode 100644 drivers/net/ethernet/sfc/ef100_regs.h
create mode 100644 drivers/net/ethernet/sfc/ef100_rx.c
create mode 100644 drivers/net/ethernet/sfc/ef100_rx.h
create mode 100644 drivers/net/ethernet/sfc/ef100_tx.c
create mode 100644 drivers/net/ethernet/sfc/ef100_tx.h
Powered by blists - more mailing lists