# 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/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 59cc84c802eb923805e7bba425976a3df5ce35d8 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itxgp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 83xx/mpc834x_itxgp_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itxgp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itxgp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itxgp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x6d7298) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6d7298) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6c6c88) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.13.0-rc2-112582-g59cc84c Created: Sun Jun 6 22:15:29 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3063375 Bytes = 2991.58 KiB = 2.92 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.13.0-rc2-112582-g59cc84c Created: Sun Jun 6 22:15:29 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3091559 Bytes = 3019.10 KiB = 2.95 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.13.0-rc2-112582-g59cc84c Created: Sun Jun 6 22:15:29 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3091410 Bytes = 3018.96 KiB = 2.95 MiB Load Address: 00700000 Entry Point: 00700294 Completed OK # rm -rf /kisskb/build/powerpc-fixes_83xx_mpc834x_itxgp_defconfig_powerpc-gcc5 # Build took: 0:00:49.576002