]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Support communicating arbitrary host page size to firmware
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 23 Oct 2013 06:53:19 +0000 (09:53 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:00 +0000 (14:43 -0800)
commit07f0db37cca05006e7d775923228aff11a50fa1c
tree18f449ec92393cb3f828c9f9c95c25234f807d3a
parent6207c0987d35e4133d3f666072a7e9b9e48e01f0
mlx5: Support communicating arbitrary host page size to firmware

Connect-IB firmware requires 4K pages to be communicated with the
driver. This patch breaks larger pages to 4K units to enable support
for architectures utilizing larger page size, such as PowerPC.  This
patch also fixes several places that referred to PAGE_SHIFT instead of
explicit 12 which is the inherent page shift on Connect-IB.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/srq.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
include/linux/mlx5/driver.h