# 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/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 f74fc58f295a45c29b565a898d869034099ca9a1 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] In file included from /kisskb/src/include/linux/kernel.h:11: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:78: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)) ^ /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 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbbae4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcab2b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282228 Bytes = 6134.99 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282935 Bytes = 6135.68 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6283186 Bytes = 6135.92 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282753 Bytes = 6135.50 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282289 Bytes = 6135.05 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282893 Bytes = 6135.64 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282818 Bytes = 6135.56 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282749 Bytes = 6135.50 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6283611 Bytes = 6136.34 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282267 Bytes = 6135.03 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282261 Bytes = 6135.02 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6283312 Bytes = 6136.05 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282882 Bytes = 6135.63 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282697 Bytes = 6135.45 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6282262 Bytes = 6135.02 KiB = 5.99 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.3.0-rc2-gf74fc58f295a Created: Fri Aug 16 00:53:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6252554 Bytes = 6106.01 KiB = 5.96 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:02:11.243435