]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 4 Sep 2023 09:10:23 +0000 (11:10 +0200)
commit687c4661e841031ba2c8e0bfc701bdb44bcad124
tree2a998184f5421ad16d0b2afa67a659de656c44b3
parentc937542f2ac761bb3b889622297280349d419485
net/mlx5: Read embedded cpu after init bit cleared

BugLink: https://bugs.launchpad.net/bugs/2029808
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c