]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix FW tracer timestamp calculation
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 20 Oct 2022 09:25:59 +0000 (12:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:22:58 +0000 (11:22 +0100)
commitaed90ab59c3daab59c9bf83ed8ff1c8106653b7b
tree2ad7cb8752d77e1e6100bdb2ca221a7dc7fe637a
parent3aaeef309a68b2eb69eaf81fc1828f3faddc4c37
net/mlx5: Fix FW tracer timestamp calculation

[ Upstream commit 7bec9374e292eed8680c62580e3d7b3347891201 ]

Fix a bug in calculation of FW tracer timestamp. Decreasing one in the
calculation should effect only bits 52_7 and not effect bits 6_0 of the
timestamp, otherwise bits 6_0 are always set in this calculation.

Fixes: 4b1adef39da3 ("net/mlx5: FW tracer, parse traces and kernel tracing support")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Feras Daoud <ferasda@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c