diff options
author | Rahul Rameshbabu <[email protected]> | 2023-08-21 16:05:54 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-24 17:14:39 -0700 |
commit | 84a58e60038fa0366006977dba85eae16b2e3d78 (patch) | |
tree | 2354a2d5be711d9a887d8dad7d02f4f4600b0021 /tools/perf/scripts/python | |
parent | b5cc3833f13ace75e26e3f7b51cd7b6da5e9cf17 (diff) |
net/mlx5: Dynamic cyclecounter shift calculation for PTP free running clock
Use a dynamic calculation to determine the shift value for the internal
timer cyclecounter that will lead to the highest precision frequency
adjustments. Previously used a constant for the shift value assuming all
devices supported by the driver had a nominal frequency of 1GHz. However,
there are devices that operate at different frequencies. The previous shift
value constant would break the PHC functionality for those devices.
Reported-by: Vadim Fedorenko <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Fixes: 6a4010927562 ("net/mlx5: Update cyclecounter shift value to improve ptp free running mode precision")
Signed-off-by: Rahul Rameshbabu <[email protected]>
Tested-by: Vadim Fedorenko <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Acked-by: Saeed Mahameed <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions