* [Intel-wired-lan] [PATCH iwl-net] ice: fix missing dpll notification for SW pins
@ 2026-02-18 21:14 ` Petr Oros
0 siblings, 0 replies; 5+ messages in thread
From: Petr Oros @ 2026-02-18 21:14 UTC (permalink / raw)
To: netdev
Cc: ivecera, Przemek Kitszel, Eric Dumazet, Arkadiusz Kubalewski,
Andrew Lunn, Tony Nguyen, Simon Horman, intel-wired-lan,
Jakub Kicinski, Paolo Abeni, David S. Miller, linux-kernel
ice_dpll_notify_changes() sends dpll_pin_change_ntf() only for the
direct CGU input pin stored in d->active_input. Software-controlled
pins (SMA/U.FL) are separate dpll_pin objects that wrap a backing CGU
input, but they never receive a change notification. As a result,
userspace consumers such as synce4l that monitor SMA pins via dpll
netlink never learn when the pin state transitions (e.g. from
SELECTABLE to CONNECTED), even though 'dpll pin show' reports the
correct state on demand.
When the active input changes, also send dpll_pin_change_ntf() for any
registered SMA/U.FL input pin whose backing CGU input matches the old
or new active input.
Fixes: 2dd5d03c77e2 ("ice: redesign dpll sma/u.fl pins control")
Signed-off-by: Petr Oros <poros@redhat.com>
---
drivers/net/ethernet/intel/ice/ice_dpll.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
index c2ad39bfe177db..6f855fe4c78d62 100644
--- a/drivers/net/ethernet/intel/ice/ice_dpll.c
+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
@@ -2470,13 +2470,17 @@ static u64 ice_generate_clock_id(struct ice_pf *pf)
*/
static void ice_dpll_notify_changes(struct ice_dpll *d)
{
+ struct ice_dplls *dplls = &d->pf->dplls;
bool pin_notified = false;
+ int i;
if (d->prev_dpll_state != d->dpll_state) {
d->prev_dpll_state = d->dpll_state;
dpll_device_change_ntf(d->dpll);
}
if (d->prev_input != d->active_input) {
+ struct dpll_pin *old = d->prev_input;
+
if (d->prev_input)
dpll_pin_change_ntf(d->prev_input);
d->prev_input = d->active_input;
@@ -2484,6 +2488,20 @@ static void ice_dpll_notify_changes(struct ice_dpll *d)
dpll_pin_change_ntf(d->active_input);
pin_notified = true;
}
+ for (i = 0; i < ICE_DPLL_PIN_SW_NUM; i++) {
+ if (dplls->sma[i].pin &&
+ dplls->sma[i].direction ==
+ DPLL_PIN_DIRECTION_INPUT &&
+ (dplls->sma[i].input->pin == d->active_input ||
+ dplls->sma[i].input->pin == old))
+ dpll_pin_change_ntf(dplls->sma[i].pin);
+ if (dplls->ufl[i].pin &&
+ dplls->ufl[i].direction ==
+ DPLL_PIN_DIRECTION_INPUT &&
+ (dplls->ufl[i].input->pin == d->active_input ||
+ dplls->ufl[i].input->pin == old))
+ dpll_pin_change_ntf(dplls->ufl[i].pin);
+ }
}
if (d->prev_phase_offset != d->phase_offset) {
d->prev_phase_offset = d->phase_offset;
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH iwl-net] ice: fix missing dpll notification for SW pins
@ 2026-02-18 21:14 ` Petr Oros
0 siblings, 0 replies; 5+ messages in thread
From: Petr Oros @ 2026-02-18 21:14 UTC (permalink / raw)
To: netdev
Cc: ivecera, Petr Oros, Tony Nguyen, Przemek Kitszel, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Arkadiusz Kubalewski, intel-wired-lan, linux-kernel
ice_dpll_notify_changes() sends dpll_pin_change_ntf() only for the
direct CGU input pin stored in d->active_input. Software-controlled
pins (SMA/U.FL) are separate dpll_pin objects that wrap a backing CGU
input, but they never receive a change notification. As a result,
userspace consumers such as synce4l that monitor SMA pins via dpll
netlink never learn when the pin state transitions (e.g. from
SELECTABLE to CONNECTED), even though 'dpll pin show' reports the
correct state on demand.
When the active input changes, also send dpll_pin_change_ntf() for any
registered SMA/U.FL input pin whose backing CGU input matches the old
or new active input.
Fixes: 2dd5d03c77e2 ("ice: redesign dpll sma/u.fl pins control")
Signed-off-by: Petr Oros <poros@redhat.com>
---
drivers/net/ethernet/intel/ice/ice_dpll.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
index c2ad39bfe177db..6f855fe4c78d62 100644
--- a/drivers/net/ethernet/intel/ice/ice_dpll.c
+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
@@ -2470,13 +2470,17 @@ static u64 ice_generate_clock_id(struct ice_pf *pf)
*/
static void ice_dpll_notify_changes(struct ice_dpll *d)
{
+ struct ice_dplls *dplls = &d->pf->dplls;
bool pin_notified = false;
+ int i;
if (d->prev_dpll_state != d->dpll_state) {
d->prev_dpll_state = d->dpll_state;
dpll_device_change_ntf(d->dpll);
}
if (d->prev_input != d->active_input) {
+ struct dpll_pin *old = d->prev_input;
+
if (d->prev_input)
dpll_pin_change_ntf(d->prev_input);
d->prev_input = d->active_input;
@@ -2484,6 +2488,20 @@ static void ice_dpll_notify_changes(struct ice_dpll *d)
dpll_pin_change_ntf(d->active_input);
pin_notified = true;
}
+ for (i = 0; i < ICE_DPLL_PIN_SW_NUM; i++) {
+ if (dplls->sma[i].pin &&
+ dplls->sma[i].direction ==
+ DPLL_PIN_DIRECTION_INPUT &&
+ (dplls->sma[i].input->pin == d->active_input ||
+ dplls->sma[i].input->pin == old))
+ dpll_pin_change_ntf(dplls->sma[i].pin);
+ if (dplls->ufl[i].pin &&
+ dplls->ufl[i].direction ==
+ DPLL_PIN_DIRECTION_INPUT &&
+ (dplls->ufl[i].input->pin == d->active_input ||
+ dplls->ufl[i].input->pin == old))
+ dpll_pin_change_ntf(dplls->ufl[i].pin);
+ }
}
if (d->prev_phase_offset != d->phase_offset) {
d->prev_phase_offset = d->phase_offset;
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-net] ice: fix missing dpll notification for SW pins
2026-02-18 21:14 ` Petr Oros
@ 2026-02-19 9:43 ` Simon Horman
-1 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2026-02-19 9:43 UTC (permalink / raw)
To: Petr Oros
Cc: netdev, ivecera, Tony Nguyen, Przemek Kitszel, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Arkadiusz Kubalewski, intel-wired-lan, linux-kernel
On Wed, Feb 18, 2026 at 10:14:14PM +0100, Petr Oros wrote:
> ice_dpll_notify_changes() sends dpll_pin_change_ntf() only for the
> direct CGU input pin stored in d->active_input. Software-controlled
> pins (SMA/U.FL) are separate dpll_pin objects that wrap a backing CGU
> input, but they never receive a change notification. As a result,
> userspace consumers such as synce4l that monitor SMA pins via dpll
> netlink never learn when the pin state transitions (e.g. from
> SELECTABLE to CONNECTED), even though 'dpll pin show' reports the
> correct state on demand.
>
> When the active input changes, also send dpll_pin_change_ntf() for any
> registered SMA/U.FL input pin whose backing CGU input matches the old
> or new active input.
>
> Fixes: 2dd5d03c77e2 ("ice: redesign dpll sma/u.fl pins control")
> Signed-off-by: Petr Oros <poros@redhat.com>
> ---
> drivers/net/ethernet/intel/ice/ice_dpll.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
> index c2ad39bfe177db..6f855fe4c78d62 100644
> --- a/drivers/net/ethernet/intel/ice/ice_dpll.c
> +++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
> @@ -2470,13 +2470,17 @@ static u64 ice_generate_clock_id(struct ice_pf *pf)
> */
> static void ice_dpll_notify_changes(struct ice_dpll *d)
> {
> + struct ice_dplls *dplls = &d->pf->dplls;
> bool pin_notified = false;
> + int i;
>
> if (d->prev_dpll_state != d->dpll_state) {
> d->prev_dpll_state = d->dpll_state;
> dpll_device_change_ntf(d->dpll);
> }
> if (d->prev_input != d->active_input) {
> + struct dpll_pin *old = d->prev_input;
nit: For consistency I think you can reduce the scope of i to this block.
Or even declare it inside for().
> +
> if (d->prev_input)
> dpll_pin_change_ntf(d->prev_input);
> d->prev_input = d->active_input;
> @@ -2484,6 +2488,20 @@ static void ice_dpll_notify_changes(struct ice_dpll *d)
> dpll_pin_change_ntf(d->active_input);
> pin_notified = true;
> }
> + for (i = 0; i < ICE_DPLL_PIN_SW_NUM; i++) {
> + if (dplls->sma[i].pin &&
> + dplls->sma[i].direction ==
> + DPLL_PIN_DIRECTION_INPUT &&
> + (dplls->sma[i].input->pin == d->active_input ||
> + dplls->sma[i].input->pin == old))
> + dpll_pin_change_ntf(dplls->sma[i].pin);
> + if (dplls->ufl[i].pin &&
> + dplls->ufl[i].direction ==
> + DPLL_PIN_DIRECTION_INPUT &&
> + (dplls->ufl[i].input->pin == d->active_input ||
> + dplls->ufl[i].input->pin == old))
> + dpll_pin_change_ntf(dplls->ufl[i].pin);
The condition above is pretty dense. And repeated.
I wonder if a helper would improve readability here.
> + }
> }
> if (d->prev_phase_offset != d->phase_offset) {
> d->prev_phase_offset = d->phase_offset;
> --
> 2.52.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH iwl-net] ice: fix missing dpll notification for SW pins
@ 2026-02-19 9:43 ` Simon Horman
0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2026-02-19 9:43 UTC (permalink / raw)
To: Petr Oros
Cc: netdev, ivecera, Tony Nguyen, Przemek Kitszel, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Arkadiusz Kubalewski, intel-wired-lan, linux-kernel
On Wed, Feb 18, 2026 at 10:14:14PM +0100, Petr Oros wrote:
> ice_dpll_notify_changes() sends dpll_pin_change_ntf() only for the
> direct CGU input pin stored in d->active_input. Software-controlled
> pins (SMA/U.FL) are separate dpll_pin objects that wrap a backing CGU
> input, but they never receive a change notification. As a result,
> userspace consumers such as synce4l that monitor SMA pins via dpll
> netlink never learn when the pin state transitions (e.g. from
> SELECTABLE to CONNECTED), even though 'dpll pin show' reports the
> correct state on demand.
>
> When the active input changes, also send dpll_pin_change_ntf() for any
> registered SMA/U.FL input pin whose backing CGU input matches the old
> or new active input.
>
> Fixes: 2dd5d03c77e2 ("ice: redesign dpll sma/u.fl pins control")
> Signed-off-by: Petr Oros <poros@redhat.com>
> ---
> drivers/net/ethernet/intel/ice/ice_dpll.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
> index c2ad39bfe177db..6f855fe4c78d62 100644
> --- a/drivers/net/ethernet/intel/ice/ice_dpll.c
> +++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
> @@ -2470,13 +2470,17 @@ static u64 ice_generate_clock_id(struct ice_pf *pf)
> */
> static void ice_dpll_notify_changes(struct ice_dpll *d)
> {
> + struct ice_dplls *dplls = &d->pf->dplls;
> bool pin_notified = false;
> + int i;
>
> if (d->prev_dpll_state != d->dpll_state) {
> d->prev_dpll_state = d->dpll_state;
> dpll_device_change_ntf(d->dpll);
> }
> if (d->prev_input != d->active_input) {
> + struct dpll_pin *old = d->prev_input;
nit: For consistency I think you can reduce the scope of i to this block.
Or even declare it inside for().
> +
> if (d->prev_input)
> dpll_pin_change_ntf(d->prev_input);
> d->prev_input = d->active_input;
> @@ -2484,6 +2488,20 @@ static void ice_dpll_notify_changes(struct ice_dpll *d)
> dpll_pin_change_ntf(d->active_input);
> pin_notified = true;
> }
> + for (i = 0; i < ICE_DPLL_PIN_SW_NUM; i++) {
> + if (dplls->sma[i].pin &&
> + dplls->sma[i].direction ==
> + DPLL_PIN_DIRECTION_INPUT &&
> + (dplls->sma[i].input->pin == d->active_input ||
> + dplls->sma[i].input->pin == old))
> + dpll_pin_change_ntf(dplls->sma[i].pin);
> + if (dplls->ufl[i].pin &&
> + dplls->ufl[i].direction ==
> + DPLL_PIN_DIRECTION_INPUT &&
> + (dplls->ufl[i].input->pin == d->active_input ||
> + dplls->ufl[i].input->pin == old))
> + dpll_pin_change_ntf(dplls->ufl[i].pin);
The condition above is pretty dense. And repeated.
I wonder if a helper would improve readability here.
> + }
> }
> if (d->prev_phase_offset != d->phase_offset) {
> d->prev_phase_offset = d->phase_offset;
> --
> 2.52.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-net] ice: fix missing dpll notification for SW pins
2026-02-18 21:14 ` Petr Oros
(?)
(?)
@ 2026-02-19 11:07 ` Kwapulinski, Piotr
-1 siblings, 0 replies; 5+ messages in thread
From: Kwapulinski, Piotr @ 2026-02-19 11:07 UTC (permalink / raw)
To: Oros, Petr, netdev@vger.kernel.org
Cc: Vecera, Ivan, Kitszel, Przemyslaw, Eric Dumazet,
Kubalewski, Arkadiusz, Andrew Lunn, Nguyen, Anthony L,
Simon Horman, intel-wired-lan@lists.osuosl.org, Jakub Kicinski,
Paolo Abeni, David S. Miller, linux-kernel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 2301 bytes --]
>From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> on behalf of Petr Oros <poros@redhat.com>
>Sent: Wednesday, February 18, 2026 10:14 PM
>To: netdev@vger.kernel.org <netdev@vger.kernel.org>
>Cc: Vecera, Ivan <ivecera@redhat.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Eric Dumazet <edumazet@google.com>; Kubalewski, Arkadiusz <arkadiusz.kubalewski@intel.com>; Andrew Lunn <andrew+netdev@lunn.ch>; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Simon Horman <horms@kernel.org>; intel-wired-lan@lists.osuosl.org <intel-wired-lan@lists.osuosl.org>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; David S. Miller <davem@davemloft.net>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>
>Subject: [Intel-wired-lan] [PATCH iwl-net] ice: fix missing dpll notification for SW pins
>
>ice_dpll_notify_changes() sends dpll_pin_change_ntf() only for the
>direct CGU input pin stored in d->active_input. Software-controlled
>pins (SMA/U.FL) are separate dpll_pin objects that wrap a backing CGU
>input, but they never receive a change notification. As a result,
>userspace consumers such as synce4l that monitor SMA pins via dpll
>netlink never learn when the pin state transitions (e.g. from
>SELECTABLE to CONNECTED), even though 'dpll pin show' reports the
>correct state on demand.
>
>
>When the active input changes, also send dpll_pin_change_ntf() for any
>registered SMA/U.FL input pin whose backing CGU input matches the old
>or new active input.
>
>
>Fixes: 2dd5d03c77e2 ("ice: redesign dpll sma/u.fl pins control")
>Signed-off-by: Petr Oros <poros@redhat.com>
>---
> drivers/net/ethernet/intel/ice/ice_dpll.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
>
>diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
>index c2ad39bfe177db..6f855fe4c78d62 100644
>--- a/drivers/net/ethernet/intel/ice/ice_dpll.c
>+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
>@@ -2470,13 +2470,17 @@ static u64 ice_generate_clock_id(struct ice_pf *pf)
> */
> static void ice_dpll_notify_changes(struct ice_dpll *d)
> {
>+ struct ice_dplls *dplls = &d->pf->dplls;
> bool pin_notified = false;
>+ int i;
Please declare within a loop itself
Piotr
[-- Attachment #2: Type: text/html, Size: 12029 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-19 11:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 21:14 [Intel-wired-lan] [PATCH iwl-net] ice: fix missing dpll notification for SW pins Petr Oros
2026-02-18 21:14 ` Petr Oros
2026-02-19 9:43 ` [Intel-wired-lan] " Simon Horman
2026-02-19 9:43 ` Simon Horman
2026-02-19 11:07 ` [Intel-wired-lan] " Kwapulinski, Piotr
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.