aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorNiklas Schnelle <[email protected]>2023-05-31 10:48:56 +0200
committerSaeed Mahameed <[email protected]>2023-05-31 20:08:36 -0700
commit8764bd0fa5d402c51b136f6aeaba20fc16961ba1 (patch)
tree4fb19a9d3f1bb0397657d0a15fd0d561b55e9049 /tools/perf/scripts/python/intel-pt-events.py
parent1c4c769cdf682c63d3b10cb241f4a96ebad2f215 (diff)
net/mlx5: Fix setting of irq->map.index for static IRQ case
When dynamic IRQ allocation is not supported all IRQs are allocated up front in mlx5_irq_table_create() instead of dynamically as part of mlx5_irq_alloc(). In the latter dynamic case irq->map.index is set via the mapping returned by pci_msix_alloc_irq_at(). In the static case and prior to commit 1da438c0ae02 ("net/mlx5: Fix indexing of mlx5_irq") irq->map.index was set in mlx5_irq_alloc() twice once initially to 0 and then to the requested index before storing in the xarray. After this commit it is only set to 0 which breaks all other IRQ mappings. Fix this by setting irq->map.index to the requested index together with irq->map.virq and improve the related comment to make it clearer which cases it deals with. Cc: Chuck Lever III <[email protected]> Tested-by: Mark Brown <[email protected]> Reviewed-by: Mark Brown <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Eli Cohen <[email protected]> Fixes: 1da438c0ae02 ("net/mlx5: Fix indexing of mlx5_irq") Signed-off-by: Niklas Schnelle <[email protected]> Tested-by: Cédric Le Goater <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions