Skip to content

Commit fe1e187

Browse files
Carol L Sotodavem330
authored andcommitted
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: 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]>
1 parent 95a428f commit fe1e187

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
391391
/* disable cmdif checksum */
392392
MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);
393393

394+
MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12);
395+
394396
err = set_caps(dev, set_ctx, set_sz);
395397

396398
query_ex:

0 commit comments

Comments
 (0)