]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5_core: Support MANAGE_PAGES and QUERY_PAGES firmware command changes
authorMoshe Lazer <moshel@mellanox.com>
Wed, 14 Aug 2013 14:46:48 +0000 (17:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2013 22:42:57 +0000 (15:42 -0700)
commit1d72ba53da9f65829feeb842d7a84522d75fc8c7
tree74ce14e88537117866a5327e7afb2d4ba3617990
parentc772fb17d722795ac4f456bfd300d073e4f78aca
net/mlx5_core: Support MANAGE_PAGES and QUERY_PAGES firmware command changes

In the previous QUERY_PAGES command version we used one command to get the
required amount of boot, init and post init pages.  The new version uses the
op_mod field to specify whether the query is for the required amount of boot,
init or post init pages. In addition the output field size for the required
amount of pages increased from 16 to 32 bits.

In MANAGE_PAGES command the input_num_entries and output_num_entries fields
sizes changed from 16 to 32 bits and the PAS tables offset changed to 0x10.

In the pages request event the num_pages field also changed to 32 bits.

In the HCA-capabilities-layout the size and location of max_qp_mcg field has
been changed to support 24 bits.

This patch isn't compatible with firmware versions < 5; however, it  turns out that the
first GA firmware we will publish will not support previous versions so this should be OK.

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/fw.c
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h