diff options
| author | Vadim Fedorenko <vadim.fedorenko@linux.dev> | 2026-10-07 20:33:59 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-08 11:01:02 -0700 |
| commit | f8c8bd159a9bf626dd4921b7746ff481fce8c758 (patch) | |
| tree | 2b97f1992807f5413ad59c280aa11e4bf4915391 /tools/lib/python/kdoc/python_version.py | |
| parent | 93ccaf1c26e2133396173b76a071e59024daa622 (diff) | |
| download | linux-next-f8c8bd159a9bf626dd4921b7746ff481fce8c758.tar.gz linux-next-f8c8bd159a9bf626dd4921b7746ff481fce8c758.zip | |
ptp: ocp: fix PCIe delay estimation calculation
The commit in fixes introduced a high cap for delayas U64_MAX value
while ktime_t is actually s64. This is wrong cap as it becomes negative
value and any comparison to a real delay will fail to update delay
value. Use KTIME_MAX constant as correct max cap for PCIe delay.
The issue was hit in production (a negative value is observed):
# cat /sys/class/timecard/ocp0/ts_window_adjust
-3
Fixes: aa05fe67bcd64 ("ptp: ocp: Improve PCIe delay estimation")
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20261007203359.417270-1-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
