diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2016-09-28 14:34:53 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-29 14:51:02 +1000 |
commit | de5a6622495117ef2e0335d509e917c91d9dd724 (patch) | |
tree | 2883571b35647d505d2497c9c501cbc27085a767 /arch/powerpc/kernel/eeh.c | |
parent | fbce44d0ed42e4653172376f4dfeaa5710f06a27 (diff) | |
download | linux-stable-de5a6622495117ef2e0335d509e917c91d9dd724.tar.gz linux-stable-de5a6622495117ef2e0335d509e917c91d9dd724.tar.bz2 linux-stable-de5a6622495117ef2e0335d509e917c91d9dd724.zip |
powerpc/eeh: Allow to freeze PE in eeh_pe_set_option()
Function eeh_pe_set_option() is used to apply the requested options
(enable, disable, unfreeze) in EEH virtualization path. The semantics
of this function isn't complete until freezing is supported.
This allows to freeze the indicated PE. The new semantics is going to
be used in PCI surprise hot remove path, to freeze removed PCI devices
(PE) to avoid unexpected EEH error reporting.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r-- | arch/powerpc/kernel/eeh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index 7429556eb8df..0699f15f44cf 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c @@ -1502,6 +1502,7 @@ int eeh_pe_set_option(struct eeh_pe *pe, int option) break; case EEH_OPT_THAW_MMIO: case EEH_OPT_THAW_DMA: + case EEH_OPT_FREEZE_PE: if (!eeh_ops || !eeh_ops->set_option) { ret = -ENOENT; break; |