# git rev-parse -q --verify 942523fd67563ea677cc03fc97635893d4350749^{commit} 942523fd67563ea677cc03fc97635893d4350749 already have revision, skipping fetch # git checkout -q -f -B kisskb 942523fd67563ea677cc03fc97635893d4350749 # git clean -qxdf # < git log -1 # commit 942523fd67563ea677cc03fc97635893d4350749 # Author: Oliver O'Halloran # Date: Wed Nov 13 20:40:35 2019 +1100 # # powerpc/powernv: Disable native PCIe port management # # On PowerNV the PCIe topology is (currently) managed by the powernv # platform code in cooperation with firmware. The PCIe-native service # drivers bypass both and this can cause problems. # # Historically this hasn't been a big deal since the only port service # driver that saw much use was the AER driver. The AER driver relies on # a kernel service to report when errors occur rather than acting # autonomously so it's fairly easy to ignore. On PowerNV (and pseries) # AER events are handled through EEH, which ignores the AER service, so # it's never been an issue. # # Unfortunately, the hotplug port service driver (pciehp) does act # autonomously and conflicts with the platform specific hotplug # driver (pnv_php). The main issue is that pciehp claims the interrupt # associated with the PCIe capability which in turn prevents pnv_php # from claiming it. # # This results in hotplug events being handled by pciehp which does not # notify firmware when the PCIe topology changes, and does not # setup/teardown the arch specific PCI device structures (pci_dn) when # the topology changes. The end result is that hot-added devices cannot # be enabled and hot-removed devices may not be fully torn-down on # removal. # # We can fix these problems by setting the "pcie_ports_disabled" flag # during platform initialisation. The flag indicates the platform owns # the PCIe ports which stops the portbus driver from being registered. # # Fixes: 66725152fb9f ("PCI/hotplug: PowerPC PowerNV PCI hotplug driver") # Signed-off-by: Oliver O'Halloran # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20191113094035.22394-1-oohall@gmail.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 942523fd67563ea677cc03fc97635893d4350749 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/virtex440-ml510.dts:335.37-439.6: Warning (pci_bridge): /plb@0/plbv46-pci@85e00000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/virtex440-ml510.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/katmai.dts:322.26-361.5: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:363.26-402.5: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:404.26-443.5: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5515b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x561cc8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2743625 Bytes = 2679.32 KiB = 2.62 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2775247 Bytes = 2710.20 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2775238 Bytes = 2710.19 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 0060152c Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2773985 Bytes = 2708.97 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 006001b8 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2775351 Bytes = 2710.30 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 006000c4 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774044 Bytes = 2709.03 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601524 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774064 Bytes = 2709.05 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601544 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2773872 Bytes = 2708.86 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774119 Bytes = 2709.10 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.4.0-rc2-g942523fd6756 Created: Sat Nov 16 00:58:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2775273 Bytes = 2710.23 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601514 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 # Build took: 0:00:53.923423