Netdev List
 help / color / mirror / Atom feed
From: Ahmad Byagowi <ahmadexp@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: andrew+netdev@lunn.ch, arkadiusz.kubalewski@intel.com,
	davem@davemloft.net, edumazet@kernel.org, jiri@resnulli.us,
	kuba@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com,
	richardcochran@gmail.com, rmk+kernel@armlinux.org.uk,
	vadim.fedorenko@linux.dev, vladimir.oltean@nxp.com
Subject: Re: [PATCH net v3 2/4] ptp: ocp: use hardware selectors in DPLL frequency operations
Date: Tue, 24 Nov 2026 14:52:33 -0800	[thread overview]
Message-ID: <20261124-timecard-common-v5-tests-r2-ahmadexp@gmail.com> (raw)
In-Reply-To: <179555822538.3135.15182959488825985221@kernel.org>

Thank you. This is a valid gap in v3's mask-only correction.

> Does this mask fix the get/dump failure on adva_x1 after a DPLL direction
> change to input?

> On fb and adva, 0 matches the "10Mhz" entry. The adva_x1 input table has
> no 0x0000 entry:

> ptp_ocp_dpll_direction_set() clears sma->disabled, so the disabled-state
> substitution added later does not trigger here. The adva_x1 input table
> is unchanged at the end of the series.

Agreed: the disabled flag alone does not address the direction-change
case. V5 patch 4 handles input selector combinations instead of failing
every non-exact lookup. An X1 zero input selector reports 0 Hz (no known
frequency), which permits the DPLL core's get-before-set path to proceed.
It does not invent a 10 MHz X1 route or change the selector table. Output
selectors still require exact matches.

The published x1-direction test executes the actual direction callback
for all four pins: raw 0x8000, disabled=false, a successful 0 Hz read,
then successful PPS recovery through the actual DPLL get-before-set
function. The boundary test passes immediately after v5 patch 4, before
patches 5 and 6. This is not an additional fix attributed to patch 6.

The ASan/UBSan routing tests also pass 4,669 FB/ADVA/X1 input masks,
including combined destinations, conflicting frequencies, unknown bits
and strict output lookup. These are source-derived tests with stubbed
MMIO, not observations on physical ADVA X1 hardware.

Public test fixtures, reproduction instructions and logs:
https://github.com/Time-Appliances-Project/Time-Card/tree/c889b25e9ea175f64dd811457f8f2c3d29512e45/DRV/Linux/tests/common-v5
See tests/run-routing-tests.py (x1-direction), tests/run-boundary-tests.py,
results/original/fixed-x1.log and results/original/boundary-tests.log.
The published runners and negative variants were rerun before publication.

V5 series:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-0-ahmadexp@gmail.com
Patch 4, hardware selectors and combined DPLL input routes:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-4-ahmadexp@gmail.com

Ahmad

  reply	other threads:[~2026-11-24 22:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 21:21 [PATCH net v3 0/4] ptp: fix timestamp teardown and OCP DPLL routing Ahmad Byagowi
2026-11-20 21:21 ` [PATCH net v3 1/4] ptp: disable all timestamp channels after removing the user interfaces Ahmad Byagowi
2026-11-22 20:10   ` Vadim Fedorenko
2026-11-23  1:57     ` Ahmad Byagowi
2026-11-24 22:10   ` netdev-bot+sashiko
2026-11-24 22:52     ` Ahmad Byagowi
2026-11-20 21:21 ` [PATCH net v3 2/4] ptp: ocp: use hardware selectors in DPLL frequency operations Ahmad Byagowi
2026-11-24 22:10   ` netdev-bot+sashiko
2026-11-24 22:52     ` Ahmad Byagowi [this message]
2026-11-20 21:21 ` [PATCH net v3 3/4] ptp: ocp: report disabled SMA inputs consistently over DPLL Ahmad Byagowi
2026-11-24 22:10   ` netdev-bot+sashiko
2026-11-24 22:52     ` Ahmad Byagowi
2026-11-20 21:21 ` [PATCH net v3 4/4] ptp: ocp: correct the DCF output 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=20261124-timecard-common-v5-tests-r2-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-bot+sashiko@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