# git rev-parse -q --verify 03800e0526ee25ed7c843ca1e57b69ac2a5af642^{commit} 03800e0526ee25ed7c843ca1e57b69ac2a5af642 already have revision, skipping fetch # git checkout -q -f -B kisskb 03800e0526ee25ed7c843ca1e57b69ac2a5af642 # git clean -qxdf # < git log -1 # commit 03800e0526ee25ed7c843ca1e57b69ac2a5af642 # Author: Andrea Arcangeli # Date: Tue Jun 25 10:17:27 2019 -0400 # # powerpc: fix off by one in max_zone_pfn initialization for ZONE_DMA # # 25078dc1f74be16b858e914f52cc8f4d03c2271a first introduced an off by # one error in the ZONE_DMA initialization of PPC_BOOK3E_64=y and since # 9739ab7eda459f0669ec9807e0d9be5020bab88c the off by one applies to # PPC32=y too. This simply corrects the off by one and should resolve # crashes like below: # # [ 65.179101] page 0x7fff outside node 0 zone DMA [ 0x0 - 0x7fff ] # # Unfortunately in various MM places "max" means a non inclusive end of # range. free_area_init_nodes max_zone_pfn parameter is one case and # MAX_ORDER is another one (unrelated) that comes by memory. # # Reported-by: Zorro Lang # Fixes: 25078dc1f74b ("powerpc: use mm zones more sensibly") # Fixes: 9739ab7eda45 ("powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac") # Signed-off-by: Andrea Arcangeli # Reviewed-by: Christoph Hellwig # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190625141727.2883-1-aarcange@redhat.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 03800e0526ee25ed7c843ca1e57b69ac2a5af642 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] 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 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe58cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd5098) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859231 Bytes = 5721.91 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5858822 Bytes = 5721.51 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5858863 Bytes = 5721.55 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5858944 Bytes = 5721.62 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5858866 Bytes = 5721.55 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5828713 Bytes = 5692.10 KiB = 5.56 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5860868 Bytes = 5723.50 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5858895 Bytes = 5721.58 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5860905 Bytes = 5723.54 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859120 Bytes = 5721.80 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859493 Bytes = 5722.16 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859484 Bytes = 5722.15 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5858822 Bytes = 5721.51 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859947 Bytes = 5722.60 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859486 Bytes = 5722.15 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.2.0-g03800e0526ee Created: Tue Jul 16 22:06:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5859457 Bytes = 5722.13 KiB = 5.59 MiB Load Address: 00c00000 Entry Point: 00c002a4 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 # Build took: 0:02:21.564927