Netdev List
 help / color / mirror / Atom feed
From: Ahmad Byagowi <ahmadexp@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, 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: Re: [PATCH net v4 3/5] ptp: ocp: preserve disabled SMA inputs across driver rebind
Date: Mon, 23 Nov 2026 20:42:56 -0800	[thread overview]
Message-ID: <20261123-timecard-common-v5-d669cfa034-r2-ahmadexp@gmail.com> (raw)
In-Reply-To: <179548551472.3135.11972018356692852897@kernel.org>

On Tue, 24 Nov 2026 at 01:58:34 +0000, netdev-bot+sashiko@kernel.org wrote:
> [Severity: Low]
> Does the ADVA X1 part of this description still hold for the tree this
> patch applies to?
>
> The previous patch in this series, "ptp: ocp: handle hardware selectors
> and combined DPLL input routes", changed ptp_ocp_dpll_frequency_get().
> An input that fails the exact match now falls through to the
> combined-destination loop instead of returning -EINVAL:

No. Thank you for catching the inaccurate incremental description. After
the combined-input patch, a disabled X1 input with raw selector zero
already reads as zero Hz and can be re-enabled through the DPLL core.
The explicit SMA_DISABLE substitution has no additional visible effect
for that X1 case. Its effect is on FB/ADVA, where zero otherwise matches
10 MHz. X1 separately benefits from recovering disabled state on rebind.

The v5 series says this explicitly. A boundary test runs the actual X1
getter and DPLL core get-before-set path after the combined-input patch
but before either disabled-state patch. It passes disabled-to-PPS
re-enable and output-to-input direction-change recovery on all four
pins. These are source-derived tests with stubbed MMIO, not hardware
observations.

> [Severity: Low]
> Should this also have a Fixes: tag for b2c4f0ac53f3 ("ptp: ocp: Add
> ability to disable input selectors.")?
>
> The init-time recovery in ptp_ocp_sma_fb_init() fixes a lost disabled
> state that goes back to that commit. It added the software-only
> sma->disabled flag and the SMA_DISABLE substitution in
> ptp_ocp_sma_show(). It also added this write in ptp_ocp_sma_store_val(),
> which clears the SMA_ENABLE bit:

Yes. I split the old patch into two independently described changes:

  v5 patch 5: recover disabled state at bind, with
    Fixes: b2c4f0ac53f3 ("ptp: ocp: Add ability to disable input selectors.")

  v5 patch 6: report disabled inputs as zero Hz through DPLL, with
    Fixes: 09eeb3aecc6c ("ptp_ocp: implement DPLL ops")

Patch 5 contains only the initialization hunk, with no DPLL dependency.
It applies independently to the current net base. The base reproduces
the lost state, and that patch alone passes 243 modeled FB/ADVA/X1
initialization states without calling DPLL or writing the mux. Backports
to older trees may still need context/name adjustments.

The complete series also passes the rebind plus DPLL re-enable tests,
4,669 input-route combinations, ART and DCF frequency tests, and nine
deliberately broken routing variants are rejected by runtime assertions.
No physical rebind was performed. Vadim's Reviewed-by remains only on
the unchanged DCF correction; I have not carried it onto changed patches.

I have sent the eight-patch v5 series to net for review.

Series:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-0-ahmadexp@gmail.com
Patch 4:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-4-ahmadexp@gmail.com
Patch 5:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-5-ahmadexp@gmail.com
Patch 6:
https://lore.kernel.org/r/20261123-timecard-common-v5-d669cfa034-6-ahmadexp@gmail.com

Ahmad

  reply	other threads:[~2026-11-24  4:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-24  1:58   ` netdev-bot+sashiko
2026-11-24  4:42     ` 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-24  1:58   ` netdev-bot+sashiko
2026-11-24  4:42     ` Ahmad Byagowi [this message]
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=20261123-timecard-common-v5-d669cfa034-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