# git rev-parse -q --verify fc546faa559538fb312c77e055243ece18ab3288^{commit} fc546faa559538fb312c77e055243ece18ab3288 already have revision, skipping fetch # git checkout -q -f -B kisskb fc546faa559538fb312c77e055243ece18ab3288 # git clean -qxdf # < git log -1 # commit fc546faa559538fb312c77e055243ece18ab3288 # Author: Sourabh Jain # Date: Tue Jan 31 08:36:15 2023 +0530 # # powerpc/kexec_file: Count hot-pluggable memory in FDT estimate # # On Systems where online memory is lesser compared to max memory, the # kexec_file_load system call may fail to load the kdump kernel with the # below errors: # # "Failed to update fdt with linux,drconf-usable-memory property" # "Error setting up usable-memory property for kdump kernel" # # This happens because the size estimation for usable memory properties # for the kdump kernel's FDT is based on the online memory whereas the # usable memory properties include max memory. In short, the hot-pluggable # memory is not accounted for while estimating the size of the usable # memory properties. # # The issue is addressed by calculating usable memory property size using # max hotplug address instead of the last online memory address. # # Fixes: 2377c92e37fe ("powerpc/kexec_file: fix FDT size estimation for kdump kernel") # Signed-off-by: Sourabh Jain # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20230131030615.729894-1-sourabhjain@linux.ibm.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 fc546faa559538fb312c77e055243ece18ab3288 # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_defconfig # Added to kconfig CONFIG_ALTIVEC=n # Added to kconfig CONFIG_PPC_TRANSACTIONAL_MEM=n # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-gcc5 # Build took: 0:03:08.363098