diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-01-14 17:45:20 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-22 23:23:52 -0800 |
commit | 05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4 (patch) | |
tree | 526dff83313a9d0b5b136a44cee45e8270db4049 /include/linux/mlx5 | |
parent | db81a5c374b5bd650c5e6ae85d026709751db103 (diff) | |
download | lwn-05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4.tar.gz lwn-05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4.zip |
mlx5_core: Fix PowerPC support
1. Fix derivation of sub-page index from the dma address in free_4k.
2. Fix the DMA address passed to dma_unmap_page by masking it properly.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/device.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 87e23717df70..1d059099226c 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -234,7 +234,8 @@ enum { }; enum { - MLX5_ADAPTER_PAGE_SHIFT = 12 + MLX5_ADAPTER_PAGE_SHIFT = 12, + MLX5_ADAPTER_PAGE_SIZE = 1 << MLX5_ADAPTER_PAGE_SHIFT, }; enum { |