[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200802100834.383-1-irusskikh@marvell.com>
Date: Sun, 2 Aug 2020 13:08:24 +0300
From: Igor Russkikh <irusskikh@...vell.com>
To: <netdev@...r.kernel.org>
CC: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Ariel Elior <aelior@...vell.com>,
Michal Kalderon <mkalderon@...vell.com>,
Denis Bolotin <dbolotin@...vell.com>,
Jiri Pirko <jiri@...nulli.us>,
Igor Russkikh <irusskikh@...vell.com>
Subject: [PATCH v5 net-next 00/10] qed: introduce devlink health support
This is a followup implementation after series
https://patchwork.ozlabs.org/project/netdev/cover/20200514095727.1361-1-irusskikh@marvell.com/
This is an implementation of devlink health infrastructure.
With this we are now able to report HW errors to devlink, and it'll take
its own actions depending on user configuration to capture and store the
dump at the bad moment, and to request the driver to recover the device.
So far we do not differentiate global device failures or specific PCI
function failures. This means that some errors specific to one physical
function will affect an entire device. This is not yet fully designed
and verified, will followup in future.
Solution was verified with artificial HW errors generated, existing
tools for dump analysis could be used.
v5: improved patch 4 description
v4:
- commit message and other fixes after Jiri's comments
- removed one patch (will send to net)
v3: fix uninit var usage in patch 11
v2: fix #include issue from kbuild test robot.
Igor Russkikh (10):
qed: move out devlink logic into a new file
qed/qede: make devlink survive recovery
qed: fix kconfig help entries
qed: implement devlink info request
qed: health reporter init deinit seq
qed: use devlink logic to report errors
qed*: make use of devlink recovery infrastructure
qed: implement devlink dump
qed: align adjacent indent
qede: make driver reliable on unload after failures
drivers/net/ethernet/qlogic/Kconfig | 5 +-
drivers/net/ethernet/qlogic/qed/Makefile | 1 +
drivers/net/ethernet/qlogic/qed/qed.h | 3 +-
drivers/net/ethernet/qlogic/qed/qed_dev.c | 9 +
drivers/net/ethernet/qlogic/qed/qed_devlink.c | 259 ++++++++++++++++++
drivers/net/ethernet/qlogic/qed/qed_devlink.h | 20 ++
drivers/net/ethernet/qlogic/qed/qed_main.c | 116 +-------
drivers/net/ethernet/qlogic/qede/qede.h | 2 +
drivers/net/ethernet/qlogic/qede/qede_main.c | 38 ++-
include/linux/qed/qed_if.h | 23 +-
10 files changed, 347 insertions(+), 129 deletions(-)
create mode 100644 drivers/net/ethernet/qlogic/qed/qed_devlink.c
create mode 100644 drivers/net/ethernet/qlogic/qed/qed_devlink.h
--
2.17.1
Powered by blists - more mailing lists