From: Simon Horman <horms@kernel.org>
To: Karol Kolacinski <karol.kolacinski@intel.com>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
anthony.l.nguyen@intel.com, jesse.brandeburg@intel.com,
Michal Michalik <michal.michalik@intel.com>
Subject: Re: [PATCH iwl-next 1/2] ice: Schedule service task in IRQ top half
Date: Mon, 27 Nov 2023 16:46:40 +0000 [thread overview]
Message-ID: <20231127164640.GF84723@kernel.org> (raw)
In-Reply-To: <20231124114155.251360-1-karol.kolacinski@intel.com>
On Fri, Nov 24, 2023 at 12:41:54PM +0100, Karol Kolacinski wrote:
> Schedule service task and EXTTS in the top half to avoid bottom half
> scheduling if possible, which significantly reduces timestamping delay.
>
> Co-developed-by: Michal Michalik <michal.michalik@intel.com>
> Signed-off-by: Michal Michalik <michal.michalik@intel.com>
> Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice.h | 1 -
> drivers/net/ethernet/intel/ice/ice_main.c | 18 ++++++++++--------
> 2 files changed, 10 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h
> index 3ea33947b878..d5a8da0c02c3 100644
> --- a/drivers/net/ethernet/intel/ice/ice.h
> +++ b/drivers/net/ethernet/intel/ice/ice.h
> @@ -517,7 +517,6 @@ enum ice_pf_flags {
> };
>
> enum ice_misc_thread_tasks {
> - ICE_MISC_THREAD_EXTTS_EVENT,
> ICE_MISC_THREAD_TX_TSTAMP,
> ICE_MISC_THREAD_NBITS /* must be last */
> };
> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
> index 1f159b4362ec..6b91ec6f420d 100644
> --- a/drivers/net/ethernet/intel/ice/ice_main.c
> +++ b/drivers/net/ethernet/intel/ice/ice_main.c
> @@ -3078,6 +3078,7 @@ static void ice_ena_misc_vector(struct ice_pf *pf)
> static irqreturn_t ice_misc_intr(int __always_unused irq, void *data)
> {
> struct ice_pf *pf = (struct ice_pf *)data;
> + irqreturn_t ret = IRQ_HANDLED;
> struct ice_hw *hw = &pf->hw;
> struct device *dev;
> u32 oicr, ena_mask;
> @@ -3161,6 +3162,8 @@ static irqreturn_t ice_misc_intr(int __always_unused irq, void *data)
> ena_mask &= ~PFINT_OICR_TSYN_TX_M;
> if (ice_ptp_pf_handles_tx_interrupt(pf))
Hi Karol,
it seems that a trailing '{' is missing from the line above.
> set_bit(ICE_MISC_THREAD_TX_TSTAMP, pf->misc_thread);
> + ret = IRQ_WAKE_THREAD;
> + }
> }
>
> if (oicr & PFINT_OICR_TSYN_EVNT_M) {
...
prev parent reply other threads:[~2023-11-27 16:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 11:41 [PATCH iwl-next 1/2] ice: Schedule service task in IRQ top half Karol Kolacinski
2023-11-24 11:41 ` [PATCH iwl-next 2/2] ice: Enable SW interrupt from FW for LL TS Karol Kolacinski
2023-11-24 11:46 ` Przemek Kitszel
2023-11-24 11:46 ` [PATCH iwl-next 1/2] ice: Schedule service task in IRQ top half Przemek Kitszel
2023-11-27 16:46 ` Simon Horman [this message]
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=20231127164640.GF84723@kernel.org \
--to=horms@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jesse.brandeburg@intel.com \
--cc=karol.kolacinski@intel.com \
--cc=michal.michalik@intel.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).