diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2020-11-24 12:46:21 +0530 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2021-01-06 14:49:00 +0530 |
commit | 56b57edd6a4b14d07ec749cb25b054ca0d5051bb (patch) | |
tree | 3f4fac27044666cac2f2b50a00a9dbd6143b2206 /hw/xive.c | |
parent | 9a2d2f9fa3c399f038aea69cb841d1feccb95f8b (diff) | |
download | skiboot-56b57edd6a4b14d07ec749cb25b054ca0d5051bb.zip skiboot-56b57edd6a4b14d07ec749cb25b054ca0d5051bb.tar.gz skiboot-56b57edd6a4b14d07ec749cb25b054ca0d5051bb.tar.bz2 |
core/platform: Fallback to full_reboot if fast-reboot fails
[ Upstream commit 8256da311027176dd22885205f16869f55b79f3b ]
If fast reboot fails then we return to Linux with OPAL_SUCCESS.
Current Linux code thinks that request succedded and enters
infinite loop (see Linux pnv_restart() code).
This patch fixes above issue by return OPAL_UNSUPPORTED if fast
reboot fails.
Alternatively we can directly call full_reboot() itself. But I
think it makes sense to go back to Linux and report the failure.
And Linux falls back to normal reboot request.
Fixes: 10bbcd07 ("core/platform: Add an explicit fast-reboot type")
Cc: Oliver O'Halloran <oohall@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Dan HorĂ¡k <dan@danny.cz>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw/xive.c')
0 files changed, 0 insertions, 0 deletions