Netdev List
 help / color / mirror / Atom feed
* [PATCH net v4 0/5] Fix PTP teardown and Time Card DPLL operations
@ 2026-11-23  1:57 Ahmad Byagowi
  2026-11-23  1:57 ` [PATCH net v4 1/5] ptp: disable all timestamp channels after removing the user interfaces Ahmad Byagowi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ahmad Byagowi @ 2026-11-23  1:57 UTC (permalink / raw)
  To: netdev
  Cc: andrew+netdev, arkadiusz.kubalewski, davem, edumazet, jiri, kuba,
	pabeni, richardcochran, rmk+kernel, vadim.fedorenko,
	vladimir.oltean

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-23  1:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  1:57 [PATCH net v4 0/5] Fix PTP teardown and Time Card DPLL operations Ahmad Byagowi
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox