* [PATCH net-next] net: txgbe: Fix pending interrupt
@ 2025-05-12 10:06 Jiawen Wu
2025-05-12 11:03 ` Simon Horman
2025-05-13 22:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jiawen Wu @ 2025-05-12 10:06 UTC (permalink / raw)
To: netdev, pabeni, kuba, edumazet, davem, andrew+netdev
Cc: mengyuanlou, Jiawen Wu
For unknown reasons, sometimes the value of MISC interrupt is 0 in the
IRQ handle function. In this case, wx_intr_enable() is also should be
invoked to clear the interrupt. Otherwise, the next interrupt would
never be reported.
Fixes: a9843689e2de ("net: txgbe: add sriov function support")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
---
drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
index 3b9e831cf0ef..19878f02d956 100644
--- a/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
+++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c
@@ -112,8 +112,6 @@ static irqreturn_t txgbe_misc_irq_handle(int irq, void *data)
if (wx->pdev->msix_enabled) {
eicr = wx_misc_isb(wx, WX_ISB_MISC);
- if (!eicr)
- return IRQ_NONE;
txgbe->eicr = eicr;
if (eicr & TXGBE_PX_MISC_IC_VF_MBOX) {
wx_msg_task(txgbe->wx);
@@ -139,10 +137,7 @@ static irqreturn_t txgbe_misc_irq_handle(int irq, void *data)
q_vector = wx->q_vector[0];
napi_schedule_irqoff(&q_vector->napi);
- eicr = wx_misc_isb(wx, WX_ISB_MISC);
- if (!eicr)
- return IRQ_NONE;
- txgbe->eicr = eicr;
+ txgbe->eicr = wx_misc_isb(wx, WX_ISB_MISC);
return IRQ_WAKE_THREAD;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] net: txgbe: Fix pending interrupt
2025-05-12 10:06 [PATCH net-next] net: txgbe: Fix pending interrupt Jiawen Wu
@ 2025-05-12 11:03 ` Simon Horman
2025-05-13 22:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2025-05-12 11:03 UTC (permalink / raw)
To: Jiawen Wu
Cc: netdev, pabeni, kuba, edumazet, davem, andrew+netdev, mengyuanlou
On Mon, May 12, 2025 at 06:06:52PM +0800, Jiawen Wu wrote:
> For unknown reasons, sometimes the value of MISC interrupt is 0 in the
> IRQ handle function. In this case, wx_intr_enable() is also should be
> invoked to clear the interrupt. Otherwise, the next interrupt would
> never be reported.
>
> Fixes: a9843689e2de ("net: txgbe: add sriov function support")
> Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next] net: txgbe: Fix pending interrupt
2025-05-12 10:06 [PATCH net-next] net: txgbe: Fix pending interrupt Jiawen Wu
2025-05-12 11:03 ` Simon Horman
@ 2025-05-13 22:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-05-13 22:50 UTC (permalink / raw)
To: Jiawen Wu
Cc: netdev, pabeni, kuba, edumazet, davem, andrew+netdev, mengyuanlou
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 12 May 2025 18:06:52 +0800 you wrote:
> For unknown reasons, sometimes the value of MISC interrupt is 0 in the
> IRQ handle function. In this case, wx_intr_enable() is also should be
> invoked to clear the interrupt. Otherwise, the next interrupt would
> never be reported.
>
> Fixes: a9843689e2de ("net: txgbe: add sriov function support")
> Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
>
> [...]
Here is the summary with links:
- [net-next] net: txgbe: Fix pending interrupt
https://git.kernel.org/netdev/net-next/c/904c6ad822b6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-13 22:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-12 10:06 [PATCH net-next] net: txgbe: Fix pending interrupt Jiawen Wu
2025-05-12 11:03 ` Simon Horman
2025-05-13 22:50 ` patchwork-bot+netdevbpf
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).