net/mlx5_core: Use coherent memory for command interface page
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 2 Apr 2015 14:07:25 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:33:41 +0000 (16:33 -0400)
commit64599cca51de08cef94bc13a0f98351e5bb01f41
tree0c43aa2340bb22ffed7e145ddfb8f649f3f4af80
parent60722c2ba02be052140998bc80ed77d74e3c03df
net/mlx5_core: Use coherent memory for command interface page

Use coherent memory for the commands descriptor page. Take measures to make
sure the page is aligned to MLX5_ADAPTER_PAGE_SIZE as required by the hardware.

Reported-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
include/linux/mlx5/driver.h