Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+16 -4
+2 -4
MAINTAINERS
··· 20108 20108 F: drivers/pci/controller/pci-aardvark.c 20109 20109 20110 20110 PCI DRIVER FOR ALTERA PCIE IP 20111 - M: Joyce Ooi <joyce.ooi@intel.com> 20112 20111 L: linux-pci@vger.kernel.org 20113 - S: Supported 20112 + S: Orphan 20114 20113 F: Documentation/devicetree/bindings/pci/altr,pcie-root-port.yaml 20115 20114 F: drivers/pci/controller/pcie-altera.c 20116 20115 ··· 20354 20355 F: Documentation/PCI/pci-error-recovery.rst 20355 20356 20356 20357 PCI MSI DRIVER FOR ALTERA MSI IP 20357 - M: Joyce Ooi <joyce.ooi@intel.com> 20358 20358 L: linux-pci@vger.kernel.org 20359 - S: Supported 20359 + S: Orphan 20360 20360 F: Documentation/devicetree/bindings/interrupt-controller/altr,msi-controller.yaml 20361 20361 F: drivers/pci/controller/pcie-altera-msi.c 20362 20362
+7
arch/powerpc/kernel/pci_of_scan.c
··· 212 212 dev->error_state = pci_channel_io_normal; 213 213 dev->dma_mask = 0xffffffff; 214 214 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 + 215 222 /* Early fixups, before probing the BARs */ 216 223 pci_fixup_device(pci_fixup_early, dev); 217 224
+7
arch/sparc/kernel/pci.c
··· 355 355 dev->error_state = pci_channel_io_normal; 356 356 dev->dma_mask = 0xffffffff; 357 357 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 + 358 365 if (of_node_name_eq(node, "pci")) { 359 366 /* a PCI-PCI bridge */ 360 367 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;