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 3/4] ptp: ocp: report disabled SMA inputs consistently over DPLL
Date: Tue, 24 Nov 2026 14:52:36 -0800 [thread overview]
Message-ID: <20261124-timecard-common-v5-tests-r3-ahmadexp@gmail.com> (raw)
In-Reply-To: <179555822748.3135.10487682659847621386@kernel.org>
Thank you. Both points are valid for v3 and are addressed in v5.
> Can a disabled input still be reported as 10 MHz after the driver is
> unbound and rebound?
> The new check looks only at the software flag sma->disabled. Disabling
> an input in ptp_ocp_sma_store_val() writes 0 to the whole input field,
> and that also clears SMA_ENABLE:
> Would it work to check the raw SMA_ENABLE bit for !sma->fixed_dir pins
> before masking? Another option is to set sma->disabled from that bit in
> ptp_ocp_sma_fb_init().
V5 patch 5 takes the initialization approach. For direction-configurable
FB-style connectors, including ADVA and ADVA X1, it recovers disabled
state from the mux enable bits. If neither buffer is enabled, it reports
input/None without writing the mux. It leaves legacy fixed-direction
firmware's interpretation unchanged. This fixes the pre-DPLL bind-state
bug separately, with Fixes: b2c4f0ac53f3.
V5 patch 6 then makes DPLL use the disabled state consistently with sysfs
and report 0 Hz, permitting a subsequent 10 MHz request on FB/ADVA to
re-enable the input. Its Fixes tag remains 09eeb3aecc6c.
The ASan/UBSan tests pass 243 modeled FB/ADVA/X1 rebind states with fresh
driver state and retained mux values, all four connectors, zero MMIO
writes and legacy fixed-direction checks. The boundary test also applies
patch 5 alone to the net base and verifies the initialization correction
without any DPLL test calls. Retained mux state is a model assumption;
no physical unbind/rebind or retained-register experiment was performed.
> Could the changelog describe only the testing that applies to this
> change?
Agreed. The v5 messages now describe each change's own test coverage and
limits. Patch 5 describes initialization/rebind tests; patch 6 describes
disabled-input reporting and recovery. Neither borrows the DCF77 or
teardown result. Patch 6 also explains that X1 zero-selector recovery
already works after patch 4, rather than claiming a second X1 -EINVAL fix.
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-boundary-tests.py, results/original/fixed-rebind.log and
results/original/boundary-tests.log. The published model runners and all
20 negative variants passed again before publication.
V5 series:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-0-ahmadexp@gmail.com
Patch 5, recover disabled SMA inputs when binding:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-5-ahmadexp@gmail.com
Patch 6, report zero frequency for disabled SMA inputs:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-6-ahmadexp@gmail.com
Ahmad
next prev parent 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
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 [this message]
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-r3-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