Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by "Salin, Samuel"
Thu, 08 Oct 2026 21:26
RE: [PATCH iwl-next v2 05/10] libie, idpf: move irq code to libie
Author: "Salin, Samuel"
Date: Thu, 08 Oct 2026 21:26
Date: Thu, 08 Oct 2026 21:26
41 lines
16280 bytes
16280 bytes
> -----Original Message----- > From: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> > Sent: Friday, September 11, 2026 5:49 AM > To: intel-wired-lan@lists.osuosl.org > Cc: netdev@vger.kernel.org; Michal Swiatkowski > <michal.swiatkowski@linux.intel.com>; Loktionov, Aleksandr > <aleksandr.loktionov@intel.com>; Zaremba, Larysa > <larysa.zaremba@intel.com> > Subject: [PATCH iwl-next v2 05/10] libie, idpf: move irq code to libie > > Management of irqs is the same in idpf and ixd driver. Move the common > code to separate lib to reuse it in ixd. > > libie_irq keeps the allocated interrupts in an xarray split into two > index ranges: LIBIE_IRQ_STATIC for the vectors that must exist for the > device to be functional at all (mailbox, the minimum per default vport, > RDMA), and LIBIE_IRQ_DYNAMIC for the rest. > > libie_irq_init() allocates the static range with pci_alloc_irq_vectors() > at probe. When the platform supports post-enable MSI-X allocation, > libie_irq_alloc() backs the dynamic range with pci_msix_alloc_irq_at() > on demand, so vectors are only claimed once a vport actually needs them; > when it does not, the whole range is allocated up front and > LIBIE_IRQ_DYNAMIC is transparently served from the static pool. > > libie_irq_reserve() hands out an index without an MSI-X vector behind it, > for queues that are mapped to a vector but never raise an interrupt > (the idpf NOIRQ vector used by XDP send queues). > > Move getting irq slot before allocating q_vectors array. Alloc only > q_vectors for which there is an available interrupt. > > Allocating more lead to the situation where there are unused q_vector > which can be confused. > > Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> > Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com> > Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> > --- Tested-by: Samuel Salin <Samuel.salin@intel.com>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads