From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A63FC28DF5C; Fri, 9 May 2025 10:12:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746785571; cv=none; b=b/k1vgo8kjjvmeZ7ByzULfhdPka0HKeprzJPnct8BYTLQQ7gPiD1as2Ri9RiBMJGG7kgabhGA6ypDoDRFmKCSPpTDv4xzLZlkSWSKDsPzrlc2P5Q1WLfYTcyEghl2+zkeTnsJh3NtDOyKj4J2k0qpArwu5Te5f3IIlQ8/Dfri70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746785571; c=relaxed/simple; bh=M0yJLi3YltfIlr+h+JY5iRrqytF1C8+FeHZfC+leV/8=; h=From:To:Cc:Subject:Date:Message-Id; b=chF0aD8DwxRudho0S8vJ4iB+omO3dpnJV6AwfZWOpldd92knBE68pTN92xmA1PAehjkMtgKyXo8WMkv9GqIqU10ismXJv8ODDBcIUISENt3sqUg1oga3fgJpOi1CGGJ7fVVc+eWF/HHps6ZUaBpIxu02URf4QQExGqXwYuT/ibs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=Uhvy36Lo; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="Uhvy36Lo" Received: by linux.microsoft.com (Postfix, from userid 1134) id 1C4AF2098462; Fri, 9 May 2025 03:12:49 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1C4AF2098462 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1746785569; bh=e/tm+t3vcAkUXIvSagvF7PotT61S98sNQtc1m6Q+83g=; h=From:To:Cc:Subject:Date:From; b=Uhvy36Lowt7migeLLbpUOqA5gwxEeVXpC6AqBqo3BVEP4Wat/qlwAK1nXZnIIoXR0 u6+DwI4ljiKEOOv1Q/4fvRv7i29zPARyW6z+WtfIwjtpiKgEf3aFEa8ZmVtVVd3oBS 8o8gOMydUHgKVsz6Q4oHrx7ewqn3XgGbvs/mM/CU= From: Shradha Gupta To: Cc: Shradha Gupta , linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Nipun Gupta , Yury Norov , Jason Gunthorpe , Jonathan Cameron , Anna-Maria Behnsen , Kevin Tian , Long Li , Thomas Gleixner , Bjorn Helgaas , Rob Herring , Manivannan Sadhasivam , =?UTF-8?q?Krzysztof=20Wilczy=EF=BF=BD=7EDski?= , Lorenzo Pieralisi , Dexuan Cui , Wei Liu , Haiyang Zhang , "K. Y. Srinivasan" , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Konstantin Taranov , Simon Horman , Leon Romanovsky , Maxim Levitsky , Erni Sri Satya Vennela , Peter Zijlstra , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Paul Rosswurm , Shradha Gupta Subject: [PATCH v3 0/4] Allow dyn MSI-X vector allocation of MANA Date: Fri, 9 May 2025 03:12:46 -0700 Message-Id: <1746785566-4337-1-git-send-email-shradhagupta@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: In this patchset we want to enable the MANA driver to be able to allocate MSI-X vectors in PCI dynamically The first patch exports pci_msix_prepare_desc() in PCI to be able to correctly prepare descriptors for dynamically added MSI-X vectors The second patch adds the support of dynamic vector allocation in pci-hyperv PCI controller by enabling the MSI_FLAG_PCI_MSIX_ALLOC_DYN flag and using the pci_msix_prepare_desc() exported in first patch. The third patch is a preparation patch for mana changes to support dynamic IRQ allocation. It contains changes in irq_setup() to allow skipping first sibling CPU sets, in case certain IRQs are already affinitized to them. The fourth patch has the changes in MANA driver to be able to allocate MSI-X vectors dynamically. If the support does not exist it defaults to older behavior. --- Changes in v3 * split the 3rd patch into preparation patch around irq_setup() and changes in mana driver to allow dynamic IRQ allocation * Add arm64 support for dynamic MSI-X allocation in pci_hyperv controller --- Changes in v2 * split the first patch into two(exporting the preapre_desc func and using the function and flag in pci-hyperv) * replace 'pci vectors' by 'MSI-X vectors' * Change the cover letter description to align with changes made --- Shradha Gupta (4): PCI/MSI: Export pci_msix_prepare_desc() for dynamic MSI-X alloc PCI: hv: Allow dynamic MSI-X vector allocation net: mana: Allow irq_setup() to skip cpus for affinity net: mana: Allocate MSI-X vectors dynamically .../net/ethernet/microsoft/mana/gdma_main.c | 264 +++++++++++++++--- drivers/pci/controller/pci-hyperv.c | 7 +- drivers/pci/msi/irqdomain.c | 5 +- include/linux/msi.h | 2 + include/net/mana/gdma.h | 8 +- 5 files changed, 235 insertions(+), 51 deletions(-) -- 2.34.1