Re: [PATCH net-next,v5] net: mana: Add handler for hardware servicing events

2025-05-27 Thread Paolo Abeni
On 5/22/25 2:22 AM, Haiyang Zhang wrote: > @@ -400,6 +448,33 @@ static void mana_gd_process_eqe(struct gdma_queue *eq) > eq->eq.callback(eq->eq.context, eq, &event); > break; > > + case GDMA_EQE_HWC_FPGA_RECONFIG: > + dev_info(gc->dev, "Recv MANA servic

Re: [PATCH v4 3/5] net: mana: explain irq_setup() algorithm

2025-05-27 Thread Yury Norov
So now git will think that you're the author of the patch. If author and sender are different people, the first line in commit message body should state that. In this case, it should be: From: Yury Norov Please consider this one example https://patchew.org/linux/20250326-fixed-type-genmasks-v8

Re: [EXTERNAL] Re: [PATCH net-next,v2] net: mana: Add support for Multi Vports on Bare metal

2025-05-27 Thread Paolo Abeni
On 5/22/25 4:51 PM, Haiyang Zhang wrote: >> -Original Message- >> From: Paolo Abeni >> Sent: Thursday, May 22, 2025 9:44 AM >> To: Simon Horman ; Haiyang Zhang >> > >> static int mana_query_device_cfg(struct mana_context *ac, u32 > proto_major_ver, >>

Re: [PATCH net-next,v2] net: mana: Add support for Multi Vports on Bare metal

2025-05-27 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Mon, 19 May 2025 09:20:36 -0700 you wrote: > To support Multi Vports on Bare metal, increase the device config response > version. And, skip the register HW vport, and register filter steps, when > the Bare metal host

[PATCH net-next,v6] net: mana: Add handler for hardware servicing events

2025-05-27 Thread Haiyang Zhang
To collaborate with hardware servicing events, upon receiving the special EQE notification from the HW channel, remove the devices on this bus. Then, after a waiting period based on the device specs, rescan the parent bus to recover the devices. Signed-off-by: Haiyang Zhang Reviewed-by: Shradha G

[PATCH v4 3/5] net: mana: explain irq_setup() algorithm

2025-05-27 Thread Shradha Gupta
Commit 91bfe210e196 ("net: mana: add a function to spread IRQs per CPUs") added the irq_setup() function that distributes IRQs on CPUs according to a tricky heuristic. The corresponding commit message explains the heuristic. Duplicate it in the source code to make available for readers without dig

[PATCH v4 1/5] PCI/MSI: Export pci_msix_prepare_desc() for dynamic MSI-X allocations

2025-05-27 Thread Shradha Gupta
For supporting dynamic MSI-X vector allocation by PCI controllers, enabling the flag MSI_FLAG_PCI_MSIX_ALLOC_DYN is not enough, msix_prepare_msi_desc() to prepare the MSI descriptor is also needed. Export pci_msix_prepare_desc() to allow PCI controllers to support dynamic MSI-X vector allocation.

[PATCH v4 2/5] PCI: hv: Allow dynamic MSI-X vector allocation

2025-05-27 Thread Shradha Gupta
Allow dynamic MSI-X vector allocation for pci_hyperv PCI controller by adding support for the flag MSI_FLAG_PCI_MSIX_ALLOC_DYN and using pci_msix_prepare_desc() to prepare the MSI-X descriptors. Feature support added for both x86 and ARM64 Signed-off-by: Shradha Gupta Reviewed-by: Haiyang Zhang

[PATCH v4 4/5] net: mana: Allow irq_setup() to skip cpus for affinity

2025-05-27 Thread Shradha Gupta
In order to prepare the MANA driver to allocate the MSI-X IRQs dynamically, we need to enhance irq_setup() to allow skipping affinitizing IRQs to the first CPU sibling group. This would be for cases when the number of IRQs is less than or equal to the number of online CPUs. In such cases for dynam

[PATCH v4 5/5] net: mana: Allocate MSI-X vectors dynamically

2025-05-27 Thread Shradha Gupta
Currently, the MANA driver allocates MSI-X vectors statically based on MANA_MAX_NUM_QUEUES and num_online_cpus() values and in some cases ends up allocating more vectors than it needs. This is because, by this time we do not have a HW channel and do not know how many IRQs should be allocated. To a

[PATCH v4 0/5] Allow dyn MSI-X vector allocation of MANA

2025-05-27 Thread Shradha Gupta
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 a