mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] RDMA/ionic: Cap eq_count to the eth driver's interrupt vector budget
@ 2026-08-05  5:32 Abhijit Gangurde
  2026-08-05  5:32 ` [PATCH 2/2] RDMA/ionic: Embed counter driver data in rdma_counter allocation Abhijit Gangurde
  2026-08-06 11:21 ` [PATCH 1/2] RDMA/ionic: Cap eq_count to the eth driver's interrupt vector budget Leon Romanovsky
  0 siblings, 2 replies; 3+ messages in thread
From: Abhijit Gangurde @ 2026-08-05  5:32 UTC (permalink / raw)
  To: jgg, leon
  Cc: allen.hubbe, nikhil.agarwal, linux-rdma, linux-kernel, stable,
	Brett Creeley, Abhijit Gangurde

From: Brett Creeley <brett.creeley@amd.com>

ionic_fill_lif_cfg() reads eq_count from firmware uncapped, but the
eth driver only reserves ionic->neqs_per_lif MSI-X vectors for RDMA
event queues. Since ionic_rdma probes via the auxiliary bus before
the netdev is brought up, it can exhaust the shared interrupt bitmap,
causing ionic_open() to fail with -ENOSPC when allocating rx/tx
interrupts.

Cap RDMA eq_count to neqs_per_lif, which is populated by
ionic_lif_size() at PCI probe before the RDMA aux device registers.

Fixes: 8d765af51a09 ("RDMA/ionic: Register auxiliary module for ionic ethernet adapter")
Cc: stable@vger.kernel.org
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
---
 drivers/infiniband/hw/ionic/ionic_lif_cfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/ionic/ionic_lif_cfg.c b/drivers/infiniband/hw/ionic/ionic_lif_cfg.c
index f3cd281c3a2f..45846dc2e89b 100644
--- a/drivers/infiniband/hw/ionic/ionic_lif_cfg.c
+++ b/drivers/infiniband/hw/ionic/ionic_lif_cfg.c
@@ -70,7 +70,7 @@ void ionic_fill_lif_cfg(struct ionic_lif *lif, struct ionic_lif_cfg *cfg)
 	 * eq_count is tunable; see ionic_eq_count
 	 */
 	cfg->aq_count = le32_to_cpu(ident->rdma.aq_qtype.qid_count);
-	cfg->eq_count = le32_to_cpu(ident->rdma.eq_qtype.qid_count);
+	cfg->eq_count = lif->ionic->neqs_per_lif;
 	cfg->cq_count = le32_to_cpu(ident->rdma.cq_qtype.qid_count);
 	cfg->qp_count = le32_to_cpu(ident->rdma.sq_qtype.qid_count);
 	cfg->dbid_count = le32_to_cpu(lif->ionic->ident.dev.ndbpgs_per_lif);
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-06 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-05  5:32 [PATCH 1/2] RDMA/ionic: Cap eq_count to the eth driver's interrupt vector budget Abhijit Gangurde
2026-08-05  5:32 ` [PATCH 2/2] RDMA/ionic: Embed counter driver data in rdma_counter allocation Abhijit Gangurde
2026-08-06 11:21 ` [PATCH 1/2] RDMA/ionic: Cap eq_count to the eth driver's interrupt vector budget Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®