[Skiboot] [PATCH 4/7] capp/phb4: Force CAPP to PCIe mode during kernel shutdown

Andrew Donnellan andrew.donnellan at au1.ibm.com
Mon Sep 17 18:46:06 AEST 2018


On 16/9/18 12:39 am, Vaibhav Jain wrote:
> 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.
> 
> 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. 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>

Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the Skiboot mailing list