summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_data.c
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/amec/amec_data.c
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/amec/amec_data.c')
-rwxr-xr-xsrc/occ_405/amec/amec_data.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/occ_405/amec/amec_data.c b/src/occ_405/amec/amec_data.c
index c5bde89..6663cdc 100755
--- a/src/occ_405/amec/amec_data.c
+++ b/src/occ_405/amec/amec_data.c
@@ -457,6 +457,12 @@ void amec_data_write_pcap(void)
g_amec->pcap.ovs_node_pcap = l_customer;
}
+ //for all new pcap data setting: If KVM, update the OPAL dynamic data
+ if(G_sysConfigData.system_type.kvm)
+ {
+ ssx_semaphore_post(&G_dcomThreadWakeupSem);
+ }
+
// update data mask notifying we got pcap information
extern data_cnfg_t * G_data_cnfg;
G_data_cnfg->data_mask |= DATA_MASK_PCAP_PRESENT;
OpenPOWER on IntegriCloud