[Skiboot] [PATCH 4/7] capp/phb4: Force CAPP to PCIe mode during kernel shutdown
vaibhav at linux.ibm.com
Wed Sep 19 19:59:42 AEST 2018
Andrew Donnellan <andrew.donnellan at au1.ibm.com> writes:
> On 19/9/18 6:36 pm, Stewart Smith wrote:>> + return rc <= OPAL_SUCCESS;
>> return true if success or failure? Is this one of the fun "true when
>> done" functions?
> Yep - there's no way to report an error as such. If you report false,
> that turns into an OPAL_BUSY being returned to Linux and you get polled
> a few ms later. If you report true, that turns into an OPAL_SUCCESS and
> you actually reboot.
> Though if the PHB reset is failing, do we catch that and force a full
> IPL at some point?
Yes, if PHB reset fails its handled in phb4_slot_sm_run_completed()
where we disable fast reset to do full IPL. I have tested it by manually
injecting a reset failure in code and found it to be working.
Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
Linux Technology Center, IBM India Pvt. Ltd.
More information about the Skiboot