Skip to content

Commit

Permalink
net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture
Browse files Browse the repository at this point in the history
failed to configure the page size for architectures with page size
different than 4K.

Fixes: 938fe83 ("net/mlx5_core: New device capabilities handling")
Signed-off-by: Carol L Soto <[email protected]>
Acked-by: Amir Vadai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Carol L Soto authored and davem330 committed Aug 7, 2015
1 parent 95a428f commit fe1e187
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
/* disable cmdif checksum */
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);

query_ex:
Expand Down

0 comments on commit fe1e187

Please sign in to comment.