aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlex Austin <alex.austin@amd.com>2026-10-26 12:30:23 +0000
committerPaolo Abeni <pabeni@redhat.com>2026-11-02 15:02:48 +0100
commit23d23e6c6517d0fea4f64340a23e33c89f82c03c (patch)
treef4bddb54f75fea97bbb3478bfe8bd43459ecc0f9 /scripts/Makefile.thinlto
parentsfc: ptp: serialize host and MC synchronization transactions (diff)
sfc: ptp: avoid racing PPS timestamp updates
efx_ptp_pps_worker() can race with SIOCHWTSTAMP via efx_ptp_change_mode(). After the worker completes synchronization, the ioctl can start another synchronization and update host_time_pps while the worker copies it into the PPS event. This can report a partially updated timestamp. Serializing synchronization transactions alone does not protect this copy, which happens after phc_lock is released. Return the timestamp through the caller's own pps_event_time rather than the shared field in efx_ptp_data, so the worker reads storage no one else can write. Fixes: 7c236c43b838 ("sfc: Add support for IEEE-1588 PTP") Signed-off-by: Alex Austin <alex.austin@amd.com> Reviewed-by: Alejandro Lucero <alucerop@amd.com> Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com> Link: https://patch.msgid.link/20261026123023.3566549-4-alex.austin@amd.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions