powernv/pci: Add a debugfs entry to dump PHB's IODA PE state
authorOliver O'Halloran <oohall@gmail.com>
Thu, 12 Sep 2019 05:29:45 +0000 (15:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:20 +0000 (21:31 +1100)
commit18697d2b08622b35278fc4312e86e6b5d3cd758d
tree36942e6e894b391f8c4f73331a559b290312bbad
parentc13a17b73eb0b30070a347111b8c386f4e6a844e
powernv/pci: Add a debugfs entry to dump PHB's IODA PE state

Add a debugfs entry to dump the state of the active IODA PEs. The IODA
PE state reflects how the PHB's internal concept of a PE is
configured. This is separate to the EEH PE state and is managed power
the PowerNV PCI backend rather than the EEH core.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[mpe: Use DEFINE_DEBUGFS_ATTRIBUTE]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190912052945.12589-3-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-ioda.c