[PATCH net 0/6] pds_core: Various fixes

From: Brett Creeley
Date: Mon Jan 29 2024 - 18:41:17 EST


This series includes the following changes:

There can be many users of the pds_core's adminq. This includes
pds_core's uses and any clients that depend on it. When the pds_core
device goes through a reset for any reason the adminq is freed
and reconfigured. There are some gaps in the current implementation
that will cause crashes during reset if any of the previously mentioned
users of the adminq attempt to use it after it's been freed.

Issues around how resets are handled, specifically regarding the driver's
error handlers.

Originally these patches were aimed at net-next, but it was requested to
push the fixes patches to net. The original patches can be found here:

https://lore.kernel.org/netdev/20240126174255.17052-1-brett.creeley@xxxxxxx/

Also, the Reviewed-by tags were left in place from net-next reviews as the
patches didn't change.

Brett Creeley (6):
pds_core: Prevent health thread from running during reset/remove
pds_core: Cancel AQ work on teardown
pds_core: Use struct pdsc for the pdsc_adminq_isr private data
pds_core: Prevent race issues involving the adminq
pds_core: Clear BARs on reset
pds_core: Rework teardown/setup flow to be more common

drivers/net/ethernet/amd/pds_core/adminq.c | 64 +++++++++++++++------
drivers/net/ethernet/amd/pds_core/core.c | 46 +++++++++++----
drivers/net/ethernet/amd/pds_core/core.h | 2 +-
drivers/net/ethernet/amd/pds_core/debugfs.c | 4 ++
drivers/net/ethernet/amd/pds_core/dev.c | 16 +++---
drivers/net/ethernet/amd/pds_core/devlink.c | 3 +-
drivers/net/ethernet/amd/pds_core/fw.c | 3 +
drivers/net/ethernet/amd/pds_core/main.c | 26 +++++++--
8 files changed, 124 insertions(+), 40 deletions(-)

--
2.17.1