[Skiboot] [PATCH v3 5/8] capp/phb4: Force CAPP to PCIe mode during kernel shutdown

christophe lombard clombard at linux.vnet.ibm.com
Wed Jan 9 03:52:31 AEDT 2019

Le 08/01/2019 à 10:58, Vaibhav Jain a écrit :
> This patch introduces a new opal syncer for PHB4 named
> phb4_host_sync_reset(). We register this opal syncer when CAPP is
> activated successfully in phb4_set_capi_mode() so that it will be
> called at kernel shutdown during fast-reset.
> During kernel shutdown the function will then repeatedly call
> phb->ops->set_capi_mode() to switch switch CAPP to PCIe mode. In case
> set_capi_mode() indicates its OPAL_BUSY, which indicates that CAPP is
> still transitioning to new state; it calls slot->ops.run_sm() to
> ensure that Opal slot reset state machine makes forward progress.
> Signed-off-by: Vaibhav Jain <vaibhav at linux.ibm.com>
> ---
> Change-log
> v3:	Updated code to use struct phb4->capp instead of struct phb->capp.
> ---

Reviewed-by: Christophe Lombard <clombard at linux.vnet.ibm.com>

More information about the Skiboot mailing list