Re: [2/4] powerpc/eeh: Introduce eeh_ops::err_inject

2014-09-23 Thread Michael Ellerman
On Tue, 2014-26-08 at 07:56:17 UTC, Gavin Shan wrote: > From: Mike Qiu > > + > + /* Firmware supports error injection ? */ > + ret = opal_check_token(OPAL_PCI_ERR_INJCT); > + if (ret != OPAL_TOKEN_PRESENT) { > + pr_warn("%s: Firmware not support error injection (%lld)\n",

[PATCH 2/4] powerpc/eeh: Introduce eeh_ops::err_inject

2014-08-26 Thread Gavin Shan
From: Mike Qiu 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 Signed-off