powerpc/eeh: Make permanently failed devices non-actionable
If a device is torn down by a hotplug slot driver it's marked as removed and marked as permaantly failed. There's no point in trying to recover a permernantly failed device so it should be considered un-actionable. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190903101605.2890-4-oohall@gmail.com
This commit is contained in:
parent
5ef753ae43
commit
38ddc01147
@ -96,8 +96,16 @@ static bool eeh_dev_removed(struct eeh_dev *edev)
|
|||||||
|
|
||||||
static bool eeh_edev_actionable(struct eeh_dev *edev)
|
static bool eeh_edev_actionable(struct eeh_dev *edev)
|
||||||
{
|
{
|
||||||
return (edev->pdev && !eeh_dev_removed(edev) &&
|
if (!edev->pdev)
|
||||||
!eeh_pe_passed(edev->pe));
|
return false;
|
||||||
|
if (edev->pdev->error_state == pci_channel_io_perm_failure)
|
||||||
|
return false;
|
||||||
|
if (eeh_dev_removed(edev))
|
||||||
|
return false;
|
||||||
|
if (eeh_pe_passed(edev->pe))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user