* [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors]
[not found] <20180418175613.GA2121@korriban>
@ 2018-04-18 18:14 ` Guilherme G. Piccoli
2018-04-23 18:51 ` Mauro Rodrigues
0 siblings, 1 reply; 3+ messages in thread
From: Guilherme G. Piccoli @ 2018-04-18 18:14 UTC (permalink / raw)
To: intel-wired-lan
Thanks Mauro, nice fix! A minor suggestion below.
Other than that, feel free to add:
Reviewed-by: Guilherme G. Piccoli <kernel@gpiccoli.net>
>
> [...]
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> index afadba9..d170de8 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> @@ -6679,7 +6679,8 @@ int ixgbe_close(struct net_device *netdev)
>
> ixgbe_ptp_stop(adapter);
>
> - if (netif_device_present(netdev))
> + if (netif_device_present(netdev) ||
> + adapter->pdev->error_state == pci_channel_io_perm_failure)
How about using pci_channel_offline() here instead of manually
checking the error_state flag? It's a minor though heheh
Cheers,
Guilherme
> ixgbe_close_suspend(adapter);
>
> ixgbe_fdir_filter_exit(adapter);
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors]
2018-04-18 18:14 ` [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors] Guilherme G. Piccoli
@ 2018-04-23 18:51 ` Mauro Rodrigues
2018-04-26 13:40 ` Guilherme Piccoli
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Rodrigues @ 2018-04-23 18:51 UTC (permalink / raw)
To: intel-wired-lan
Hi Guilherme, thanks for your review, answer to your suggestion is
inline.
On Wed, Apr 18, 2018 at 03:14:14PM -0300, Guilherme G. Piccoli wrote:
> Thanks Mauro, nice fix! A minor suggestion below.
> Other than that, feel free to add:
>
> Reviewed-by: Guilherme G. Piccoli <kernel@gpiccoli.net>
>
> >
> > [...]
> >diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> >index afadba9..d170de8 100644
> >--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> >+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> >@@ -6679,7 +6679,8 @@ int ixgbe_close(struct net_device *netdev)
> >
> > ixgbe_ptp_stop(adapter);
> >
> >- if (netif_device_present(netdev))
> >+ if (netif_device_present(netdev) ||
> >+ adapter->pdev->error_state == pci_channel_io_perm_failure)
>
> How about using pci_channel_offline() here instead of manually
> checking the error_state flag? It's a minor though heheh
So the thing here is that I want to proceed through out this path only
when the device is in pci_channle_io_perm_failure. Looking at the
function you suggested there is a third state that would return True
here which is pci_channel_io_frozen, it's also a concern that this list
of possible values can increase eventually as well, so I would rather
keep this as is.
I've just realized that I need to fix this in ixgbevf as well, so I'll
send a second version of this one soon.
Thanks,
Mauro
>
> Cheers,
>
>
> Guilherme
>
> > ixgbe_close_suspend(adapter);
> >
> > ixgbe_fdir_filter_exit(adapter);
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors]
2018-04-23 18:51 ` Mauro Rodrigues
@ 2018-04-26 13:40 ` Guilherme Piccoli
0 siblings, 0 replies; 3+ messages in thread
From: Guilherme Piccoli @ 2018-04-26 13:40 UTC (permalink / raw)
To: intel-wired-lan
Perfect Mauro, thanks for answer, makes sense!
Cheers,
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20180426/be3911e9/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-26 13:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180418175613.GA2121@korriban>
2018-04-18 18:14 ` [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors] Guilherme G. Piccoli
2018-04-23 18:51 ` Mauro Rodrigues
2018-04-26 13:40 ` Guilherme Piccoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox