mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Vecera <ivecera@redhat.com>
To: "Kubalewski, Arkadiusz" <arkadiusz.kubalewski@intel.com>,
	Jiri Pirko <jiri@resnulli.us>,
	Vadim Fedorenko <vadim.fedorenko@linux.dev>
Cc: Jakub Kicinski <kuba@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Min Li <min.li@microchip.com>,
	"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
	"Kitszel, Przemyslaw" <przemyslaw.kitszel@intel.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Richard Cochran <richardcochran@gmail.com>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"intel-wired-lan@lists.osuosl.org"
	<intel-wired-lan@lists.osuosl.org>,
	"Nitka, Grzegorz" <grzegorz.nitka@intel.com>,
	Karol Kolacinski <karol.kolacinski@intel.com>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Tariq Toukan <tariqt@nvidia.com>, "Oros, Petr" <poros@redhat.com>
Subject: Re: [PATCH net-next v2 0/9] dpll: do not serialize driver callbacks under global dpll_lock
Date: Wed, 25 Nov 2026 17:41:25 +0100	[thread overview]
Message-ID: <cbb7e8b0-1418-4120-abf3-f2b2f35cf585@redhat.com> (raw)
In-Reply-To: <MW4PR11MB69845212A048D72C99D3AE079B432@MW4PR11MB6984.namprd11.prod.outlook.com>

On 11/25/26 16:56, Kubalewski, Arkadiusz wrote:
>> From: Ivan Vecera <ivecera@redhat.com>
>> Sent: Wednesday, November 25, 2026 3:32 PM
>>
>> [...]
>>
>> I fully agree with you guys... I also don't like the way how the ice
>> implemented pin sharing
> 
> Could you elaborate on that?
> 
> Thank you!
> Arkadiusz

Sure. ice uses the API as it was designed, so this is more about the
model than about the driver. To support E825, two series extended the
core so that ice can plug into the objects of another driver:

- "dpll: Core improvements and ice E825-C SyncE support", which I
   posted myself together with your ice patch, added fwnode
   associations, the notifier chain and the MUX pin type in zl3073x,
   so that ice can register its RCLK pins under a zl3073x input pin.
- "dpll/ice: Add generic DPLL type and full TX reference clock control
   for E825" allowed registering a pin found by fwnode with a DPLL of
   another driver, added the notification source ID and let fwnode
   pins attempt a state change without the capability bit, so that ice
   can register zl3073x output pins with its TXC and TSPLL DPLLs. The
   same series also carried five fixes for the on-pin and notification
   paths.

On GNR-D this leads to:

- A pin-get of a zl3073x output pin runs zl3073x callbacks for the pin
   attributes and ice callbacks for the TXC or TSPLL registration, and
   a notification that ice sends for the SyncE pin runs zl3073x
   callbacks from ice context.
- The zl3073x input has to be of type MUX, although the mux is the CGU
   in the E825. The RCLK pins are registered with the zl3073x DPLLs as
   well, and the ice callbacks get the private data of the zl3073x
   parent pin.
- The same pin reports direction output on the zl3073x DPLLs and input
   on the ice DPLLs, and the properties ice fills for it are never
   used, because the zl3073x pin is.
- ice follows the lifetime of the zl3073x pins with references, the
   notifier and a work item that waits for the ice init and drops the
   ice notifications by the source ID.

The RFC keeps every pin with the driver that created it and describes
the board wiring as a static link between two pins, found through the
same fwnode references. ice gets its own pins for the TXC and TSPLL
inputs, and the CGU RCLK muxes become ice DPLL devices with the port
RCLK pins as inputs, whose outputs are linked to the zl3073x inputs.
No callback then sees an object of another driver, and the special
cases above go away.

Thanks,
Ivan


  reply	other threads:[~2026-11-25 16:41 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 16:40 Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 1/9] ice: dpll: notify TSPLL lock status from the periodic work only Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 2/9] dpll: add domain object Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 3/9] dpll: take domain locks around driver callbacks Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 4/9] dpll: convert dpll_lock to rwsem Ivan Vecera
2026-11-16  8:21   ` Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 5/9] dpll: add KUnit tests for core locking Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 6/9] dpll: reject measured_freq_get for foreign and on-pin registrations Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 7/9] dpll: zl3073x: update locking comments Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 8/9] ice: dpll: " Ivan Vecera
2026-11-16  8:22   ` Ivan Vecera
2026-11-11 16:40 ` [PATCH net-next v2 9/9] dpll: document locking rules Ivan Vecera
2026-11-16  8:23   ` Ivan Vecera
2026-11-16  8:24 ` [PATCH net-next v2 0/9] dpll: do not serialize driver callbacks under global dpll_lock Ivan Vecera
2026-11-17  2:17   ` Jakub Kicinski
2026-11-18 15:30     ` Ivan Vecera
2026-11-17  2:16 ` Jakub Kicinski
2026-11-18 15:29   ` Ivan Vecera
2026-11-19  1:44     ` Jakub Kicinski
2026-11-19 12:29       ` Ivan Vecera
2026-11-19 21:38         ` Jakub Kicinski
2026-11-20  7:39           ` Ivan Vecera
2026-11-20 20:00             ` Vadim Fedorenko
2026-11-22 15:54               ` Jiri Pirko
2026-11-25 14:31                 ` Ivan Vecera
2026-11-25 15:56                   ` Kubalewski, Arkadiusz
2026-11-25 16:41                     ` Ivan Vecera [this message]
2026-11-25 15:46             ` Kubalewski, Arkadiusz
2026-11-25 15:36         ` Kubalewski, Arkadiusz
2026-11-25 16:27           ` Ivan Vecera

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=cbb7e8b0-1418-4120-abf3-f2b2f35cf585@redhat.com \
    --to=ivecera@redhat.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=arkadiusz.kubalewski@intel.com \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=grzegorz.nitka@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jiri@resnulli.us \
    --cc=karol.kolacinski@intel.com \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=min.li@microchip.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=poros@redhat.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=rdunlap@infradead.org \
    --cc=richardcochran@gmail.com \
    --cc=saeedm@nvidia.com \
    --cc=skhan@linuxfoundation.org \
    --cc=tariqt@nvidia.com \
    --cc=vadim.fedorenko@linux.dev \
    /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

all inboxes | Powered by JetHome®