net/mlx5: Read embedded cpu after init bit cleared
stable inclusion from stable-v5.10.183 commit f5c29a9e9146cfe844b881833cd7452244a8384d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f5c29a9e9146cfe844b881833cd7452244a8384d -------------------------------- [ Upstream commit bbfa4b58 ] 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: 591905ba ("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:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment