Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Ahmad Byagowi
Thu, 19 Nov 2026 19:32
[RFC] igc: TimeHAT I226 PPS input filtering and output mode
Author: Ahmad Byagowi
Date: Thu, 19 Nov 2026 19:32
Date: Thu, 19 Nov 2026 19:32
55 lines
14235 bytes
14235 bytes
Hello,
I would like to upstream a proper solution for the PPS behavior addressed by
the TimeHAT igc driver modifications:
https://github.com/Time-Appliances-Project/TimeHAT
There are two independent changes in those packages.
The EXTTS change accepts single-edge requests and filters events using the
current SDP level in the interrupt handler. The recent packages wait 20 us
before reading the level, with configurable delay and inversion. They also
force every enabled request to rising-only, including both-edge requests.
That behavior needs to be corrected before it could be proposed upstream.
An independent user reported improvement with the patched input path here:
https://github.com/geerlingguy/time-pi/issues/28
This is a user report, not a controlled current-mainline validation. LinuxPTP's
both-edge mode with the correct physical pulse width should be included in
the baseline. Sampling GPIO after an interrupt also cannot reliably identify
the timestamped edge if another transition has already occurred.
Is there a documented I225/I226 edge selector, latched edge indication, or
supported workaround that would allow reliable single-edge EXTTS while
preserving both-edge behavior? If there is no such mechanism, I would like
to establish the supported approach for this hardware with LinuxPTP.
The independent PEROUT change removes the 500000000 ns half-period from the
frequency-mode condition, so a one-second output uses the target-time path.
The project README reports that this resolves its PPS output behavior.
However, both the packaged driver and current upstream already contain
5e91c72e560c ("igc: Fix PPS delta between two synchronized end-points") and
84a192e46106 ("igc: Handle PPS start time programming for past time values").
The current source also programs a future target time in frequency mode.
I do not yet have a controlled comparison isolating a residual output failure
despite these fixes, or an erratum establishing the need to switch modes.
The proposed comparison is stock current igc against the same source with
only the one-line mode change. It will measure phase against an independent
reference, pulse width and polarity, and behavior under PHC adjustments,
CPU/network load, and repeated enable/disable on both channels.
Are there known I226 revisions or operating conditions where frequency-mode
1PPS remains incorrect with ST0/ST1 set? Would a target-time workaround be
appropriate if that comparison reproduces the failure?
The goal is small, independently justified changes against the Intel trees,
with the correct API semantics and hardware evidence. The packaged driver
should not be merged wholesale.
Thank you,
Ahmad Byagowi
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads