Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe1e1876 authored by Carol L Soto's avatar Carol L Soto Committed by David S. Miller
Browse files

net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture



failed to configure the page size for architectures with page size
different than 4K.

Fixes: 938fe83c ("net/mlx5_core: New device capabilities handling")
Signed-off-by: default avatarCarol L Soto <clsoto@linux.vnet.ibm.com>
Acked-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 95a428f3
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -391,6 +391,8 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
	/* disable cmdif checksum */
	/* disable cmdif checksum */
	MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);
	MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);


	MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12);

	err = set_caps(dev, set_ctx, set_sz);
	err = set_caps(dev, set_ctx, set_sz);


query_ex:
query_ex: