[PATCH v1] powerpc/pseries/eeh: Fix pseries_eeh_err_inject

2024-08-22 Thread Narayana Murty N
PCI error type code is moved to platform code, since the eeh_pe_inject_err can be allowed to more error types depending on platform requirement. Signed-off-by: Narayana Murty N --- Testing: --- vfio-test [1] by Alex Willamson, was forked and updated to add support inject error on pSeries guest

[PATCH v2] powerpc/pseries/eeh: Fix pseries_eeh_err_inject

2024-08-23 Thread Narayana Murty N
PCI error type code is moved to platform code, since the eeh_pe_inject_err can be allowed to more error types depending on platform requirement. Signed-off-by: Narayana Murty N --- Testing: vfio-test [1] by Alex Willamson, was forked and updated to add support inject error on pSeries

[PATCH v3] powerpc/pseries/eeh: Fix pseries_eeh_err_inject

2024-09-09 Thread Narayana Murty N
check in place. Signed-off-by: Narayana Murty N Reviewed-by: Vaibhav Jain --- Testing: vfio-test [1] by Alex Willamson, was forked and updated to add support inject error on pSeries guest and used to test this patch[2]. References: === [1] https://github.com/awilliam/

Re: [PATCH v2] powerpc/pseries/eeh: Fix pseries_eeh_err_inject

2024-09-09 Thread Narayana Murty N
On 05/09/24 6:33 PM, Michael Ellerman wrote: Narayana Murty N writes: 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

[PATCH] powerpc/pseries/eeh: move pseries_eeh_err_inject() outside CONFIG_DEBUG_FS block

2024-09-17 Thread Narayana Murty N
-kbuild-all/202409170509.vwc6jadc-...@intel.com/ Fixes: b0e2b828dfca ("powerpc/pseries/eeh: Fix pseries_eeh_err_inject") Signed-off-by: Narayana Murty N --- arch/powerpc/kernel/eeh.c | 198 +++--- 1 file changed, 99 insertions(+), 99 deletions(-) diff --

[PATCH] powerpc/pseries/eeh: Fix get PE state translation

2024-11-06 Thread Narayana Murty N
state() is currently not indicating that to the caller because of which the drivers are unable to resume the MMIO and DMA activity. The patch fixes that by reflecting what is actually allowed. Signed-off-by: Narayana Murty N --- arch/powerpc/platforms/pseries/eeh_pseries.c | 6 -- 1 file c

[PATCH v2] powerpc/pseries/eeh: Fix get PE state translation

2024-12-11 Thread Narayana Murty N
state() is currently not indicating that to the caller because of which the drivers are unable to resume the MMIO and DMA activity. The patch fixes that by reflecting what is actually allowed. Fixes: 00ba05a12b3c ("powerpc/pseries: Cleanup on pseries_eeh_get_state()") Signed-off-by: Na

Re: [PATCH] powerpc/pseries/eeh: Fix get PE state translation

2024-12-11 Thread Narayana Murty N
On 22/11/24 1:26 AM, Ritesh Harjani (IBM) wrote: Vaibhav Jain writes: Hi Ritesh, Thanks for looking into this patch. My responses on behalf of Narayana below: "Ritesh Harjani (IBM)" writes: Narayana Murty N writes: The PE Reset State "0" obtained from RTAS calls

[PATCH v3] powerpc/pseries/eeh: Fix get PE state translation

2024-12-13 Thread Narayana Murty N
state() is currently not indicating that to the caller because of which the drivers are unable to resume the MMIO and DMA activity. The patch fixes that by reflecting what is actually allowed. Fixes: 00ba05a12b3c ("powerpc/pseries: Cleanup on pseries_eeh_get_state()") Cc: S

[PATCH v4 RESEND] powerpc/pseries/eeh: Fix get PE state translation

2025-01-16 Thread Narayana Murty N
correct state reporting to the callers, aligning the behavior with the PAPR specification and fixing the bug in EEH recovery for VFIO user workflows. Fixes: 00ba05a12b3c ("powerpc/pseries: Cleanup on pseries_eeh_get_state()") Cc: Reviewed-by: Ritesh Harjani (IBM) Signed-off-by: Narayana

[PATCH v4] powerpc/pseries/eeh: Fix get PE state translation

2025-01-15 Thread Narayana Murty N
correct state reporting to the callers, aligning the behavior with the PAPR specification and fixing the bug in EEH recovery for VFIO user workflows. Fixes: 00ba05a12b3c ("powerpc/pseries: Cleanup on pseries_eeh_get_state()") Cc: Signed-off-by: Narayana Murty N --- Changelog: V1:htt