# git rev-parse -q --verify f74fc58f295a45c29b565a898d869034099ca9a1^{commit} f74fc58f295a45c29b565a898d869034099ca9a1 already have revision, skipping fetch # git checkout -q -f -B kisskb f74fc58f295a45c29b565a898d869034099ca9a1 # git clean -qxdf # < git log -1 # commit f74fc58f295a45c29b565a898d869034099ca9a1 # Author: Alexey Kardashevskiy # Date: Thu Jul 18 15:11:39 2019 +1000 # # powerpc/powernv/ioda2: Create bigger default window with 64k IOMMU pages # # At the moment we create a small window only for 32bit devices, the window # maps 0..2GB of the PCI space only. For other devices we either use # a sketchy bypass or hardware bypass but the former can only work if # the amount of RAM is no bigger than the device's DMA mask and the latter # requires devices to support at least 59bit DMA. # # This extends the default DMA window to the maximum size possible to allow # a wider DMA mask than just 32bit. The default window size is now limited # by the the iommu_table::it_map allocation bitmap which is a contiguous # array, 1 bit per an IOMMU page. # # This increases the default IOMMU page size from hard coded 4K to # the system page size to allow wider DMA masks. # # This increases the level number to not exceed the max order allocation # limit per TCE level. By the same time, this keeps minimal levels number # as 2 in order to save memory. # # As the extended window now overlaps the 32bit MMIO region, this adds # an area reservation to iommu_init_table(). # # After this change the default window size is 0x80000000000==1<<43 so # devices limited to DMA mask smaller than the amount of system RAM can # still use more than just 2GB of memory for DMA. # # This is an optimization and not a bug fix for DMA API usage. # # With the on-demand allocation of indirect TCE table levels enabled and # 2 levels, the first TCE level size is just # 1< # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190718051139.74787-5-aik@ozlabs.ru # < /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 f74fc58f295a45c29b565a898d869034099ca9a1 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_44x_iss476-smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 44x/iss476-smp_defconfig WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_44x_iss476-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/kernel/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:140:32: warning: 'levelspread[]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:88: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:338:21: note: 'pdeo' was declared here /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 INFO: Uncompressed kernel (size 0x619380) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x619380) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Completed OK # rm -rf /kisskb/build/powerpc-next_44x_iss476-smp_defconfig_powerpc-gcc4.6 # Build took: 0:00:51.450966