# git rev-parse -q --verify 9bb162fa26ed76031ed0e7dbc77ccea0bf977758^{commit} 9bb162fa26ed76031ed0e7dbc77ccea0bf977758 already have revision, skipping fetch # git checkout -q -f -B kisskb 9bb162fa26ed76031ed0e7dbc77ccea0bf977758 # git clean -qxdf # < git log -1 # commit 9bb162fa26ed76031ed0e7dbc77ccea0bf977758 # Author: Christophe Leroy # Date: Tue Dec 7 06:10:05 2021 +0000 # # powerpc/603: Fix boot failure with DEBUG_PAGEALLOC and KFENCE # # Allthough kernel text is always mapped with BATs, we still have # inittext mapped with pages, so TLB miss handling is required # when CONFIG_DEBUG_PAGEALLOC or CONFIG_KFENCE is set. # # The final solution should be to set a BAT that also maps inittext # but that BAT then needs to be cleared at end of init, and it will # require more changes to be able to do it properly. # # As DEBUG_PAGEALLOC or KFENCE are debugging, performance is not a big # deal so let's fix it simply for now to enable easy stable application. # # Fixes: 035b19a15a98 ("powerpc/32s: Always map kernel text and rodata with BATs") # Cc: stable@vger.kernel.org # v5.11+ # Reported-by: Maxime Bizon # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/aea33b4813a26bdb9378b5f273f00bd5d4abe240.1638857364.git.christophe.leroy@csgroup.eu # < /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 9bb162fa26ed76031ed0e7dbc77ccea0bf977758 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+kexec_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pmac32_defconfig # Added to kconfig configs/2006/11/29/pmac32_defconfigkexec # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+kexec_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+kexec_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4284:warning: unexpected data: configs/2006/11/29/pmac32_defconfigkexec # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+kexec_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_pmac32_defconfig+kexec_powerpc-gcc5 # Build took: 0:01:46.067604