From: Ahmad Byagowi <ahmadexp@gmail.com>
To: netdev@vger.kernel.org
Cc: andrew+netdev@lunn.ch, arkadiusz.kubalewski@intel.com,
davem@davemloft.net, edumazet@kernel.org, jiri@resnulli.us,
kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com,
rmk+kernel@armlinux.org.uk, vadim.fedorenko@linux.dev,
vladimir.oltean@nxp.com
Subject: [PATCH net v4 0/5] Fix PTP teardown and Time Card DPLL operations
Date: Sun, 22 Nov 2026 17:57:30 -0800 [thread overview]
Message-ID: <20261122-timecard-common-v4-e0db4ab1aa-0-ahmadexp@gmail.com> (raw)
This series fixes timestamp teardown and existing ptp_ocp DPLL behavior.
It contains no WiWi board support and targets net.
Changes since v3:
- Follow Vadim's channel/pin distinction explicitly: send
PTP_CLK_REQ_EXTTS disable requests for timestamp channels directly,
without using ptp_disable_pinfunc(). Keep that helper for actual pin
configuration. Preserve cleanup after user-interface removal, shared
PPS handling, and final IRQ draining without a new driver lock.
- Handle combined input destinations in the DPLL frequency getter.
Report a known frequency only when the frequency-bearing destinations
agree; report zero for unconstrained, conflicting or unknown routes.
Output selectors still require an exact match.
- Recover disconnected SMA state from mux enable bits at initialization.
Neither buffer enabled is represented as IN: None, since hardware does
not retain a direction for that state. Do not write the mux or change
fixed-direction firmware behavior. Explain the ADVA X1 failure too.
- Add a separate fifth patch for the ART 10 MHz input table typo.
- Keep patch-specific explanations and brief validation statements in
the changelogs; move detailed testing/revision notes below the separator.
Keep the trailer blocks contiguous.
Patch 4's DCF correction is unchanged and retains Vadim's Reviewed-by.
Patches 2 and 3 changed substantially, so their earlier review tags are
not carried forward. They need fresh review.
Validation:
- Reproduced combined-input, ART-frequency and rebind failures against
the previous candidate using source-derived ASan/UBSan tests.
- Repeated teardown/shared-PPS tests 100 times; checked all six channels,
unassigned/zero pins, concurrent requests and active IRQ draining.
- Tested 4,669 input masks and 243 four-connector rebind configurations,
plus actual DPLL core get-before-set and supported-frequency checks.
- Rejected 16 deliberate regressions with runtime assertions.
- Built the PTP subtree for x86_64/i386, allmodconfig and allyesconfig,
with W=1 KCFLAGS=-Werror.
- Ran five PTP cleanup KUnit cases using real core register/unregister
in QEMU with KASAN and lockdep. No physical-card test is claimed.
This replaces the previous four-patch common-driver series. The separate
WiWi support series will follow for net-next after these fixes are in.
Previous series:
https://lore.kernel.org/r/20261120-timecard-common-v3-33316bf475-0-ahmadexp@gmail.com
Review prompting the explicit timestamp requests:
https://lore.kernel.org/r/08537eb6-3f85-4a46-b3be-46796998eda4@linux.dev
Additional DPLL, rebind and ART reports:
https://lore.kernel.org/r/179538006772.3135.15875996486888374193@kernel.org
https://lore.kernel.org/r/179538006912.3135.16971430532149423594@kernel.org
https://lore.kernel.org/r/179538007070.3135.8275620503580456948@kernel.org
As required by generated-content.rst, Codex assisted with the code, tests
and changelogs in response to review. This does not replace personal DCO
certification or hardware validation.
Ahmad Byagowi (5):
ptp: disable all timestamp channels after removing the user interfaces
ptp: ocp: handle hardware selectors and combined DPLL input routes
ptp: ocp: preserve disabled SMA inputs across driver rebind
ptp: ocp: correct the DCF output frequency
ptp: ocp: correct the ART 10 MHz input frequency
drivers/ptp/ptp_chardev.c | 14 ++++++----
drivers/ptp/ptp_ocp.c | 58 ++++++++++++++++++++++++++-------------
2 files changed, 48 insertions(+), 24 deletions(-)
base-commit: af6737b9066832a2017c281159950ba92385ce00
next reply other threads:[~2026-11-23 1:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 1:57 Ahmad Byagowi [this message]
2026-11-23 1:57 ` [PATCH net v4 1/5] ptp: disable all timestamp channels after removing the user interfaces Ahmad Byagowi
2026-11-23 1:57 ` [PATCH net v4 2/5] ptp: ocp: handle hardware selectors and combined DPLL input routes Ahmad Byagowi
2026-11-23 1:57 ` [PATCH net v4 3/5] ptp: ocp: preserve disabled SMA inputs across driver rebind Ahmad Byagowi
2026-11-23 1:57 ` [PATCH net v4 4/5] ptp: ocp: correct the DCF output frequency Ahmad Byagowi
2026-11-23 1:57 ` [PATCH net v4 5/5] ptp: ocp: correct the ART 10 MHz input frequency Ahmad Byagowi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261122-timecard-common-v4-e0db4ab1aa-0-ahmadexp@gmail.com \
--to=ahmadexp@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=arkadiusz.kubalewski@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=vadim.fedorenko@linux.dev \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox