diff options
| author | Thomas Gleixner <[email protected]> | 2021-12-10 23:18:44 +0100 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2021-12-16 22:16:37 +0100 |
| commit | c7ecb95ca6a80b29af0f41cc28c58e542637fbc6 (patch) | |
| tree | 28875c97c098bc901ba9dbb75031a7338d4c4b51 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 91f7d2dbf952f54442fa81bb62f78ee023179bf9 (diff) | |
PCI/MSI: Set pci_dev::msi[x]_enabled early
There are quite some places which retrieve the first MSI descriptor to
evaluate whether the setup is for MSI or MSI-X. That's required because
pci_dev::msi[x]_enabled is only set when the setup completed successfully.
There is no real reason why msi[x]_enabled can't be set at the beginning of
the setup sequence and cleared in case of a failure.
Implement that so the MSI descriptor evaluations can be converted to simple
property queries.
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Michael Kelley <[email protected]>
Tested-by: Nishanth Menon <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions