# git rev-parse -q --verify cc725cb44569f990c9aa4fd2ee08fa3f95237b02^{commit} cc725cb44569f990c9aa4fd2ee08fa3f95237b02 already have revision, skipping fetch # git checkout -q -f -B kisskb cc725cb44569f990c9aa4fd2ee08fa3f95237b02 # git clean -qxdf # < git log -1 # commit cc725cb44569f990c9aa4fd2ee08fa3f95237b02 # Author: Suraj Jitindar Singh # Date: Wed Jul 10 15:20:18 2019 +1000 # # powerpc: mm: Limit rma_size to 1TB when running without HV mode # # The virtual real mode addressing (VRMA) mechanism is used when a # partition is using HPT (Hash Page Table) translation and performs # real mode accesses (MSR[IR|DR] = 0) in non-hypervisor mode. In this # mode effective address bits 0:23 are treated as zero (i.e. the access # is aliased to 0) and the access is performed using an implicit 1TB SLB # entry. # # The size of the RMA (Real Memory Area) is communicated to the guest as # the size of the first memory region in the device tree. And because of # the mechanism described above can be expected to not exceed 1TB. In the # event that the host erroneously represents the RMA as being larger than # 1TB, guest accesses in real mode to memory addresses above 1TB will be # aliased down to below 1TB. This means that a memory access performed in # real mode may differ to one performed in virtual mode for the same memory # address, which would likely have unintended consequences. # # To avoid this outcome have the guest explicitly limit the size of the # RMA to the current maximum, which is 1TB. This means that even if the # first memory block is larger than 1TB, only the first 1TB should be # accessed in real mode. # # Fixes: c3ab300ea555 ("powerpc: Add POWER9 cputable entry") # Cc: stable@vger.kernel.org # v4.6+ # Signed-off-by: Suraj Jitindar Singh # Tested-by: Satheesh Rajendran # Reviewed-by: David Gibson # Link: https://lore.kernel.org/r/20190710052018.14628-1-sjitindarsingh@gmail.com # < /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 cc725cb44569f990c9aa4fd2ee08fa3f95237b02 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /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:331:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591: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:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1465:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:613:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc8578c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc74f8c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074433 Bytes = 5932.06 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074773 Bytes = 5932.40 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6076853 Bytes = 5934.43 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074823 Bytes = 5932.44 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074858 Bytes = 5932.48 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6075746 Bytes = 5933.35 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074536 Bytes = 5932.16 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6044466 Bytes = 5902.80 KiB = 5.76 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074752 Bytes = 5932.38 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074379 Bytes = 5932.01 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:56:59 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074537 Bytes = 5932.17 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:57:00 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074425 Bytes = 5932.06 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:57:00 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6076768 Bytes = 5934.34 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:57:00 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6075747 Bytes = 5933.35 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:57:00 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074431 Bytes = 5932.06 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-gcc725cb44569 Created: Sun Jul 14 21:57:00 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6074417 Bytes = 5932.05 KiB = 5.79 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:01:08.011380