# git rev-parse -q --verify 393144fdab45bfe2dbcde8fc91164f5c732c3590^{commit} 393144fdab45bfe2dbcde8fc91164f5c732c3590 already have revision, skipping fetch # git checkout -q -f -B kisskb 393144fdab45bfe2dbcde8fc91164f5c732c3590 # git clean -qxdf # < git log -1 # commit 393144fdab45bfe2dbcde8fc91164f5c732c3590 # Author: Christophe Leroy # Date: Wed Feb 13 16:06:21 2019 +0000 # # powerpc/8xx: Map 32Mb of RAM at init. # # At the time being, initial MMU setup allows 24 Mbytes # of DATA and 8 Mbytes of code. # # Some debug setup like CONFIG_KASAN generate huge # kernels with text size over the 8M limit and data over the # 24 Mbytes limit. # # Here is an 8xx kernel compiled with CONFIG_KASAN_INLINE for # one of my boards: # # [root@po16846vm linux-powerpc]# size -x vmlinux # text data bss dec hex filename # 0x111019c 0x41b0d4 0x490de0 26984528 19bc050 vmlinux # # This patch maps up to 32 Mbytes code based on _einittext symbol # and allows 32 Mbytes of memory instead of 24. # # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 393144fdab45bfe2dbcde8fc91164f5c732c3590 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_pcm030_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 52xx/pcm030_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_pcm030_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:133:34: warning: 'levelspread[]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:100:6: note: 'levelspread[]' was declared here /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1855:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] INFO: Uncompressed kernel (size 0x4619a4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-5.0.0-rc2trunk+ Created: Fri Feb 22 02:11:06 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2232580 Bytes = 2180.25 KiB = 2.13 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_52xx_pcm030_defconfig_powerpc-gcc4.6 # Build took: 0:00:21.258950