]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Modify LSB bitmask in temperature event to include only the first bit
authorShahar Shitrit <shshitrit@nvidia.com>
Thu, 13 Feb 2025 09:46:40 +0000 (11:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:18 +0000 (11:13 +0200)
commit7e157ee107fcca6575847b7e4ed50dcf5c5ea71e
treed8e37c22160fc15f8f3bd1a40b648426560a4a5d
parentd52bc8783e1ddaf6603dbd257bdfa05fa02bece8
net/mlx5: Modify LSB bitmask in temperature event to include only the first bit

[ Upstream commit 633f16d7e07c129a36b882c05379e01ce5bdb542 ]

In the sensor_count field of the MTEWE register, bits 1-62 are
supported only for unmanaged switches, not for NICs, and bit 63
is reserved for internal use.

To prevent confusing output that may include set bits that are
not relevant to NIC sensors, we update the bitmask to retain only
the first bit, which corresponds to the sensor ASIC.

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Link: https://patch.msgid.link/20250213094641.226501-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/events.c