From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D56DD41A507; Fri, 4 Sep 2026 05:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788499518; cv=none; b=hHymQc9Utb2j1SSEBeoQl6N2jHk6pQlJiNnL+Zb+yQtm8GdbJWU+3pqvEy7FtR55EFFjrwUhcRmIi5qH5w1Q9q+o2bTkNMaZ352MVAIZHUS22wna9HzewDeJg7yhOpKRItEOXQ+vxi2U3LAPjHl3SACc5Ew8WfpnCp9cUbOnlL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788499518; c=relaxed/simple; bh=3UHgo1Pde4MGMSO6hObyv7EO4C0HVWSFgFHyc/akxUM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=phFWQlk6LT/v34PTGSBuZpeSF30oxv2q2GJ+K5LUpBSu1rLi7sZf7GSkm6obY81pSzSEzwUSwAaodvTjd7Fpps0GtQKYvCPuZceyMD4wKHKzE2lSiZFhKkcFcczOI7I15aG75m0XYaR/JdffZ4NaCux/klRhMY0eDd+l9mGknQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YDavSgDJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YDavSgDJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4FB91F00A3D; Fri, 4 Sep 2026 05:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788499516; bh=ppcC65Ei7DXIXzXOkhib8iDKA2xy7FTslMOJ8dlaCLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YDavSgDJTXk97rYtZfZ5bj0vVfHO6jQgSVN3K3MIqrkMODZlBNGm0X0iUgZYP8nCE KeY7vpN6CG/vV/cWXvWRbRoJ1N1bgE30SUZwnlXsBesQfMIk/k48hosmgDaKnokXU/ RiQeJdAQIBIZbwo+G+xiOlYEnv7EOhT2ytFQJOkg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Brett Creeley , Abhijit Gangurde , Leon Romanovsky Subject: [PATCH 7.2 443/713] RDMA/ionic: Cap eq_count to the eth drivers interrupt vector budget Date: Fri, 4 Sep 2026 06:56:51 +0200 Message-ID: <20260904045813.760803456@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260904045803.810145556@linuxfoundation.org> References: <20260904045803.810145556@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Brett Creeley commit 1d0f877d593438a494ca5b05cc8699150409005a upstream. 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 Signed-off-by: Abhijit Gangurde Link: https://patch.msgid.link/20260805053254.4023262-1-abhijit.gangurde@amd.com Signed-off-by: Leon Romanovsky Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/ionic/ionic_lif_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 * 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);