summaryrefslogtreecommitdiffstats
path: root/src/occ_405/dcom
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2016-11-15 15:26:42 -0600
committerWael El-Essawy <welessa@us.ibm.com>2016-11-17 10:09:22 -0500
commit991c4f3f5eb4dc154b50466b5da901deaadc911d (patch)
tree169ba2f1e4bc80198cc95ac1b52d387b09e90344 /src/occ_405/dcom
parent8654bf4844176f1f7f28792362e475617fea1a23 (diff)
downloadtalos-occ-991c4f3f5eb4dc154b50466b5da901deaadc911d.tar.gz
talos-occ-991c4f3f5eb4dc154b50466b5da901deaadc911d.zip
OCC-OPAL Shared Memory Interface: Dynamic data updates
update the following in OPAL shared memory when any of these pieces change: * OCC State * CPU Throttle status * memory throttle status * quick power drop * power shifting ratio * power cap type * Min power cap * Max power cap * current power cap *** When either throttle status bytes change alert OPAL of shared memory interface change via setting SCOM bits 3 in the ext_intr_reason field of OCC Misc register and bit 0 (core_ext_intr) to generate the interrupt. Change-Id: Ic88a38aba4b84fb247389e712da2e326c2cd9c53 RTC: 130202 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32688 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Wael El-Essawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/dcom')
-rwxr-xr-xsrc/occ_405/dcom/dcom_thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/occ_405/dcom/dcom_thread.c b/src/occ_405/dcom/dcom_thread.c
index 80b9a31..0a61a5b 100755
--- a/src/occ_405/dcom/dcom_thread.c
+++ b/src/occ_405/dcom/dcom_thread.c
@@ -36,6 +36,7 @@
#include <trac.h>
#include <state.h>
#include <proc_pstate.h>
+#include <amec_freq.h>
// Debug Counter to make sure dcom thread is running
uint16_t G_dcom_thread_counter = 0;
@@ -100,7 +101,7 @@ void Dcom_thread_routine(void *arg)
// --------------------------------------------------
if(G_sysConfigData.system_type.kvm)
{
- proc_check_for_opal_updates();
+ check_for_opal_updates();
}
// --------------------------------------------------
@@ -160,6 +161,7 @@ void Dcom_thread_routine(void *arg)
}
}
+
// --------------------------------------------------
// SSX Sleep
// --------------------------------------------------
OpenPOWER on IntegriCloud