* [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task schedule delay to 300us
@ 2025-11-10 20:58 Brian Vazquez
2025-11-12 13:06 ` Loktionov, Aleksandr
0 siblings, 1 reply; 3+ messages in thread
From: Brian Vazquez @ 2025-11-10 20:58 UTC (permalink / raw)
To: Brian Vazquez, Tony Nguyen, Przemek Kitszel, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, intel-wired-lan
Cc: David Decotigny, Anjali Singhai, Sridhar Samudrala, linux-kernel,
netdev, emil.s.tantilov, Brian Vazquez
During the IDPF init phase, the mailbox runs in poll mode until it is
configured to properly handle interrupts. The previous delay of 300ms is
excessively long for the mailbox polling mechanism, which causes a slow
initialization of ~2s:
echo 0000:06:12.4 > /sys/bus/pci/drivers/idpf/bind
[ 52.444239] idpf 0000:06:12.4: enabling device (0000 -> 0002)
[ 52.485005] idpf 0000:06:12.4: Device HW Reset initiated
[ 54.177181] idpf 0000:06:12.4: PTP init failed, err=-EOPNOTSUPP
[ 54.206177] idpf 0000:06:12.4: Minimum RX descriptor support not provided, using the default
[ 54.206182] idpf 0000:06:12.4: Minimum TX descriptor support not provided, using the default
Changing the delay to 300us avoids the delays during the initial mailbox
transactions, making the init phase much faster:
[ 83.342590] idpf 0000:06:12.4: enabling device (0000 -> 0002)
[ 83.384402] idpf 0000:06:12.4: Device HW Reset initiated
[ 83.518323] idpf 0000:06:12.4: PTP init failed, err=-EOPNOTSUPP
[ 83.547430] idpf 0000:06:12.4: Minimum RX descriptor support not provided, using the default
[ 83.547435] idpf 0000:06:12.4: Minimum TX descriptor support not provided, using the default
Signed-off-by: Brian Vazquez <brianvv@google.com>
---
drivers/net/ethernet/intel/idpf/idpf_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/idpf/idpf_lib.c b/drivers/net/ethernet/intel/idpf/idpf_lib.c
index 52fe45b42095..44fbffab9737 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_lib.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c
@@ -1313,7 +1313,7 @@ void idpf_mbx_task(struct work_struct *work)
idpf_mb_irq_enable(adapter);
else
queue_delayed_work(adapter->mbx_wq, &adapter->mbx_task,
- msecs_to_jiffies(300));
+ usecs_to_jiffies(300));
idpf_recv_mb_msg(adapter, adapter->hw.arq);
}
--
2.51.2.1041.gc1ab5b90ca-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task schedule delay to 300us
2025-11-10 20:58 [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task schedule delay to 300us Brian Vazquez
@ 2025-11-12 13:06 ` Loktionov, Aleksandr
2025-12-10 21:28 ` Salin, Samuel
0 siblings, 1 reply; 3+ messages in thread
From: Loktionov, Aleksandr @ 2025-11-12 13:06 UTC (permalink / raw)
To: Brian Vazquez, Brian Vazquez, Nguyen, Anthony L,
Kitszel, Przemyslaw, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, intel-wired-lan@lists.osuosl.org
Cc: David Decotigny, Singhai, Anjali, Samudrala, Sridhar,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
Tantilov, Emil S
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf
> Of Brian Vazquez
> Sent: Monday, November 10, 2025 9:59 PM
> To: Brian Vazquez <brianvv.kernel@gmail.com>; Nguyen, Anthony L
> <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@intel.com>; David S. Miller <davem@davemloft.net>;
> Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>;
> Paolo Abeni <pabeni@redhat.com>; intel-wired-lan@lists.osuosl.org
> Cc: David Decotigny <decot@google.com>; Singhai, Anjali
> <anjali.singhai@intel.com>; Samudrala, Sridhar
> <sridhar.samudrala@intel.com>; linux-kernel@vger.kernel.org;
> netdev@vger.kernel.org; Tantilov, Emil S <emil.s.tantilov@intel.com>;
> Brian Vazquez <brianvv@google.com>
> Subject: [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task
> schedule delay to 300us
>
> During the IDPF init phase, the mailbox runs in poll mode until it is
> configured to properly handle interrupts. The previous delay of 300ms
> is excessively long for the mailbox polling mechanism, which causes a
> slow initialization of ~2s:
>
> echo 0000:06:12.4 > /sys/bus/pci/drivers/idpf/bind
>
> [ 52.444239] idpf 0000:06:12.4: enabling device (0000 -> 0002)
> [ 52.485005] idpf 0000:06:12.4: Device HW Reset initiated
> [ 54.177181] idpf 0000:06:12.4: PTP init failed, err=-EOPNOTSUPP
> [ 54.206177] idpf 0000:06:12.4: Minimum RX descriptor support not
> provided, using the default
> [ 54.206182] idpf 0000:06:12.4: Minimum TX descriptor support not
> provided, using the default
>
> Changing the delay to 300us avoids the delays during the initial
> mailbox transactions, making the init phase much faster:
>
> [ 83.342590] idpf 0000:06:12.4: enabling device (0000 -> 0002)
> [ 83.384402] idpf 0000:06:12.4: Device HW Reset initiated
> [ 83.518323] idpf 0000:06:12.4: PTP init failed, err=-EOPNOTSUPP
> [ 83.547430] idpf 0000:06:12.4: Minimum RX descriptor support not
> provided, using the default
> [ 83.547435] idpf 0000:06:12.4: Minimum TX descriptor support not
> provided, using the default
>
> Signed-off-by: Brian Vazquez <brianvv@google.com>
> ---
> drivers/net/ethernet/intel/idpf/idpf_lib.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/idpf/idpf_lib.c
> b/drivers/net/ethernet/intel/idpf/idpf_lib.c
> index 52fe45b42095..44fbffab9737 100644
> --- a/drivers/net/ethernet/intel/idpf/idpf_lib.c
> +++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c
> @@ -1313,7 +1313,7 @@ void idpf_mbx_task(struct work_struct *work)
> idpf_mb_irq_enable(adapter);
> else
> queue_delayed_work(adapter->mbx_wq, &adapter->mbx_task,
> - msecs_to_jiffies(300));
> + usecs_to_jiffies(300));
>
> idpf_recv_mb_msg(adapter, adapter->hw.arq); }
> --
> 2.51.2.1041.gc1ab5b90ca-goog
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task schedule delay to 300us
2025-11-12 13:06 ` Loktionov, Aleksandr
@ 2025-12-10 21:28 ` Salin, Samuel
0 siblings, 0 replies; 3+ messages in thread
From: Salin, Samuel @ 2025-12-10 21:28 UTC (permalink / raw)
To: Loktionov, Aleksandr, Brian Vazquez, Brian Vazquez,
Nguyen, Anthony L, Kitszel, Przemyslaw, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni,
intel-wired-lan@lists.osuosl.org
Cc: David Decotigny, Singhai, Anjali, Samudrala, Sridhar,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
Tantilov, Emil S
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Loktionov, Aleksandr
> Sent: Wednesday, November 12, 2025 5:06 AM
> To: Brian Vazquez <brianvv@google.com>; Brian Vazquez
> <brianvv.kernel@gmail.com>; Nguyen, Anthony L
> <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@intel.com>; David S. Miller <davem@davemloft.net>;
> Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>;
> Paolo Abeni <pabeni@redhat.com>; intel-wired-lan@lists.osuosl.org
> Cc: David Decotigny <decot@google.com>; Singhai, Anjali
> <anjali.singhai@intel.com>; Samudrala, Sridhar
> <sridhar.samudrala@intel.com>; linux-kernel@vger.kernel.org;
> netdev@vger.kernel.org; Tantilov, Emil S <emil.s.tantilov@intel.com>
> Subject: Re: [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task schedule
> delay to 300us
>
>
>
> > -----Original Message-----
> > From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf
> > Of Brian Vazquez
> > Sent: Monday, November 10, 2025 9:59 PM
> > To: Brian Vazquez <brianvv.kernel@gmail.com>; Nguyen, Anthony L
> > <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw
> > <przemyslaw.kitszel@intel.com>; David S. Miller <davem@davemloft.net>;
> > Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>;
> > Paolo Abeni <pabeni@redhat.com>; intel-wired-lan@lists.osuosl.org
> > Cc: David Decotigny <decot@google.com>; Singhai, Anjali
> > <anjali.singhai@intel.com>; Samudrala, Sridhar
> > <sridhar.samudrala@intel.com>; linux-kernel@vger.kernel.org;
> > netdev@vger.kernel.org; Tantilov, Emil S <emil.s.tantilov@intel.com>;
> > Brian Vazquez <brianvv@google.com>
> > Subject: [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task
> > schedule delay to 300us
> >
> > During the IDPF init phase, the mailbox runs in poll mode until it is
> > configured to properly handle interrupts. The previous delay of 300ms
> > is excessively long for the mailbox polling mechanism, which causes a
> > slow initialization of ~2s:
> >
> > echo 0000:06:12.4 > /sys/bus/pci/drivers/idpf/bind
> >
> > [ 52.444239] idpf 0000:06:12.4: enabling device (0000 -> 0002)
> > [ 52.485005] idpf 0000:06:12.4: Device HW Reset initiated
> > [ 54.177181] idpf 0000:06:12.4: PTP init failed, err=-EOPNOTSUPP
> > [ 54.206177] idpf 0000:06:12.4: Minimum RX descriptor support not
> > provided, using the default
> > [ 54.206182] idpf 0000:06:12.4: Minimum TX descriptor support not
> > provided, using the default
> >
> > Changing the delay to 300us avoids the delays during the initial
> > mailbox transactions, making the init phase much faster:
> >
> > [ 83.342590] idpf 0000:06:12.4: enabling device (0000 -> 0002)
> > [ 83.384402] idpf 0000:06:12.4: Device HW Reset initiated
> > [ 83.518323] idpf 0000:06:12.4: PTP init failed, err=-EOPNOTSUPP
> > [ 83.547430] idpf 0000:06:12.4: Minimum RX descriptor support not
> > provided, using the default
> > [ 83.547435] idpf 0000:06:12.4: Minimum TX descriptor support not
> > provided, using the default
> >
> > Signed-off-by: Brian Vazquez <brianvv@google.com>
> > ---
>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-10 21:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 20:58 [Intel-wired-lan] [iwl-net PATCH] idpf: reduce mbx_task schedule delay to 300us Brian Vazquez
2025-11-12 13:06 ` Loktionov, Aleksandr
2025-12-10 21:28 ` Salin, Samuel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox