powerpc/pci: Drop XIVE restriction on MSI domains
The PowerNV and pSeries platforms now have support for both the XICS and XIVE IRQ domains. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210701132750.1475580-23-clg@kaod.org
This commit is contained in:
committed by
Michael Ellerman
parent
bbb25af8fb
commit
679e30b953
@@ -2332,8 +2332,6 @@ static void pnv_pci_init_ioda_msis(struct pnv_phb *phb)
|
|||||||
pr_info(" Allocated bitmap for %d MSIs (base IRQ 0x%x)\n",
|
pr_info(" Allocated bitmap for %d MSIs (base IRQ 0x%x)\n",
|
||||||
count, phb->msi_base);
|
count, phb->msi_base);
|
||||||
|
|
||||||
/* Only supported by the XIVE driver */
|
|
||||||
if (xive_enabled())
|
|
||||||
pnv_msi_allocate_domains(phb->hose, count);
|
pnv_msi_allocate_domains(phb->hose, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -720,10 +720,6 @@ int pseries_msi_allocate_domains(struct pci_controller *phb)
|
|||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
/* Only supported by the XIVE driver */
|
|
||||||
if (!xive_enabled())
|
|
||||||
return -ENODEV;
|
|
||||||
|
|
||||||
if (!__find_pe_total_msi(phb->dn, &count)) {
|
if (!__find_pe_total_msi(phb->dn, &count)) {
|
||||||
pr_err("PCI: failed to find MSIs for bridge %pOF (domain %d)\n",
|
pr_err("PCI: failed to find MSIs for bridge %pOF (domain %d)\n",
|
||||||
phb->dn, phb->global_number);
|
phb->dn, phb->global_number);
|
||||||
|
|||||||
Reference in New Issue
Block a user