Commit 59cc84c
Revert "powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs"
This reverts commit 3c0468d.
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: 3c0468d ("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.com1 parent 1438709 commit 59cc84c
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | | - | |
902 | 901 | | |
903 | 902 | | |
904 | 903 | | |
| |||
925 | 924 | | |
926 | 925 | | |
927 | 926 | | |
928 | | - | |
929 | | - | |
930 | | - | |
| 927 | + | |
| 928 | + | |
931 | 929 | | |
932 | 930 | | |
933 | 931 | | |
| |||
942 | 940 | | |
943 | 941 | | |
944 | 942 | | |
945 | | - | |
946 | | - | |
| 943 | + | |
947 | 944 | | |
| 945 | + | |
| 946 | + | |
948 | 947 | | |
949 | 948 | | |
950 | 949 | | |
| |||
0 commit comments