powerpc/powernv: Escalate reset when IODA reset fails
authorOliver O'Halloran <oohall@gmail.com>
Fri, 1 Feb 2019 00:42:01 +0000 (11:42 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 6 Feb 2019 13:29:20 +0000 (00:29 +1100)
commitb174b4fb919d118d9ac546b99a69574dfa431f7f
treedfbbf5d13e08188741b536adafef4245e578839c
parentebb0e13ead2ddc186a80b1b0235deeefc5a1a667
powerpc/powernv: Escalate reset when IODA reset fails

The IODA reset is used to flush out any OS controlled state from the PHB.
This reset can fail if a PHB fatal error has occurred in early boot,
probably due to a because of a bad device. We already do a fundemental
reset of the device in some cases, so this patch just adds a test to force
a full reset if firmware reports an error when performing the IODA reset.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c