summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2015-11-25 14:01:07 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-01 18:13:04 +1100
commit467c017502542b34c9cad5c79cd31b84fb1c94bd (patch)
treeb4615638f0bd92156662760568b229258cc030fe /hw
parentb96a20e2f78c5eb23a951259ece185b2897e1416 (diff)
downloadtalos-skiboot-467c017502542b34c9cad5c79cd31b84fb1c94bd.tar.gz
talos-skiboot-467c017502542b34c9cad5c79cd31b84fb1c94bd.zip
FSP: Give up PSI link on shutdown
Since we are anyway on the way to standby and apparently the other hypervisor also does this. Tested-by: Vipin K Parashar <vipin@linux.vnet.ibm.com> Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fsp/fsp.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/hw/fsp/fsp.c b/hw/fsp/fsp.c
index b53c3f00..220b97ea 100644
--- a/hw/fsp/fsp.c
+++ b/hw/fsp/fsp.c
@@ -569,6 +569,28 @@ static void fsp_start_rr(struct fsp *fsp)
*/
}
+/*
+ * Called on normal/quick shutdown to give up the PSI link
+ */
+void fsp_reset_links(void)
+{
+ struct fsp *fsp = fsp_get_active();
+ struct fsp_iopath *iop;
+
+ if (!fsp)
+ return;
+
+ /* Already in one of the error states? */
+ if (fsp_in_hir(fsp) || fsp_in_reset(fsp))
+ return;
+
+ iop = &fsp->iopath[fsp->active_iopath];
+ prlog(PR_NOTICE, "FSP #%d: Host initiated shutdown."
+ " Giving up the PSI link\n", fsp->index);
+ psi_disable_link(iop->psi);
+ return;
+}
+
static void fsp_trace_event(struct fsp *fsp, u32 evt,
u32 data0, u32 data1, u32 data2, u32 data3)
{
OpenPOWER on IntegriCloud