# git rev-parse -q --verify 59cc84c802eb923805e7bba425976a3df5ce35d8^{commit} 59cc84c802eb923805e7bba425976a3df5ce35d8 already have revision, skipping fetch # git checkout -q -f -B kisskb 59cc84c802eb923805e7bba425976a3df5ce35d8 # git clean -qxdf # < git log -1 # commit 59cc84c802eb923805e7bba425976a3df5ce35d8 # Author: Frederic Barrat # Date: Wed May 26 16:45:40 2021 +0200 # # Revert "powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs" # # This reverts commit 3c0468d4451eb6b4f6604370639f163f9637a479. # # That commit was breaking alignment guarantees for the DMA address when # allocating coherent mappings, as described in # Documentation/core-api/dma-api-howto.rst # # It was also noticed by Mellanox' driver: # [ 1515.763621] mlx5_core c002:01:00.0: mlx5_frag_buf_alloc_node:146:(pid 13402): unexpected map alignment: 0x0800000000c61000, page_shift=16 # [ 1515.763635] mlx5_core c002:01:00.0: mlx5_cqwq_create:181:(pid # 13402): mlx5_frag_buf_alloc_node() failed, -12 # # Fixes: 3c0468d4451e ("powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs") # Signed-off-by: Frederic Barrat # Reviewed-by: Alexey Kardashevskiy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20210526144540.117795-1-fbarrat@linux.ibm.com # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-ld --version # < git log --format=%s --max-count=1 59cc84c802eb923805e7bba425976a3df5ce35d8 # < make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # < make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- help # make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- olddefconfig # make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- FIT description: Linux 5.13.0-rc2-g59cc84c802eb Created: Mon Jun 7 00:03:44 2021 Image 0 (kernel) Description: Linux 5.13.0-rc2-g59cc84c802eb Created: Mon Jun 7 00:03:44 2021 Type: Kernel Image Compression: gzip compressed Data Size: 5350426 Bytes = 5225.03 KiB = 5.10 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x809d0ab8 Hash algo: sha1 Hash value: 9dbfbc0fcf16d80f501d3de87b3a6600c9bde1f4 Image 1 (fdt-boston) Description: img,boston Device Tree Created: Mon Jun 7 00:03:44 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt-ni169445) Description: NI 169445 device tree Created: Mon Jun 7 00:03:44 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt-ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Mon Jun 7 00:03:44 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 4659 Bytes = 4.55 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 5bcb6e4f21e8e5372544aa130b3bd097355a9050 Image 4 (fdt-ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Mon Jun 7 00:03:44 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 5418 Bytes = 5.29 KiB = 0.01 MiB Architecture: MIPS Hash algo: sha1 Hash value: 93d882f2009a217e0fa9dab94788535ed2be8476 Image 5 (fdt-xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Mon Jun 7 00:03:44 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf-default' Configuration 0 (conf-default) Description: Generic Linux kernel Kernel: kernel Configuration 1 (conf-boston) Description: Boston Linux kernel Kernel: kernel FDT: fdt-boston Configuration 2 (conf-ni169445) Description: NI 169445 Linux Kernel Kernel: kernel FDT: fdt-ni169445 Configuration 3 (conf-ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel FDT: fdt-ocelot_pcb123 Configuration 4 (conf-ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel FDT: fdt-ocelot_pcb120 Configuration 5 (conf-xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel FDT: fdt-xilfpga Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mipsel # Build took: 0:01:04.684564