# git rev-parse -q --verify 49c7f0bdba27e02d44014e07d9d7723058b7b876^{commit} 49c7f0bdba27e02d44014e07d9d7723058b7b876 already have revision, skipping fetch # git checkout -q -f -B kisskb 49c7f0bdba27e02d44014e07d9d7723058b7b876 # git clean -qxdf # < git log -1 # commit 49c7f0bdba27e02d44014e07d9d7723058b7b876 # Author: Aneesh Kumar K.V # Date: Thu Aug 27 09:39:31 2020 +0530 # # powerpc/book3s64/pkeys: Optimize FTR_KUAP and FTR_KUEP disabled case # # If FTR_KUAP is disabled kernel will continue to run with the same AMR # value with which it was entered. Hence there is a high chance that # we can return without restoring the AMR value. This also helps the case # when applications are not using the pkey feature. In this case, different # applications will have the same AMR values and hence we can avoid restoring # AMR in this case too. # # Also avoid isync() if not really needed. # # Do the same for IAMR. # # null-syscall benchmark results: # # With smap/smep disabled: # Without patch: # 957.95 ns 2778.17 cycles # With patch: # 858.38 ns 2489.30 cycles # # With smap/smep enabled: # Without patch: # 1017.26 ns 2950.36 cycles # With patch: # 1021.51 ns 2962.44 cycles # # Signed-off-by: Aneesh Kumar K.V # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200827040931.297759-24-aneesh.kumar@linux.ibm.com # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 49c7f0bdba27e02d44014e07d9d7723058b7b876 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/kernel/rcu/update.c:591:0: /kisskb/src/kernel/rcu/tasks.h:593:13: warning: 'show_rcu_tasks_classic_gp_kthread' defined but not used [-Wunused-function] static void show_rcu_tasks_classic_gp_kthread(void) { } ^ /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1667:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xaf552c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xb05c14) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xaf552c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5332539 Bytes = 5207.56 KiB = 5.09 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5331607 Bytes = 5206.65 KiB = 5.08 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5331723 Bytes = 5206.76 KiB = 5.08 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5332785 Bytes = 5207.80 KiB = 5.09 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5332438 Bytes = 5207.46 KiB = 5.09 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5332460 Bytes = 5207.48 KiB = 5.09 MiB Load Address: 00c00000 Entry Point: 00c00894 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5299784 Bytes = 5175.57 KiB = 5.05 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:06 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5332172 Bytes = 5207.20 KiB = 5.09 MiB Load Address: 00c00000 Entry Point: 00c00894 Image Name: Linux-5.9.0-rc2+ Created: Fri Sep 11 06:57:07 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5332037 Bytes = 5207.07 KiB = 5.09 MiB Load Address: 00c00000 Entry Point: 00c00294 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 # Build took: 0:04:25.106061