# 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-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 e4b79900222b8cccd4da4a7a89581f0e1b764ed2 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_c2k_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- c2k_defconfig warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_c2k_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) warning: (PPC_C2K && AMIGAONE) selects NOT_COHERENT_CACHE which has unmet direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON) /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec': /kisskb/src/net/bridge/br_netlink.c:635:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1820:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1730:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] INFO: Uncompressed kernel (size 0x6b3e94) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 20:58:21 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3245113 Bytes = 3169.06 kB = 3.09 MB Load Address: 00700000 Entry Point: 007004fc Completed OK # rm -rf /kisskb/build/powerpc-fixes_c2k_defconfig_powerpc # Build took: 0:01:48.171435