aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-09-29 22:38:56 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-09-30 03:15:10 -0400
commit131c123abec375afc819da89925dbce97590278e (patch)
tree04693f2a111a9b9d8fd59085384c37a779bdf73d /arch/powerpc/include/asm
parent5b64234081fcbd48c4ae207ce2cc3c31f859f8a4 (diff)
powerpc/eeh: Introduce eeh_ops::err_inject
The patch introduces eeh_ops::err_inject(), which allows to inject specified errors to indicated PE for testing purpose. The functionality isn't support on pSeries platform. On PowerNV, the functionality relies on OPAL API opal_pci_err_inject(). Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/eeh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h
index 59d3e2a4fc42..4fa15796537a 100644
--- a/arch/powerpc/include/asm/eeh.h
+++ b/arch/powerpc/include/asm/eeh.h
@@ -204,6 +204,8 @@ struct eeh_ops {
204 int (*wait_state)(struct eeh_pe *pe, int max_wait); 204 int (*wait_state)(struct eeh_pe *pe, int max_wait);
205 int (*get_log)(struct eeh_pe *pe, int severity, char *drv_log, unsigned long len); 205 int (*get_log)(struct eeh_pe *pe, int severity, char *drv_log, unsigned long len);
206 int (*configure_bridge)(struct eeh_pe *pe); 206 int (*configure_bridge)(struct eeh_pe *pe);
207 int (*err_inject)(struct eeh_pe *pe, int type, int func,
208 unsigned long addr, unsigned long mask);
207 int (*read_config)(struct device_node *dn, int where, int size, u32 *val); 209 int (*read_config)(struct device_node *dn, int where, int size, u32 *val);
208 int (*write_config)(struct device_node *dn, int where, int size, u32 val); 210 int (*write_config)(struct device_node *dn, int where, int size, u32 val);
209 int (*next_error)(struct eeh_pe **pe); 211 int (*next_error)(struct eeh_pe **pe);