]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58558b5367f9221d4ecacdf160761deda7def550
tree0c43aa2340bb22ffed7e145ddfb8f649f3f4af80
parent88c8ff3bf633b9b2ce026bb2afc602ea7e80e15c
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