# git rev-parse -q --verify 72cdd117c449896c707fc6cfe5b90978160697d0^{commit} 72cdd117c449896c707fc6cfe5b90978160697d0 already have revision, skipping fetch # git checkout -q -f -B kisskb 72cdd117c449896c707fc6cfe5b90978160697d0 # git clean -qxdf # < git log -1 # commit 72cdd117c449896c707fc6cfe5b90978160697d0 # Author: Scott Cheloha # Date: Wed Sep 16 09:51:22 2020 -0500 # # pseries/hotplug-memory: hot-add: skip redundant LMB lookup # # During memory hot-add, dlpar_add_lmb() calls memory_add_physaddr_to_nid() # to determine which node id (nid) to use when later calling __add_memory(). # # This is wasteful. On pseries, memory_add_physaddr_to_nid() finds an # appropriate nid for a given address by looking up the LMB containing the # address and then passing that LMB to of_drconf_to_nid_single() to get the # nid. In dlpar_add_lmb() we get this address from the LMB itself. # # In short, we have a pointer to an LMB and then we are searching for # that LMB *again* in order to find its nid. # # If we call of_drconf_to_nid_single() directly from dlpar_add_lmb() we # can skip the redundant lookup. The only error handling we need to # duplicate from memory_add_physaddr_to_nid() is the fallback to the # default nid when drconf_to_nid_single() returns -1 (NUMA_NO_NODE) or # an invalid nid. # # Skipping the extra lookup makes hot-add operations faster, especially # on machines with many LMBs. # # Consider an LPAR with 126976 LMBs. In one test, hot-adding 126000 # LMBs on an upatched kernel took ~3.5 hours while a patched kernel # completed the same operation in ~2 hours: # # Unpatched (12450 seconds): # Sep 9 04:06:31 ltc-brazos1 drmgr[810169]: drmgr: -c mem -a -q 126000 # Sep 9 04:06:31 ltc-brazos1 kernel: pseries-hotplug-mem: Attempting to hot-add 126000 LMB(s) # [...] # Sep 9 07:34:01 ltc-brazos1 kernel: pseries-hotplug-mem: Memory at 20000000 (drc index 80000002) was hot-added # # Patched (7065 seconds): # Sep 8 21:49:57 ltc-brazos1 drmgr[877703]: drmgr: -c mem -a -q 126000 # Sep 8 21:49:57 ltc-brazos1 kernel: pseries-hotplug-mem: Attempting to hot-add 126000 LMB(s) # [...] # Sep 8 23:27:42 ltc-brazos1 kernel: pseries-hotplug-mem: Memory at 20000000 (drc index 80000002) was hot-added # # It should be noted that the speedup grows more substantial when # hot-adding LMBs at the end of the drconf range. This is because we # are skipping a linear LMB search. # # To see the distinction, consider smaller hot-add test on the same # LPAR. A perf-stat run with 10 iterations showed that hot-adding 4096 # LMBs completed less than 1 second faster on a patched kernel: # # Unpatched: # Performance counter stats for 'drmgr -c mem -a -q 4096' (10 runs): # # 104,753.42 msec task-clock # 0.992 CPUs utilized ( +- 0.55% ) # 4,708 context-switches # 0.045 K/sec ( +- 0.69% ) # 2,444 cpu-migrations # 0.023 K/sec ( +- 1.25% ) # 394 page-faults # 0.004 K/sec ( +- 0.22% ) # 445,902,503,057 cycles # 4.257 GHz ( +- 0.55% ) (66.67%) # 8,558,376,740 stalled-cycles-frontend # 1.92% frontend cycles idle ( +- 0.88% ) (49.99%) # 300,346,181,651 stalled-cycles-backend # 67.36% backend cycles idle ( +- 0.76% ) (50.01%) # 258,091,488,691 instructions # 0.58 insn per cycle # # 1.16 stalled cycles per insn ( +- 0.22% ) (66.67%) # 70,568,169,256 branches # 673.660 M/sec ( +- 0.17% ) (50.01%) # 3,100,725,426 branch-misses # 4.39% of all branches ( +- 0.20% ) (49.99%) # # 105.583 +- 0.589 seconds time elapsed ( +- 0.56% ) # # Patched: # Performance counter stats for 'drmgr -c mem -a -q 4096' (10 runs): # # 104,055.69 msec task-clock # 0.993 CPUs utilized ( +- 0.32% ) # 4,606 context-switches # 0.044 K/sec ( +- 0.20% ) # 2,463 cpu-migrations # 0.024 K/sec ( +- 0.93% ) # 394 page-faults # 0.004 K/sec ( +- 0.25% ) # 442,951,129,921 cycles # 4.257 GHz ( +- 0.32% ) (66.66%) # 8,710,413,329 stalled-cycles-frontend # 1.97% frontend cycles idle ( +- 0.47% ) (50.06%) # 299,656,905,836 stalled-cycles-backend # 67.65% backend cycles idle ( +- 0.39% ) (50.02%) # 252,731,168,193 instructions # 0.57 insn per cycle # # 1.19 stalled cycles per insn ( +- 0.20% ) (66.66%) # 68,902,851,121 branches # 662.173 M/sec ( +- 0.13% ) (49.94%) # 3,100,242,882 branch-misses # 4.50% of all branches ( +- 0.15% ) (49.98%) # # 104.829 +- 0.325 seconds time elapsed ( +- 0.31% ) # # This is consistent. An add-by-count hot-add operation adds LMBs # greedily, so LMBs near the start of the drconf range are considered # first. On an otherwise idle LPAR with so many LMBs we would expect to # find the LMBs we need near the start of the drconf range, hence the # smaller speedup. # # Signed-off-by: Scott Cheloha # Reviewed-by: Laurent Dufour # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200916145122.3408129-1-cheloha@linux.ibm.com # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 72cdd117c449896c707fc6cfe5b90978160697d0 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64_book3e_allmodconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_book3e_allmodconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64_book3e_allmodconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/stxssa8555.dts:329.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/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/o2dnt2.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 arch/powerpc/boot/dts/o2dnt2.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/o3dnt.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 arch/powerpc/boot/dts/o3dnt.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/p2020rdb.dts:251.22-254.4: Warning (pci_bridge): /pcie@ffe08000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi:43.7-68.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi:52.9-67.4: Warning (pci_bridge): /pcie@ffe08000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/p2020rdb.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:135.22-137.4: Warning (pci_bridge): /pcie@f1008000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:92.7-117.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:102.9-116.4: Warning (pci_bridge): /pcie@f1008000/pcie@0: missing ranges for PCI bridge (or not a bridge) /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:139.22-141.4: Warning (pci_bridge): /pcie@f1009000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:119.7-144.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:129.9-143.4: Warning (pci_bridge): /pcie@f1009000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:30.11-32.6: Warning (i2c_bus_reg): /soc@f1000000/i2c@3000/rtc@68: missing or empty reg property /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/uc101.dts:100.15-102.4 arch/powerpc/boot/dts/uc101.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@ffe00000/mdio@24000/ethernet-phy@0:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@ffe00000/mdio@24000/ethernet-phy@1:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@fffe00000/mdio@24000/ethernet-phy@0:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@fffe00000/mdio@24000/ethernet-phy@1:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@fffe00000/mdio@24000/ethernet-phy@0:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@fffe00000/mdio@24000/ethernet-phy@1:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/xpedite5200_xmon.dts:139.11-142.6: Warning (i2c_bus_reg): /soc@ef000000/i2c@3000/dtt@48: I2C bus unit address format error, expected "34" /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) /kisskb/src/arch/powerpc/boot/dts/fsl/p1020rdb-pd.dts:189.11-193.6: Warning (spi_bus_reg): /soc@ffe00000/spi@7000/slic@0: SPI bus unit address format error, expected "1" /kisskb/src/arch/powerpc/boot/dts/fsl/p1020rdb-pd.dts:195.11-199.6: Warning (spi_bus_reg): /soc@ffe00000/spi@7000/slic@1: SPI bus unit address format error, expected "2" /kisskb/src/arch/powerpc/boot/dts/mpc5121.dtsi:457.13-466.5: Warning (spi_bus_bridge): /soc@80000000/psc@11900: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/pdm360ng.dts:172.13-185.5 arch/powerpc/boot/dts/pdm360ng.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/o2d300.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 arch/powerpc/boot/dts/o2d300.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@ffe00000/mdio@24000/ethernet-phy@0:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi:38.2-25: Warning (interrupts_property): /soc@ffe00000/mdio@24000/ethernet-phy@1:#interrupt-cells: size is (8), expected multiple of 16 /kisskb/src/arch/powerpc/boot/dts/fsl/gef_sbc610.dts:209.22-211.4: Warning (pci_bridge): /pcie@fef09000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:119.7-144.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:129.9-143.4: Warning (pci_bridge): /pcie@fef09000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/gef_sbc610.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/o2d.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 arch/powerpc/boot/dts/o2d.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5121.dtsi:397.13-406.5: Warning (spi_bus_bridge): /soc@80000000/psc@11400: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/ac14xx.dts:305.19-326.5 /kisskb/src/arch/powerpc/boot/dts/mpc5121.dtsi:409.13-418.5: Warning (spi_bus_bridge): /soc@80000000/psc@11500: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/ac14xx.dts:329.19-344.5 arch/powerpc/boot/dts/ac14xx.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/cm5200.dts:70.15-72.4 arch/powerpc/boot/dts/cm5200.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/motionpro.dts:84.15-86.4 arch/powerpc/boot/dts/motionpro.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/xpedite5200.dts:135.11-138.6: Warning (i2c_bus_reg): /soc@ef000000/i2c@3000/dtt@48: I2C bus unit address format error, expected "34" /kisskb/src/arch/powerpc/boot/dts/fsl/gef_ppc9a.dts:211.22-213.4: Warning (pci_bridge): /pcie@fef09000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:119.7-144.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:129.9-143.4: Warning (pci_bridge): /pcie@fef09000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/gef_ppc9a.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/o2i.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 arch/powerpc/boot/dts/o2i.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/oca4080.dts:132.23-134.4: Warning (pci_bridge): /pcie@ffe200000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p4080si-post.dtsi:58.7-84.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p4080si-post.dtsi:68.9-83.4: Warning (pci_bridge): /pcie@ffe200000/pcie@0: missing ranges for PCI bridge (or not a bridge) /kisskb/src/arch/powerpc/boot/dts/fsl/oca4080.dts:136.23-138.4: Warning (pci_bridge): /pcie@ffe201000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p4080si-post.dtsi:87.7-113.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p4080si-post.dtsi:97.9-112.4: Warning (pci_bridge): /pcie@ffe201000/pcie@0: missing ranges for PCI bridge (or not a bridge) /kisskb/src/arch/powerpc/boot/dts/fsl/oca4080.dts:140.23-142.4: Warning (pci_bridge): /pcie@ffe202000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p4080si-post.dtsi:116.7-142.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p4080si-post.dtsi:126.9-141.4: Warning (pci_bridge): /pcie@ffe202000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/oca4080.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/bluestone.dts:272.13-277.7: Warning (i2c_bus_reg): /plb/opb/i2c@ef600700/sttm@4C: I2C bus unit address format error, expected "4c" /kisskb/src/arch/powerpc/boot/dts/fsl/ppa8548.dts:34.22-37.4: Warning (pci_bridge): /pci@fe0008000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi:43.7-51.3 /kisskb/src/arch/powerpc/boot/dts/fsl/ppa8548.dts:39.22-42.4: Warning (pci_bridge): /pci@fe0009000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi:54.7-62.3 /kisskb/src/arch/powerpc/boot/dts/fsl/ppa8548.dts:44.23-47.4: Warning (pci_bridge): /pcie@fe000a000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi:65.7-90.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi:74.9-89.4: Warning (pci_bridge): /pcie@fe000a000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/ppa8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/p2020rdb-pc_36b.dts:59.23-62.4: Warning (pci_bridge): /pcie@fffe08000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi:100.7-126.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi:109.9-125.4: Warning (pci_bridge): /pcie@fffe08000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/p2020rdb-pc_36b.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/p2020rdb-pc_32b.dts:59.22-62.4: Warning (pci_bridge): /pcie@ffe08000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi:100.7-126.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi:109.9-125.4: Warning (pci_bridge): /pcie@ffe08000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/p2020rdb-pc_32b.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /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/mpc8610_hpcd.dts:420.3-21: Warning (pci_device_bus_num): /pcie@e000a000/pcie@0:bus-range: PCI bus number 0 out of range, expected (1 - 1) /kisskb/src/arch/powerpc/boot/dts/fsl/kmcoge4.dts:196.23-198.4: Warning (pci_bridge): /pcie@ffe201000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/p2041si-post.dtsi:87.7-113.3 /kisskb/src/arch/powerpc/boot/dts/fsl/p2041si-post.dtsi:97.9-112.4: Warning (pci_bridge): /pcie@ffe201000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/kmcoge4.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/o2mnt.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name for SPI buses should be 'spi' also defined at /kisskb/src/arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 arch/powerpc/boot/dts/o2mnt.dtb: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge' /kisskb/src/arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): /pci@f0000d00: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/a3m071.dts:135.15-137.4 arch/powerpc/boot/dts/a3m071.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/mgcoge.dts:230.14-234.7: Warning (spi_bus_reg): /soc@f0000000/cpm@119c0/spi@11aa0/ds3106@1: SPI bus unit address format error, expected "0" In file included from /kisskb/src/drivers/net/ethernet/aurora/nb8800.c:30: /kisskb/src/drivers/net/ethernet/aurora/nb8800.h:92: warning: "TCR_DIE" redefined 92 | #define TCR_DIE BIT(7) | In file included from /kisskb/src/arch/powerpc/include/asm/reg.h:22, from /kisskb/src/arch/powerpc/include/asm/timex.h:12, from /kisskb/src/include/linux/timex.h:65, from /kisskb/src/include/linux/time32.h:13, from /kisskb/src/include/linux/time.h:73, from /kisskb/src/include/linux/stat.h:19, from /kisskb/src/include/linux/module.h:13, from /kisskb/src/drivers/net/ethernet/aurora/nb8800.c:13: /kisskb/src/arch/powerpc/include/asm/reg_booke.h:551: note: this is the location of the previous definition 551 | #define TCR_DIE TCR_PIE /* DEC Interrupt Enable */ | /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c: In function 'qe_ep0_rx': /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:836:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 836 | vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); | ^ In file included from /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:41: /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:837:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 837 | frame_set_data(pframe, (u8 *)vaddr); | ^ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.h:229:47: note: in definition of macro 'frame_set_data' 229 | #define frame_set_data(frm, dat) (frm->data = dat) | ^~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c: In function 'ep_rx_tasklet': /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:964:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 964 | vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); | ^ In file included from /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:41: /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:965:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 965 | frame_set_data(pframe, (u8 *)vaddr); | ^ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.h:229:47: note: in definition of macro 'frame_set_data' 229 | #define frame_set_data(frm, dat) (frm->data = dat) | ^~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c: In function 'ep_req_rx': /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:1490:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1490 | vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); | ^ In file included from /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:41: /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:1491:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1491 | frame_set_data(pframe, (u8 *)vaddr); | ^ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.h:229:47: note: in definition of macro 'frame_set_data' 229 | #define frame_set_data(frm, dat) (frm->data = dat) | ^~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c: In function 'qe_ep_init': /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:542:37: warning: this statement may fall through [-Wimplicit-fallthrough=] 542 | if ((max == 128) || (max == 256) || (max == 512)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:544:4: note: here 544 | default: | ^~~~~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:563:8: warning: this statement may fall through [-Wimplicit-fallthrough=] 563 | if (max <= 1024) | ^ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:565:4: note: here 565 | case USB_SPEED_FULL: | ^~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:566:8: warning: this statement may fall through [-Wimplicit-fallthrough=] 566 | if (max <= 64) | ^ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:568:4: note: here 568 | default: | ^~~~~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:580:8: warning: this statement may fall through [-Wimplicit-fallthrough=] 580 | if (max <= 1024) | ^ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:582:4: note: here 582 | case USB_SPEED_FULL: | ^~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:596:5: warning: this statement may fall through [-Wimplicit-fallthrough=] 596 | switch (max) { | ^~~~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:608:4: note: here 608 | case USB_SPEED_LOW: | ^~~~ WARNING: 140 bad relocations c000000000034e2e R_PPC64_ADDR16_HIGHEST .head.text+0x0000000000034e48 c000000000034e32 R_PPC64_ADDR16_HIGH .head.text+0x0000000000034e48 c000000000034e36 R_PPC64_ADDR16_HIGHER .head.text+0x0000000000034e48 c000000000034e3a R_PPC64_ADDR16_LO .head.text+0x0000000000034e48 c000000001c1c893 R_PPC64_UADDR64 .rodata+0x0000000000577b00 c000000001c1c8ae R_PPC64_UADDR64 .rodata+0x0000000000577b48 c000000001c1c8c9 R_PPC64_UADDR64 .rodata+0x0000000000577b58 c000000001c1c8e4 R_PPC64_UADDR64 .rodata+0x0000000000577b68 c000000001c1c8ff R_PPC64_UADDR64 .rodata+0x0000000000577b78 c000000001c1c91a R_PPC64_UADDR64 .rodata+0x0000000000577b88 c000000001c1c935 R_PPC64_UADDR64 .rodata+0x0000000000577b98 c000000001c1c96b R_PPC64_UADDR64 .rodata+0x0000000000577bb8 c000000001c1c986 R_PPC64_UADDR64 .rodata+0x0000000000577bc8 c000000001c1c9a1 R_PPC64_UADDR64 .rodata+0x0000000000577bd0 c000000001c1c9bc R_PPC64_UADDR64 .rodata+0x0000000000577bd8 c000000001c1c9d7 R_PPC64_UADDR64 .rodata+0x0000000000577be8 c000000001c1c9f2 R_PPC64_UADDR64 .rodata+0x0000000000577bf8 c000000001c1ca0d R_PPC64_UADDR64 .rodata+0x0000000000577c08 c000000001c1ca43 R_PPC64_UADDR64 .rodata+0x0000000000577c28 c000000001c1ca5e R_PPC64_UADDR64 .rodata+0x0000000000577c38 c000000001c1ca79 R_PPC64_UADDR64 .rodata+0x0000000000577c48 c000000001c1ca94 R_PPC64_UADDR64 .rodata+0x0000000000577c58 c000000001c1caaf R_PPC64_UADDR64 .rodata+0x0000000000577c68 c000000001c1caca R_PPC64_UADDR64 .rodata+0x0000000000577c78 c000000001c1cae5 R_PPC64_UADDR64 .rodata+0x0000000000577c88 c000000001c1cb1b R_PPC64_UADDR64 .rodata+0x0000000000577ca8 c000000001c1cb36 R_PPC64_UADDR64 .rodata+0x0000000000577cb8 c000000001c1cb51 R_PPC64_UADDR64 .rodata+0x0000000000577cc8 c000000001c1cb6c R_PPC64_UADDR64 .rodata+0x0000000000577cd8 c000000001c1cb87 R_PPC64_UADDR64 .rodata+0x0000000000577ce8 c000000001c1cba2 R_PPC64_UADDR64 .rodata+0x0000000000577cf8 c000000001c1cbbd R_PPC64_UADDR64 .rodata+0x0000000000577d08 c000000001c1cbf3 R_PPC64_UADDR64 .rodata+0x0000000000577d20 c000000001c1cc0e R_PPC64_UADDR64 .rodata+0x0000000000577d30 c000000001c1cc29 R_PPC64_UADDR64 .rodata+0x0000000000577d40 c000000001c1cc44 R_PPC64_UADDR64 .rodata+0x0000000000577d50 c000000001c1cc5f R_PPC64_UADDR64 .rodata+0x0000000000577d60 c000000001c1cc7a R_PPC64_UADDR64 .rodata+0x0000000000577d70 c000000001c1cc95 R_PPC64_UADDR64 .rodata+0x0000000000577d80 c000000001c1cccb R_PPC64_UADDR64 .rodata+0x0000000000577da0 c000000001c1cce6 R_PPC64_UADDR64 .rodata+0x0000000000577db0 c000000001c1cd01 R_PPC64_UADDR64 .rodata+0x0000000000577dc0 c000000001c1cd1c R_PPC64_UADDR64 .rodata+0x0000000000577dd0 c000000001c1cd37 R_PPC64_UADDR64 .rodata+0x0000000000577de0 c000000001c1cd52 R_PPC64_UADDR64 .rodata+0x0000000000577df0 c000000001c1cd6d R_PPC64_UADDR64 .rodata+0x0000000000577e00 c000000001c1cda3 R_PPC64_UADDR64 .rodata+0x0000000000577e20 c000000001c1cdbe R_PPC64_UADDR64 .rodata+0x0000000000577e30 c000000001c1cdd9 R_PPC64_UADDR64 .rodata+0x0000000000577e40 c000000001c1cdf4 R_PPC64_UADDR64 .rodata+0x0000000000577e50 c000000001c1ce0f R_PPC64_UADDR64 .rodata+0x0000000000577e60 c000000001c1ce2a R_PPC64_UADDR64 .rodata+0x0000000000577e70 c000000001c1ce45 R_PPC64_UADDR64 .rodata+0x0000000000577e80 c000000001c1ce7b R_PPC64_UADDR64 .rodata+0x0000000000577ea0 c000000001c1ce96 R_PPC64_UADDR64 .rodata+0x0000000000577eb0 c000000001c1ceb1 R_PPC64_UADDR64 .rodata+0x0000000000577ec0 c000000001c1cecc R_PPC64_UADDR64 .rodata+0x0000000000577ed0 c000000001c1cee7 R_PPC64_UADDR64 .rodata+0x0000000000577ee0 c000000001c1cf02 R_PPC64_UADDR64 .rodata+0x0000000000577ef0 c000000001c1cf1d R_PPC64_UADDR64 .rodata+0x0000000000577f00 c000000001c1cf53 R_PPC64_UADDR64 .rodata+0x0000000000577f20 c000000001c1cf6e R_PPC64_UADDR64 .rodata+0x0000000000577f30 c000000001c1cf89 R_PPC64_UADDR64 .rodata+0x0000000000577f40 c000000001c1cfa4 R_PPC64_UADDR64 .rodata+0x0000000000577f50 c000000001c1cfbf R_PPC64_UADDR64 .rodata+0x0000000000577f60 c000000001c1cfda R_PPC64_UADDR64 .rodata+0x0000000000577f70 c000000001c1cff5 R_PPC64_UADDR64 .rodata+0x0000000000577f80 c000000001c1d02b R_PPC64_UADDR64 .rodata+0x0000000000577fa0 c000000001c1d046 R_PPC64_UADDR64 .rodata+0x0000000000577fb0 c000000001c1d061 R_PPC64_UADDR64 .rodata+0x0000000000577fc0 c000000001c1d07c R_PPC64_UADDR64 .rodata+0x0000000000577fd0 c000000001c1d097 R_PPC64_UADDR64 .rodata+0x0000000000577fe0 c000000001c1d0b2 R_PPC64_UADDR64 .rodata+0x0000000000577ff0 c000000001c1d0cd R_PPC64_UADDR64 .rodata+0x0000000000578008 c000000001c1d103 R_PPC64_UADDR64 .rodata+0x0000000000578028 c000000001c1d11e R_PPC64_UADDR64 .rodata+0x0000000000578038 c000000001c1d139 R_PPC64_UADDR64 .rodata+0x0000000000578048 c000000001c1d154 R_PPC64_UADDR64 .rodata+0x0000000000578060 c000000001c1d16f R_PPC64_UADDR64 .rodata+0x0000000000578068 c000000001c1d18a R_PPC64_UADDR64 .rodata+0x0000000000578078 c000000001c1d1a5 R_PPC64_UADDR64 .rodata+0x0000000000578088 c000000001c1d1db R_PPC64_UADDR64 .rodata+0x00000000005780a8 c000000001c1d1f6 R_PPC64_UADDR64 .rodata+0x00000000005780b8 c000000001c1d211 R_PPC64_UADDR64 .rodata+0x00000000005780c8 c000000001c1d22c R_PPC64_UADDR64 .rodata+0x00000000005780d8 c000000001c1d247 R_PPC64_UADDR64 .rodata+0x00000000005780e8 c000000001c1d262 R_PPC64_UADDR64 .rodata+0x00000000005780f0 c000000001c1d27d R_PPC64_UADDR64 .rodata+0x0000000000578100 c000000001c1d2b3 R_PPC64_UADDR64 .rodata+0x0000000000578120 c000000001c1d2ce R_PPC64_UADDR64 .rodata+0x0000000000578130 c000000001c1d2e9 R_PPC64_UADDR64 .rodata+0x0000000000578140 c000000001c1d304 R_PPC64_UADDR64 .rodata+0x0000000000578150 c000000001c1d31f R_PPC64_UADDR64 .rodata+0x0000000000578160 c000000001c1d33a R_PPC64_UADDR64 .rodata+0x0000000000578178 c000000001c1d355 R_PPC64_UADDR64 .rodata+0x0000000000578190 c000000001c1d38b R_PPC64_UADDR64 .rodata+0x00000000005781b0 c000000001c1d3a6 R_PPC64_UADDR64 .rodata+0x00000000005781c0 c000000001c1d3c1 R_PPC64_UADDR64 .rodata+0x00000000005781d0 c000000001c1d3dc R_PPC64_UADDR64 .rodata+0x00000000005781e0 c000000001c1d3f7 R_PPC64_UADDR64 .rodata+0x00000000005781f0 c000000001c1d412 R_PPC64_UADDR64 .rodata+0x0000000000578200 c000000001c1d42d R_PPC64_UADDR64 .rodata+0x0000000000578210 c000000001c1d463 R_PPC64_UADDR64 .rodata+0x0000000000578230 c000000001c1d47e R_PPC64_UADDR64 .rodata+0x0000000000578240 c000000001c1d499 R_PPC64_UADDR64 .rodata+0x0000000000578250 c000000001c1d4b4 R_PPC64_UADDR64 .rodata+0x0000000000578260 c000000001c1d4cf R_PPC64_UADDR64 .rodata+0x0000000000578270 c000000001c1d4ea R_PPC64_UADDR64 .rodata+0x0000000000578280 c000000001c1d505 R_PPC64_UADDR64 .rodata+0x0000000000578290 c000000001c1d53b R_PPC64_UADDR64 .rodata+0x00000000005782b0 c000000001c1d556 R_PPC64_UADDR64 .rodata+0x00000000005782c0 c000000001c1d571 R_PPC64_UADDR64 .rodata+0x00000000005782d0 c000000001c1d58c R_PPC64_UADDR64 .rodata+0x00000000005782e0 c000000001c1d5a7 R_PPC64_UADDR64 .rodata+0x00000000005782f0 c000000001c1d5c2 R_PPC64_UADDR64 .rodata+0x0000000000578300 c000000001c1d5dd R_PPC64_UADDR64 .rodata+0x0000000000578310 c000000001c1d613 R_PPC64_UADDR64 .rodata+0x0000000000578330 c000000001c1d62e R_PPC64_UADDR64 .rodata+0x0000000000578340 c000000001c1d649 R_PPC64_UADDR64 .rodata+0x0000000000578350 c000000001c1d664 R_PPC64_UADDR64 .rodata+0x0000000000578360 c000000001c1d67f R_PPC64_UADDR64 .rodata+0x0000000000578370 c000000001c1d69a R_PPC64_UADDR64 .rodata+0x0000000000578380 c000000001c1d6b5 R_PPC64_UADDR64 .rodata+0x0000000000578390 c000000001c1d6eb R_PPC64_UADDR64 .rodata+0x00000000005783b0 c000000001c1d706 R_PPC64_UADDR64 .rodata+0x00000000005783c0 c000000001c1d721 R_PPC64_UADDR64 .rodata+0x00000000005783d0 c000000001c1d73c R_PPC64_UADDR64 .rodata+0x00000000005783e0 c000000001c1d757 R_PPC64_UADDR64 .rodata+0x00000000005783f0 c000000001c1d772 R_PPC64_UADDR64 .rodata+0x0000000000578400 c000000001c1d78d R_PPC64_UADDR64 .rodata+0x0000000000578410 c000000001c1d7c3 R_PPC64_UADDR64 .rodata+0x0000000000578430 c000000001c1d7de R_PPC64_UADDR64 .rodata+0x0000000000578440 c000000001c1d7f9 R_PPC64_UADDR64 .rodata+0x0000000000578450 c000000001c1d814 R_PPC64_UADDR64 .rodata+0x0000000000578468 c000000001c1d82f R_PPC64_UADDR64 .rodata+0x0000000000578478 c000000001c1d84a R_PPC64_UADDR64 .rodata+0x0000000000578488 c000000001c1d865 R_PPC64_UADDR64 .rodata+0x0000000000578498 c000000001c1d89b R_PPC64_UADDR64 .rodata+0x00000000005784b8 c000000001c1d8b6 R_PPC64_UADDR64 .rodata+0x00000000005784c8 c000000001c1d8d1 R_PPC64_UADDR64 .rodata+0x00000000005784d8 WARNING: You need at least binutils >= 2.19 to build a CONFIG_RELOCATABLE kernel INFO: Uncompressed kernel (size 0x2d1b8e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x2e00000) Image Name: Linux-5.9.0-rc2+ Created: Wed Oct 7 03:53:00 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 15209720 Bytes = 14853.24 KiB = 14.51 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc64_book3e_allmodconfig_powerpc-gcc9 # Build took: 0:11:20.756070