aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorNarayana Murty N <nnmlinux@linux.ibm.com>2024-09-09 09:02:20 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2024-09-10 11:01:08 +1000
commitb0e2b828dfca645a228f8c89d12fbc2baecfb7ea (patch)
treeb8ebcfe83be798cb6a07e5726049d945faeec1ce /rust/helpers.c
parent8c9c01ce695eea84d19482e7429e3d54ceb7585c (diff)
powerpc/pseries/eeh: Fix pseries_eeh_err_inject
VFIO_EEH_PE_INJECT_ERR ioctl is currently failing on pseries due to missing implementation of err_inject eeh_ops for pseries. This patch implements pseries_eeh_err_inject in eeh_ops/pseries eeh_ops. Implements support for injecting MMIO load/store error for testing from user space. The check on PCI error type (bus type) code is moved to platform code, since the eeh_pe_inject_err can be allowed to more error types depending on platform requirement. Removal of the check for 'type' in eeh_pe_inject_err() doesn't impact PowerNV as pnv_eeh_err_inject() already has an equivalent check in place. Signed-off-by: Narayana Murty N <nnmlinux@linux.ibm.com> Reviewed-by: Vaibhav Jain <vaibhav@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240909140220.529333-1-nnmlinux@linux.ibm.com
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions