powerpc/eeh_sysfs: ifdef pseries sr-iov sysfs properties
authorOliver O'Halloran <oohall@gmail.com>
Mon, 15 Jul 2019 08:56:10 +0000 (18:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:18 +0000 (21:31 +1100)
commit4107248c5615ab20b64073f2dd5917b3961239dc
treeae877251fd28eb6e04337ea778b08235f64ad965
parent89f51839bd75b1aa8fa062a5f2b4bbcde560f6e2
powerpc/eeh_sysfs: ifdef pseries sr-iov sysfs properties

There are several EEH sysfs properties that only exists when the
"ibm,is-open-sriov-pf" property appears in the device tree node of the PCI
device. This used on pseries to indicate to the guest that the hypervisor
allows the guest to configure the SR-IOV capability. Doing this requires
some handshaking between the guest, hypervisor and userspace when a VF is
EEH frozen which is why these properties exist.

This is all dead code on non-pseries platforms so wrap it in an #ifdef
CONFIG_PPC_PSERIES to make the dependency clearer.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Tested-by: Sam Bobroff <sbobroff@linux.ibm.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190715085612.8802-4-oohall@gmail.com
arch/powerpc/kernel/eeh_sysfs.c