[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3d9822ba-e692-e779-3ecb-bb284fa2a733@igalia.com>
Date: Tue, 20 Jun 2023 12:05:21 -0300
From: "Guilherme G. Piccoli" <gpiccoli@...lia.com>
To: Kai-Heng Feng <kai.heng.feng@...onical.com>,
jesse.brandeburg@...el.com, anthony.l.nguyen@...el.com
Cc: linux-pci@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Kees Cook <keescook@...omium.org>,
Tony Luck <tony.luck@...el.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] igc: Ignore AER reset when device is suspended
On 20/06/2023 14:36, Kai-Heng Feng wrote:
> [...]
> So avoid resetting the device if it's not resumed. Once the device is
> fully resumed, the device can work normally.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216850
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@...onical.com>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> index fa764190f270..6a46f886ff43 100644
> --- a/drivers/net/ethernet/intel/igc/igc_main.c
> +++ b/drivers/net/ethernet/intel/igc/igc_main.c
> @@ -6962,6 +6962,9 @@ static pci_ers_result_t igc_io_error_detected(struct pci_dev *pdev,
> struct net_device *netdev = pci_get_drvdata(pdev);
> struct igc_adapter *adapter = netdev_priv(netdev);
>
> + if (!pci_is_enabled(pdev))
> + return 0;
> +
> netif_device_detach(netdev);
>
> if (state == pci_channel_io_perm_failure)
Makes perfect sense to me, based on the days I've worked a lot with PCI
resets and whatnot heh
Feel free to add:
Reviewed-by: Guilherme G. Piccoli <gpiccoli@...lia.com>
Cheers!
Powered by blists - more mailing lists