# 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_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbc8e54) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844044 Bytes = 5707.07 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:40 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841533 Bytes = 5704.62 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5818593 Bytes = 5682.22 kB = 5.55 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842306 Bytes = 5705.38 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:41 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842276 Bytes = 5705.35 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841645 Bytes = 5704.73 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841648 Bytes = 5704.73 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842278 Bytes = 5705.35 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842202 Bytes = 5705.28 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842206 Bytes = 5705.28 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841604 Bytes = 5704.69 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843878 Bytes = 5706.91 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841881 Bytes = 5704.96 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843741 Bytes = 5706.78 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841590 Bytes = 5704.68 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-ge4b7990 Created: Wed Mar 14 22:46:42 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841576 Bytes = 5704.66 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:03:52.480596