[Intel-wired-lan] [PATCH iwl-next v2 1/5] ice: handle extts in the miscellaneous interrupt thread

Michal Schmidt mschmidt at redhat.com
Wed May 31 14:38:29 UTC 2023


On Tue, May 30, 2023 at 7:46 PM Jacob Keller <jacob.e.keller at intel.com> wrote:
>
> From: Karol Kolacinski <karol.kolacinski at intel.com>
>
> The ice_ptp_extts_work() and ice_ptp_periodic_work() functions are both
> scheduled on the same kthread worker, pf.ptp.kworker. The
> ice_ptp_periodic_work() function sends to the firmware to interact with the
> PHY, and must block to wait for responses.
>
> This can cause delay in responding to the PFINT_OICR_TSYN_EVNT interrupt
> cause, ultimately resulting in disruption to processing an input signal of
> the frequency is high enough. In our testing, even 100 Hz signals get
> disrupted.
>
> Fix this by instead processing the signal inside the miscellaneous
> interrupt thread prior to handling Tx timestamps.
>
> Fixes: 172db5f91d5f ("ice: add support for auxiliary input/output pins")
> Reported-by: Anatolii Gerasymenko <anatolii.gerasymenko at intel.com>
> Signed-off-by: Karol Kolacinski <karol.kolacinski at intel.com>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice.h      |  1 +
>  drivers/net/ethernet/intel/ice/ice_main.c | 33 +++++++++++++++++------
>  drivers/net/ethernet/intel/ice/ice_ptp.c  | 12 +++------
>  drivers/net/ethernet/intel/ice/ice_ptp.h  |  4 +--
>  4 files changed, 31 insertions(+), 19 deletions(-)
>
...
> @@ -4958,6 +4974,7 @@ ice_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent)
>         pf = ice_allocate_pf(dev);
>         if (!pf)
>                 return -ENOMEM;
> +       pf->oicr_misc = 0;

The initialization is redundant. ice_allocate_pf kzalloc'ed the whole structure.

Michal

>         /* initialize Auxiliary index to invalid value */
>         pf->aux_idx = -1;



More information about the Intel-wired-lan mailing list