# git rev-parse -q --verify eaa567ccaf3a2a7b14ffa38af4bd09613aa1830f^{commit} eaa567ccaf3a2a7b14ffa38af4bd09613aa1830f already have revision, skipping fetch # git checkout -q -f -B kisskb eaa567ccaf3a2a7b14ffa38af4bd09613aa1830f # git clean -qxdf # < git log -1 # commit eaa567ccaf3a2a7b14ffa38af4bd09613aa1830f # Author: Hari Bathini # Date: Mon Jul 27 01:10:28 2020 +0530 # # ppc64/kexec_file: fix kexec load failure with lack of memory hole # # The kexec purgatory has to run in real mode. Only the first memory # block maybe accessible in real mode. And, unlike the case with panic # kernel, no memory is set aside for regular kexec load. Another thing # to note is, the memory for crashkernel is reserved at an offset of # 128MB. So, when crashkernel memory is reserved, the memory ranges to # load kexec segments shrink further as the generic code only looks for # memblock free memory ranges and in all likelihood only a tiny bit of # memory from 0 to 128MB would be available to load kexec segments. # # With kdump being used by default in general, kexec file load is likely # to fail almost always. This can be fixed by changing the memory hole # lookup logic for regular kexec to use the same method as kdump. This # would mean that most kexec segments will overlap with crashkernel # memory region. That should still be ok as the pages, whose destination # address isn't available while loading, are placed in an intermediate # location till a flush to the actual destination address happens during # kexec boot sequence. # # Signed-off-by: Hari Bathini # Tested-by: Pingfan Liu # Reviewed-by: Thiago Jung Bauermann # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/159579242226.5790.13933486642004084417.stgit@hbathini # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-ld --version # < git log --format=%s --max-count=1 eaa567ccaf3a2a7b14ffa38af4bd09613aa1830f # < make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # < make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- help # make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- olddefconfig # make -s -j 48 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- FIT description: Linux 5.8.0-rc2-32172-geaa567ccaf3a Created: Wed Jul 29 04:12:38 2020 Image 0 (kernel@0) Description: Linux 5.8.0-rc2-32172-geaa567ccaf3a Created: Wed Jul 29 04:12:38 2020 Type: Kernel Image Compression: gzip compressed Data Size: 4993042 Bytes = 4876.02 KiB = 4.76 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x809319e0 Hash algo: sha1 Hash value: 0f9be28c476f17a930540e19f2767120115fd98c Image 1 (fdt@boston) Description: img,boston Device Tree Created: Wed Jul 29 04:12:38 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Wed Jul 29 04:12:38 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Wed Jul 29 04:12:38 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 4639 Bytes = 4.53 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: be2724f58b66c316a61da7c11ced633f4e7e86c7 Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Wed Jul 29 04:12:38 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 5198 Bytes = 5.08 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 7556b1594bd7ab9e3b3fa939d8e3e03ae58fa180 Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Wed Jul 29 04:12:38 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-next_mips-defconfig_mipsel # Build took: 0:01:43.863584