Thread (6 messages) 6 messages, 2 authors, 2026-03-20

RE: [PATCH] net/mlx5: poll mlx5 eq during irq migration

From: Praveen Kannoju <hidden>
Date: 2026-03-07 05:44:20
Also in: linux-rdma, lkml

Confidential - Oracle Restricted \Including External Recipients



Confidential - Oracle Restricted \Including External Recipients
-----Original Message-----
From: Jason Gunthorpe <jgg@ziepe.ca>
Sent: Saturday, March 7, 2026 4:40 AM
To: Praveen Kannoju <redacted>
Cc: saeedm@nvidia.com; leon@kernel.org; tariqt@nvidia.com;
mbloch@nvidia.com; andrew+netdev@lunn.ch; davem@davemloft.net;
edumazet@google.com; kuba@kernel.org; pabeni@redhat.com;
netdev@vger.kernel.org; linux-rdma@vger.kernel.org; linux-
kernel@vger.kernel.org; Rama Nichanamatlu
[off-list ref]; Manjunath Patil
[off-list ref]; Anand Khoje [off-list ref]
Subject: Re: [PATCH] net/mlx5: poll mlx5 eq during irq migration

On Fri, Mar 06, 2026 at 02:19:09PM +0000, Praveen Kannoju wrote:
quoted
quoted
On Thu, Mar 05, 2026 at 05:08:52PM +0000, Praveen Kannoju wrote:
quoted
   Regardless of the underlying causes, which may include IRQ loss
   or EQ re-arming failure, the TX queue becomes stuck, and the
   timeout handler is only triggered once the queue is declared
   full. In scenarios where only specialized packets, such as
   heartbeat packets, are sent through the queue, it takes
   significantly longer for the queue to fill and be identified as
   stuck. A proven solution for this issue is polling the EQ
   immediately after the corresponding IRQ migration, which allows
   for earlier recovery and prevents the transmission queue from
   becoming stuck.
I undersand all of this, but for upstreaming we want the root cause,
not bodges like this.

There is no reason to do what this patch does, the IRQ system is not
supposed to loose interrupts on migration, if that is happening on
your systems it is a serious bug that must be root caused.
Thank you, Jason.
We'll evaluate more on it.
If this is in a VM running under qemu - qemu does Lots Of Stuff whenever a
MSI-X is changed and that stuff has been buggy before and resulted in lost
things.

If it is bare metal, I'm shocked. Maybe an IOMMU driver bug in the interrupt
remapping?

Jason

Hello Jason,

Yes, this is Qemu VM, on which we are having the issue.
In bare metal environment there is NO cpu scaling.
No issue seen on a bare metal so far. Maybe unlikely also.

We are having this issue as Qemu VM's go thru cpu scaling
based on business needs.

It had been very challenging to arrive at the cause.
we went thru many live debug sessions with Nvidia R&D team.
but we couldn't root cause. This tells why we eventually.
arrived at this mitigation as this issue is wide spread
and has been hurting many and many customers in cloud.

-
Praveen
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help