diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-01-14 10:45:20 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-23 02:23:52 -0500 |
commit | 05bdb2ab6b09f2306f0afe0f60f4b9abffa7aba4 (patch) | |
tree | 526dff83313a9d0b5b136a44cee45e8270db4049 /include/linux/mlx5 | |
parent | db81a5c374b5bd650c5e6ae85d026709751db103 (diff) |
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 { | |||
234 | }; | 234 | }; |
235 | 235 | ||
236 | enum { | 236 | enum { |
237 | MLX5_ADAPTER_PAGE_SHIFT = 12 | 237 | MLX5_ADAPTER_PAGE_SHIFT = 12, |
238 | MLX5_ADAPTER_PAGE_SIZE = 1 << MLX5_ADAPTER_PAGE_SHIFT, | ||
238 | }; | 239 | }; |
239 | 240 | ||
240 | enum { | 241 | enum { |