]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit0a324f3189ed9c78b1aaf48d88e93cb18643c655
tree74ce14e88537117866a5327e7afb2d4ba3617990
parent15718ea0d844e4816dbd95d57a8a0e3e264ba90e
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