# git rev-parse -q --verify be8d3292869350190dac9cd58c75bc005e3fd5c2^{commit} be8d3292869350190dac9cd58c75bc005e3fd5c2 already have revision, skipping fetch # git checkout -q -f -B kisskb be8d3292869350190dac9cd58c75bc005e3fd5c2 # git clean -qxdf # < git log -1 # commit be8d3292869350190dac9cd58c75bc005e3fd5c2 # 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/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 be8d3292869350190dac9cd58c75bc005e3fd5c2 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/soc-pcm.c: In function 'soc_pcm_trigger': /kisskb/src/sound/soc/soc-pcm.c:1074:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/soc-pcm.c: In function 'soc_pcm_bespoke_trigger': /kisskb/src/sound/soc/soc-pcm.c:1092:9: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1497:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /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 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39830) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915316 Bytes = 5776.68 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915600 Bytes = 5776.95 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915315 Bytes = 5776.67 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915363 Bytes = 5776.72 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 INFO: Uncompressed kernel (size 0xc29068) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915294 Bytes = 5776.65 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5880750 Bytes = 5742.92 KiB = 5.61 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915320 Bytes = 5776.68 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915300 Bytes = 5776.66 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5914340 Bytes = 5775.72 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5914953 Bytes = 5776.32 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915248 Bytes = 5776.61 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915311 Bytes = 5776.67 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915616 Bytes = 5776.97 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915322 Bytes = 5776.68 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915373 Bytes = 5776.73 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc2-gbe8d32928693 Created: Mon Nov 18 23:04:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5915058 Bytes = 5776.42 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc4.6 # Build took: 0:01:53.616951