Frederic Barrat 59cc84c802 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 <fbarrat@linux.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210526144540.117795-1-fbarrat@linux.ibm.com
2021-06-01 11:17:08 +10:00
..
2021-04-30 12:22:28 -07:00
2021-04-30 12:22:28 -07:00
2020-08-07 18:48:15 -07:00
2021-03-29 13:22:11 +11:00
2021-04-22 20:59:04 +10:00
2020-12-09 23:48:14 +11:00
2020-12-04 01:01:09 +11:00
2021-04-21 22:52:32 +10:00
2021-04-30 11:20:40 -07:00
2021-03-24 14:09:29 +11:00
2021-04-17 10:40:51 +10:00
2021-02-09 00:10:50 +11:00
2021-04-30 12:22:28 -07:00