mbox series

[v4,net-next,0/4] ionic: add FLR support

Message ID 20230720190816.15577-1-shannon.nelson@amd.com (mailing list archive)
Headers show
Series ionic: add FLR support | expand

Message

Nelson, Shannon July 20, 2023, 7:08 p.m. UTC
Add support for handing and recovering from a PCI FLR event.
This patchset first moves some code around to make it usable
from multiple paths, then adds the PCI error handler callbacks
for reset_prepare and reset_done.

Example test:
    echo 1 > /sys/bus/pci/devices/0000:2a:00.0/reset

v4:
 - don't remove ionic_dev_teardown() in ionic_probe() in patch 2/4
 - remove clear_bit() change from patch 3/4

v3:
Link: https://lore.kernel.org/netdev/20230717170001.30539-1-shannon.nelson@amd.com/
 - removed first patch, it is already merged into net

v2:
Link: https://lore.kernel.org/netdev/20230713192936.45152-1-shannon.nelson@amd.com/
 - removed redundant pci_save/restore_state() calls

Shannon Nelson (4):
  ionic: extract common bits from ionic_remove
  ionic: extract common bits from ionic_probe
  ionic: pull out common bits from fw_up
  ionic: add FLR recovery support

 .../ethernet/pensando/ionic/ionic_bus_pci.c   | 160 +++++++++++++-----
 .../net/ethernet/pensando/ionic/ionic_lif.c   |  70 +++++---
 .../net/ethernet/pensando/ionic/ionic_lif.h   |   5 +
 3 files changed, 164 insertions(+), 71 deletions(-)

Comments

Simon Horman July 21, 2023, 8:21 a.m. UTC | #1
On Thu, Jul 20, 2023 at 12:08:12PM -0700, Shannon Nelson wrote:
> Add support for handing and recovering from a PCI FLR event.
> This patchset first moves some code around to make it usable
> from multiple paths, then adds the PCI error handler callbacks
> for reset_prepare and reset_done.
> 
> Example test:
>     echo 1 > /sys/bus/pci/devices/0000:2a:00.0/reset
> 
> v4:
>  - don't remove ionic_dev_teardown() in ionic_probe() in patch 2/4
>  - remove clear_bit() change from patch 3/4

Thanks for the updates in v4.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
patchwork-bot+netdevbpf@kernel.org July 24, 2023, 9:50 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Thu, 20 Jul 2023 12:08:12 -0700 you wrote:
> Add support for handing and recovering from a PCI FLR event.
> This patchset first moves some code around to make it usable
> from multiple paths, then adds the PCI error handler callbacks
> for reset_prepare and reset_done.
> 
> Example test:
>     echo 1 > /sys/bus/pci/devices/0000:2a:00.0/reset
> 
> [...]

Here is the summary with links:
  - [v4,net-next,1/4] ionic: extract common bits from ionic_remove
    https://git.kernel.org/netdev/net-next/c/87d7a9f3734f
  - [v4,net-next,2/4] ionic: extract common bits from ionic_probe
    https://git.kernel.org/netdev/net-next/c/0de38d9f1dba
  - [v4,net-next,3/4] ionic: pull out common bits from fw_up
    https://git.kernel.org/netdev/net-next/c/30d2e073964d
  - [v4,net-next,4/4] ionic: add FLR recovery support
    https://git.kernel.org/netdev/net-next/c/a79b559e99be

You are awesome, thank you!