# git rev-parse -q --verify e4b79900222b8cccd4da4a7a89581f0e1b764ed2^{commit} e4b79900222b8cccd4da4a7a89581f0e1b764ed2 already have revision, skipping fetch # git checkout -q -f -B kisskb e4b79900222b8cccd4da4a7a89581f0e1b764ed2 # git clean -qxdf # < git log -1 # commit e4b79900222b8cccd4da4a7a89581f0e1b764ed2 # Author: Michael Ellerman # Date: Tue Mar 13 15:58:11 2018 +1100 # # powerpc/64s: Fix NULL AT_BASE_PLATFORM when using DT CPU features # # When running virtualised the powerpc kernel is able to run the system # in "compat mode" - which means the kernel and hardware are pretending # to userspace that the CPU is an older version than it actually is. # # AT_BASE_PLATFORM is an AUXV entry that we export to userspace for use # when we're running in that mode, which tells userspace the "platform" # string for the real CPU version, as opposed to the faked version. # # Although we don't support compat mode when using DT CPU features, and # arguably don't need to set AT_BASE_PLATFORM, the existing cputable # based code always sets it even when we're running bare metal. That # means the lack of AT_BASE_PLATFORM is a user-visible artifact of the # fact that the kernel is using DT CPU features, which we don't want. # # So set it in the DT CPU features code also. # # This results in eg: # $ LD_SHOW_AUXV=1 /bin/true | grep "AT_.*PLATFORM" # AT_PLATFORM: power9 # AT_BASE_PLATFORM:power9 # # Signed-off-by: Michael Ellerman # Reviewed-by: Nicholas Piggin # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 e4b79900222b8cccd4da4a7a89581f0e1b764ed2 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_defconfig # Added to kconfig CONFIG_ALTIVEC=n # Added to kconfig CONFIG_PPC_TRANSACTIONAL_MEM=n # yes \n | make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/kvm/powerpc.c: In function 'kvm_arch_vcpu_ioctl_run': /kisskb/src/arch/powerpc/kvm/powerpc.c:1611:1: error: label 'out' defined but not used [-Werror=unused-label] out: ^ cc1: all warnings being treated as errors /kisskb/src/scripts/Makefile.build:316: recipe for target 'arch/powerpc/kvm/powerpc.o' failed make[2]: *** [arch/powerpc/kvm/powerpc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/Makefile:1048: recipe for target 'arch/powerpc/kvm' failed make[1]: *** [arch/powerpc/kvm] Error 2 make[1]: *** Waiting for unfinished jobs.... Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-fixes_ppc64_defconfig+NO_ALTIVEC_powerpc-5.3 # Build took: 0:02:19.453223