Re: [PATCH v3] powerpc/pseries/eeh: Fix get PE state translation
From: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Date: 2024-12-14 11:36:06
Also in:
lkml, stable
From: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Date: 2024-12-14 11:36:06
Also in:
lkml, stable
Narayana Murty N [off-list ref] writes:
The PE Reset State "0" obtained from RTAS calls
ibm_read_slot_reset_[state|state2] indicates that
the Reset is deactivated and the PE is not in the MMIO
Stopped or DMA Stopped state.
With PE Reset State "0", the MMIO and DMA is allowed for
the PE. The function pseries_eeh_get_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: <redacted>
Signed-off-by: Narayana Murty N <redacted>
---
Changelog:
V1:https://lore.kernel.org/all/20241107042027.338065-1-nnmlinux@linux.ibm.com/ (local)As discussed in v1, powernv already does this and this is needed for pseries as well for the callers to know, whether the eeh recovery is completed. This looks good to me. Please feel free to add - Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> -ritesh