]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5: Read embedded cpu after init bit cleared
authorMoshe Shemesh <moshe@nvidia.com>
Fri, 28 Apr 2023 10:48:13 +0000 (13:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:04 +0000 (10:34 +0200)
commit9316fdd57f253acfcef1a8e4940d08d647c8cdfa
tree305e959f239ac3d8ea33da6be5fce69778f39c4b
parent4156c6ff331afe198ee7298d77f58f6b175df1d7
net/mlx5: Read embedded cpu after init bit cleared

[ Upstream commit bbfa4b58997e3d38ba629c9f6fc0bd1c163aaf43 ]

During driver load it reads embedded_cpu bit from initialization
segment, but the initialization segment is readable only after
initialization bit is cleared.

Move the call to mlx5_read_embedded_cpu() right after initialization bit
cleared.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Fixes: 591905ba9679 ("net/mlx5: Introduce Mellanox SmartNIC and modify page management logic")
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c