]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb73348c9e1dd317decae9fd0b704e7385a6fb292
treedfbbf5d13e08188741b536adafef4245e578839c
parent4a0a2476e59e58ab951c5c5eee918a05267b1377
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