[Skiboot] [PATCH] fast-reboot: abort fast reboot if CAPP attached

Stewart Smith stewart at linux.vnet.ibm.com
Mon Oct 24 12:06:03 AEDT 2016


Andrew Donnellan <andrew.donnellan at au1.ibm.com> writes:
> If a PHB is in CAPI mode, we cannot safely fast reboot - the PHB will be
> fenced during the reboot resulting in major problems when we load the new
> kernel.
>
> In order to handle this safely, we need to disable CAPI mode before
> resetting PHBs during the fast reboot. However, we don't currently support
> this.
>
> In the meantime, when fast rebooting, check if there are any PHBs with a
> CAPP attached, and if so, abort the fast reboot and revert to a normal
> reboot instead.
>
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
>
> ---
>
> Lightly tested. I'm still reworking my patch to disable the CAPP properly
> during a PHB creset which will render this unneccessary.
> ---

This looks like a good solution for now though, and certainly improves
the current situation.

TBH I'm not sure if fast-reboot.c() is the best place for all these
checks, but we can always move them later, and I certainly don't mind
the readability of having all the logic just in there.

Merged to master as of 60f7216

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list