powerpc/eeh: Create PE for VFs
This creates PEs for VFs in the weak function pcibios_bus_add_device(). Those PEs for VFs are identified with newly introduced flag EEH_PE_VF so that we treat them differently during EEH recovery. Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

کامیت شده توسط
Michael Ellerman

والد
39218cd00e
کامیت
c29fa27d26
@@ -1503,6 +1503,22 @@ static struct eeh_ops pnv_eeh_ops = {
|
||||
.restore_config = pnv_eeh_restore_config
|
||||
};
|
||||
|
||||
void pcibios_bus_add_device(struct pci_dev *pdev)
|
||||
{
|
||||
struct pci_dn *pdn = pci_get_pdn(pdev);
|
||||
|
||||
if (!pdev->is_virtfn)
|
||||
return;
|
||||
|
||||
/*
|
||||
* The following operations will fail if VF's sysfs files
|
||||
* aren't created or its resources aren't finalized.
|
||||
*/
|
||||
eeh_add_device_early(pdn);
|
||||
eeh_add_device_late(pdev);
|
||||
eeh_sysfs_add_device(pdev);
|
||||
}
|
||||
|
||||
/**
|
||||
* eeh_powernv_init - Register platform dependent EEH operations
|
||||
*
|
||||
|
مرجع در شماره جدید
Block a user