]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'shradha_v6.16-rc1' of https://github.com/shradhagupta6/linux
authorJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 21:43:58 +0000 (14:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 21:44:41 +0000 (14:44 -0700)
Shradha Gupta says:

====================
Allow dyn MSI-X vector allocation of MANA

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 adds a detailed description of the irq_setup(), to
help understand the function design better.

The fourth 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 fifth 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.

* 'shradha_v6.16-rc1' of https://github.com/shradhagupta6/linux:
  net: mana: Allocate MSI-X vectors dynamically
  net: mana: Allow irq_setup() to skip cpus for affinity
  net: mana: explain irq_setup() algorithm
  PCI: hv: Allow dynamic MSI-X vector allocation
  PCI/MSI: Export pci_msix_prepare_desc() for dynamic MSI-X allocations
====================

Link: https://patch.msgid.link/1749650984-9193-1-git-send-email-shradhagupta@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1  2 
drivers/net/ethernet/microsoft/mana/gdma_main.c
include/net/mana/gdma.h

index bfae592026694c24ed7e2f86773da1e12b070030,87162ba96d91da014b5bc12c8e2a77693f7a7eae..6fe6cbcd512dbdbcebec58060e686dbb7aef19f0
@@@ -580,16 -578,16 +580,20 @@@ enum 
  /* Driver can handle holes (zeros) in the device list */
  #define GDMA_DRV_CAP_FLAG_1_DEV_LIST_HOLES_SUP BIT(11)
  
+ /* Driver supports dynamic MSI-X vector allocation */
+ #define GDMA_DRV_CAP_FLAG_1_DYNAMIC_IRQ_ALLOC_SUPPORT BIT(13)
 +/* Driver can self reset on FPGA Reconfig EQE notification */
 +#define GDMA_DRV_CAP_FLAG_1_HANDLE_RECONFIG_EQE BIT(17)
 +
  #define GDMA_DRV_CAP_FLAGS1 \
        (GDMA_DRV_CAP_FLAG_1_EQ_SHARING_MULTI_VPORT | \
         GDMA_DRV_CAP_FLAG_1_NAPI_WKDONE_FIX | \
         GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG | \
         GDMA_DRV_CAP_FLAG_1_VARIABLE_INDIRECTION_TABLE_SUPPORT | \
         GDMA_DRV_CAP_FLAG_1_DEV_LIST_HOLES_SUP | \
 -       GDMA_DRV_CAP_FLAG_1_DYNAMIC_IRQ_ALLOC_SUPPORT)
++       GDMA_DRV_CAP_FLAG_1_DYNAMIC_IRQ_ALLOC_SUPPORT | \
 +       GDMA_DRV_CAP_FLAG_1_HANDLE_RECONFIG_EQE)
  
  #define GDMA_DRV_CAP_FLAGS2 0