diff options
author | Nikhil Gupta <[email protected]> | 2023-01-20 02:10:34 +0530 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-20 18:20:38 -0800 |
commit | 24a7fffb2533bb44d4ec84bb824732a9c4882f15 (patch) | |
tree | 8ff5538f62c7458541978bb47a7f4d424a41337b /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 5e64f59a3cc2c4cfba748b87f0761d865dec7924 (diff) |
ptp_qoriq: fix latency in ptp_qoriq_adjtime() operation
1588 driver loses about 1us in adjtime operation at PTP slave
This is because adjtime operation uses a slow non-atomic tmr_cnt_read()
followed by tmr_cnt_write() operation.
In the above sequence, since the timer counter operation keeps
incrementing, it leads to latency. The tmr_offset register
(which is added to TMR_CNT_H/L register giving the current time)
must be programmed with the delta nanoseconds.
Signed-off-by: Nikhil Gupta <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Tested-by: Vladimir Oltean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions