diff options
author | Piotr Raczynski <[email protected]> | 2023-05-15 21:03:19 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-05-16 09:38:38 -0700 |
commit | 011670cc340cbc1131677fe233b1a52acee969ee (patch) | |
tree | 439b5731d00976d4f8395dd722a022db08260e1a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | cfebc0a36ea5518d6b32a6999da5accf0a94fafa (diff) |
ice: add dynamic interrupt allocation
Currently driver can only allocate interrupt vectors during init phase by
calling pci_alloc_irq_vectors. Change that and make use of new
pci_msix_alloc_irq_at/pci_msix_free_irq API and enable to allocate and free
more interrupts after MSIX has been enabled. Since not all platforms
supports dynamic allocation, check it with pci_msix_can_alloc_dyn.
Extend the tracker to keep track how many interrupts are allocated
initially so when all such vectors are already used, additional interrupts
are automatically allocated dynamically. Remember each interrupt allocation
method to then free appropriately. Since some features may require
interrupts allocated dynamically add appropriate VSI flag and take it into
account when allocating new interrupt.
Reviewed-by: Michal Swiatkowski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Piotr Raczynski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions