# git rev-parse -q --verify cfe255e01d0d6bf2a23d46613c3d4cfe4505dd02^{commit} cfe255e01d0d6bf2a23d46613c3d4cfe4505dd02 already have revision, skipping fetch # git checkout -q -f -B kisskb cfe255e01d0d6bf2a23d46613c3d4cfe4505dd02 # git clean -qxdf # < git log -1 # commit cfe255e01d0d6bf2a23d46613c3d4cfe4505dd02 # Author: Oliver O'Halloran # Date: Mon Nov 18 17:55:53 2019 +1100 # # powerpc/powernv: Disable native PCIe port management # # On PowerNV the PCIe topology is (currently) managed by the powernv platform # code in Linux in cooperation with the platform firmware. Linux's native # PCIe port service drivers operate independently of both and this can cause # problems. # # The main issue is that the portbus driver will conflict with the platform # specific hotplug driver (pnv_php) over ownership of the MSI used to notify # the host when a hotplug event occurs. The portbus driver claims this MSI on # behalf of the individual port services because the same interrupt is used # for hotplug events, PMEs (on root ports), and link bandwidth change # notifications. The portbus driver will always claim the interrupt even if # the individual port service drivers, such as pciehp, are compiled out. # # The second, bigger, problem is that the hotplug port service driver # fundamentally does not work on PowerNV. The platform assumes that all # PCI devices have a corresponding arch-specific handle derived from the DT # node for the device (pci_dn) and without one the platform will not allow # a PCI device to be enabled. This problem is largely due to historical # baggage, but it can't be resolved without significant re-factoring of the # platform PCI support. # # We can fix these problems in the interim 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. # # This does have the side effect of disabling all port services drivers # that is: AER, PME, BW notifications, hotplug, and DPC. However, this is # not a huge disadvantage on PowerNV since these services are either unused # or handled through other means. # # 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/20191118065553.30362-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 cfe255e01d0d6bf2a23d46613c3d4cfe4505dd02 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc5328) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323528 Bytes = 6175.32 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323537 Bytes = 6175.33 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323863 Bytes = 6175.65 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323651 Bytes = 6175.44 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323530 Bytes = 6175.32 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323487 Bytes = 6175.28 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6324666 Bytes = 6176.43 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323691 Bytes = 6175.48 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323804 Bytes = 6175.59 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323571 Bytes = 6175.36 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6293358 Bytes = 6145.86 KiB = 6.00 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323667 Bytes = 6175.46 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323649 Bytes = 6175.44 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6324632 Bytes = 6176.40 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323689 Bytes = 6175.48 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-gcfe255e01d0d6 Created: Tue Nov 19 23:04:18 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323695 Bytes = 6175.48 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:01:18.806193