# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 59cc84c802eb923805e7bba425976a3df5ce35d8 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- 83xx/mpc834x_itx_defconfig # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc834x_itx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/net/sched/sch_frag.c: In function 'sch_fragment': /kisskb/src/net/sched/sch_frag.c:93:10: warning: missing braces around initializer [-Wmissing-braces] struct rtable sch_frag_rt = { 0 }; ^ /kisskb/src/net/sched/sch_frag.c:93:10: warning: (near initialization for 'sch_frag_rt.dst') [-Wmissing-braces] /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1236:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x75b754) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x75b754) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x74b144) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.13.0-rc2-g59cc84c802eb Created: Sun Jun 6 23:31:09 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3262952 Bytes = 3186.48 KiB = 3.11 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.13.0-rc2-g59cc84c802eb Created: Sun Jun 6 23:31:09 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3293103 Bytes = 3215.92 KiB = 3.14 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.13.0-rc2-g59cc84c802eb Created: Sun Jun 6 23:31:09 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3293138 Bytes = 3215.96 KiB = 3.14 MiB Load Address: 00800000 Entry Point: 00800294 Completed OK # rm -rf /kisskb/build/powerpc-fixes_83xx_mpc834x_itx_defconfig_powerpc-gcc4.9 # Build took: 0:00:32.339098