[Skiboot] [PATCH 13/16] npu2-opencapi: Improve error reporting to the OS

christophe lombard clombard at linux.vnet.ibm.com
Tue Sep 17 23:15:37 AEST 2019


On 09/09/2019 14:31, Frederic Barrat wrote:
> When resetting an opencapi link, the brick will be fenced
> temporarily. Therefore we can't rely on the fencing state of the brick
> any more to check for the health of an opencapi PHB, as we could
> report errors if queried for a PHB state at the same time a link is
> being reset.
> 
> Instead, we flag the device as 'broken' when an error interrupt is
> received, just before raising an event to the OS. When the OS is
> querying for the state of a PHB, we only have to look at the 'broken'
> attribute.
> 
> Note that there's no recovery possible on P9 when an error interrupt
> is received unexpectedly, as recovery is not supported by hardware. So
> when a device/link is marked as 'broken', it stays broken. All the OS
> can do is log the error and notify the drivers.
> 
> Signed-off-by: Frederic Barrat <fbarrat at linux.ibm.com>
> ---

Reviewed-by: Christophe Lombard <clombard at linux.vnet.ibm.com>



More information about the Skiboot mailing list