aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorOliver O'Halloran <[email protected]>2020-12-02 11:52:22 +1100
committerMichael Ellerman <[email protected]>2020-12-04 01:01:34 +1100
commit450be4960a0fb89b931a6bb3c3f0bb538ac4c03c (patch)
treeb6946fc9a30cd136678ff519aa47a20260b1109f /tools/perf/scripts/python/flamegraph.py
parented2bbd2b8581313ca18a7c586a947f6cdd93a52a (diff)
powerpc/pci: Remove LSI mappings on device teardown
When a passthrough IO adapter is removed from a pseries machine using hash MMU and the XIVE interrupt mode, the POWER hypervisor expects the guest OS to clear all page table entries related to the adapter. If some are still present, the RTAS call which isolates the PCI slot returns error 9001 "valid outstanding translations" and the removal of the IO adapter fails. This is because when the PHBs are scanned, Linux maps automatically the INTx interrupts in the Linux interrupt number space but these are never removed. This problem can be fixed by adding the corresponding unmap operation when the device is removed. There's no pcibios_* hook for the remove case, but the same effect can be achieved using a bus notifier. Because INTx are shared among PHBs (and potentially across the system), this adds tracking of virq to unmap them only when the last user is gone. [aik: added refcounter] Signed-off-by: Oliver O'Halloran <[email protected]> Signed-off-by: Alexey Kardashevskiy <[email protected]> Tested-by: Cédric Le Goater <[email protected]> Reviewed-by: Frederic Barrat <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions