[PATCH v3] powerpc/pseries/eeh: Fix get PE state translation
Ritesh Harjani (IBM)
ritesh.list at gmail.com
Sat Dec 14 22:28:12 AEDT 2024
Narayana Murty N <nnmlinux at linux.ibm.com> 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: <stable at vger.kernel.org>
> Signed-off-by: Narayana Murty N <nnmlinux at linux.ibm.com>
>
> ---
> Changelog:
> V1:https://lore.kernel.org/all/20241107042027.338065-1-nnmlinux@linux.ibm.com/
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 at gmail.com>
-ritesh
More information about the Linuxppc-dev
mailing list