Netdev List
 help / color / mirror / Atom feed
From: "Jiawen Wu" <jiawenwu@trustnetic.com>
To: <diegomancera.dev@gmail.com>, <mengyuanlou@net-swift.com>
Cc: <netdev@vger.kernel.org>, <stable@vger.kernel.org>
Subject: RE: [PATCH] net: txgbe: use vector 0 for misc interrupts without MSI-X
Date: Fri, 14 Aug 2026 09:47:49 +0800	[thread overview]
Message-ID: <000a01dd2b8e$e95b5450$bc11fcf0$@trustnetic.com> (raw)
In-Reply-To: <CALruWrXs490+d7tx82mLG3rmH_H-svkwA=zXggr0qOeEhG3GmA@mail.gmail.com>

On Fri, Aug 14, 2026 8:13 AM, diegomancera.dev@gmail.com wrote:
> In non-MSI-X mode, queue and miscellaneous interrupts share vector 0.
> TXGBE_INTR_MISC(wx) instead selects the MSI-X-only miscellaneous vector,
> leaving vector 0 masked after it is serviced. Use BIT(0) for the
> non-MSI-X fallback at each miscellaneous interrupt unmask site.

Hi,

Thanks for the fix. I've already submitted the relevant patch[1].

[1] https://lore.kernel.org/all/59215DA27859BC49+20260813073305.360251-1-jiawenwu@trustnetic.com

> Fixes: e37546ad1f9b ("net: wangxun: revert the adjustment of the IRQ
> vector sequence")
> Signed-off-by: Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com>
> ---
>  drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
> b/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
> index 8746318ad3bc..6b5542cb2161 100644
> --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
> +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
> @@ -31,7 +31,10 @@ void txgbe_irq_enable(struct wx *wx, bool queues)
>  	wr32(wx, WX_PX_MISC_IEN, misc_ien);
> 
>  	/* unmask interrupt */
> -	wx_intr_enable(wx, TXGBE_INTR_MISC(wx));
> +	if (wx->pdev->msix_enabled)
> +		wx_intr_enable(wx, TXGBE_INTR_MISC(wx));
> +	else
> +		wx_intr_enable(wx, BIT(0));
>  	if (queues)
>  		wx_intr_enable(wx, TXGBE_INTR_QALL(wx));
>  }
> @@ -183,7 +186,10 @@ static irqreturn_t txgbe_misc_irq_thread_fn(int
> irq, void *data)
>  		nhandled++;
>  	}
> 
> -	wx_intr_enable(wx, TXGBE_INTR_MISC(wx));
> +	if (wx->pdev->msix_enabled)
> +		wx_intr_enable(wx, TXGBE_INTR_MISC(wx));
> +	else
> +		wx_intr_enable(wx, BIT(0));
>  	return (nhandled > 0 ? IRQ_HANDLED : IRQ_NONE);
>  }
> --
> 2.54.0.windows.1


      reply	other threads:[~2026-08-14  1:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-14  0:13 [PATCH] net: txgbe: use vector 0 for misc interrupts without MSI-X diegomancera.dev
2026-08-14  1:47 ` Jiawen Wu [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='000a01dd2b8e$e95b5450$bc11fcf0$@trustnetic.com' \
    --to=jiawenwu@trustnetic.com \
    --cc=diegomancera.dev@gmail.com \
    --cc=mengyuanlou@net-swift.com \
    --cc=netdev@vger.kernel.org \
    --cc=stable@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