Skip to content

Commit 325a118

Browse files
committed
Merge tag 'pci-v7.0-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
Pull pci fixes from Bjorn Helgaas: - Initialize msi_addr_mask for OF-created PCI devices to fix sparc and powerpc probe regressions (Nilay Shroff) - Orphan the Altera PCIe controller driver (Dave Hansen) * tag 'pci-v7.0-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: MAINTAINERS: Orphan Altera PCIe controller driver sparc/PCI: Initialize msi_addr_mask for OF-created PCI devices powerpc/pci: Initialize msi_addr_mask for OF-created PCI devices
2 parents dfb3142 + 9f2c734 commit 325a118

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

MAINTAINERS

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20108,9 +20108,8 @@ F: Documentation/devicetree/bindings/pci/marvell,armada-3700-pcie.yaml
2010820108
F: drivers/pci/controller/pci-aardvark.c
2010920109

2011020110
PCI DRIVER FOR ALTERA PCIE IP
20111-
M: Joyce Ooi <joyce.ooi@intel.com>
2011220111
L: linux-pci@vger.kernel.org
20113-
S: Supported
20112+
S: Orphan
2011420113
F: Documentation/devicetree/bindings/pci/altr,pcie-root-port.yaml
2011520114
F: drivers/pci/controller/pcie-altera.c
2011620115

@@ -20355,9 +20354,8 @@ S: Supported
2035520354
F: Documentation/PCI/pci-error-recovery.rst
2035620355

2035720356
PCI MSI DRIVER FOR ALTERA MSI IP
20358-
M: Joyce Ooi <joyce.ooi@intel.com>
2035920357
L: linux-pci@vger.kernel.org
20360-
S: Supported
20358+
S: Orphan
2036120359
F: Documentation/devicetree/bindings/interrupt-controller/altr,msi-controller.yaml
2036220360
F: drivers/pci/controller/pcie-altera-msi.c
2036320361

arch/powerpc/kernel/pci_of_scan.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
212212
dev->error_state = pci_channel_io_normal;
213213
dev->dma_mask = 0xffffffff;
214214

215+
/*
216+
* Assume 64-bit addresses for MSI initially. Will be changed to 32-bit
217+
* if MSI (rather than MSI-X) capability does not have
218+
* PCI_MSI_FLAGS_64BIT. Can also be overridden by driver.
219+
*/
220+
dev->msi_addr_mask = DMA_BIT_MASK(64);
221+
215222
/* Early fixups, before probing the BARs */
216223
pci_fixup_device(pci_fixup_early, dev);
217224

arch/sparc/kernel/pci.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
355355
dev->error_state = pci_channel_io_normal;
356356
dev->dma_mask = 0xffffffff;
357357

358+
/*
359+
* Assume 64-bit addresses for MSI initially. Will be changed to 32-bit
360+
* if MSI (rather than MSI-X) capability does not have
361+
* PCI_MSI_FLAGS_64BIT. Can also be overridden by driver.
362+
*/
363+
dev->msi_addr_mask = DMA_BIT_MASK(64);
364+
358365
if (of_node_name_eq(node, "pci")) {
359366
/* a PCI-PCI bridge */
360367
dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;

0 commit comments

Comments
 (0)