powerpc/pci: Separate SR-IOV Calls
SR-IOV can now be enabled for the powernv platform and pseries platform. Therefore move the appropriate calls to machine dependent code instead of relying on definition at compile time. Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com> Signed-off-by: Juan J. Alvarez <jjalvare@us.ibm.com> Acked-by: Russell Currey <ruscur@russell.cc> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
此提交包含在:
@@ -1692,7 +1692,7 @@ m64_failed:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int pcibios_sriov_disable(struct pci_dev *pdev)
|
||||
int pnv_pcibios_sriov_disable(struct pci_dev *pdev)
|
||||
{
|
||||
pnv_pci_sriov_disable(pdev);
|
||||
|
||||
@@ -1701,7 +1701,7 @@ int pcibios_sriov_disable(struct pci_dev *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
int pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
{
|
||||
/* Allocate PCI data */
|
||||
add_dev_pci_data(pdev);
|
||||
@@ -4019,6 +4019,8 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np,
|
||||
#ifdef CONFIG_PCI_IOV
|
||||
ppc_md.pcibios_fixup_sriov = pnv_pci_ioda_fixup_iov_resources;
|
||||
ppc_md.pcibios_iov_resource_alignment = pnv_pci_iov_resource_alignment;
|
||||
ppc_md.pcibios_sriov_enable = pnv_pcibios_sriov_enable;
|
||||
ppc_md.pcibios_sriov_disable = pnv_pcibios_sriov_disable;
|
||||
#endif
|
||||
|
||||
pci_add_flags(PCI_REASSIGN_ALL_RSRC);
|
||||
|
新增問題並參考
封鎖使用者