summaryrefslogtreecommitdiffstats
path: root/src/occ_405/rtls
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2017-07-18 16:32:36 -0500
committerMartha Broyles <mbroyles@us.ibm.com>2017-07-21 17:10:53 -0400
commit3d71bd95e10f82ae2a96e6ebc929dc2ca7b1b63c (patch)
tree7f4ed4652a14f467737c369a791b8d61c4ff2af8 /src/occ_405/rtls
parentcf1a6cc0ab4e6b5203129925b1e9bb38cd0ae9aa (diff)
downloadtalos-occ-3d71bd95e10f82ae2a96e6ebc929dc2ca7b1b63c.tar.gz
talos-occ-3d71bd95e10f82ae2a96e6ebc929dc2ca7b1b63c.zip
Fix IPS enter/exit time happening in half the time it should be
Change-Id: Ibae3b77afbb42a34efe622c5da3aba391ee92bae Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43288 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/rtls')
-rwxr-xr-xsrc/occ_405/rtls/rtls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/occ_405/rtls/rtls.h b/src/occ_405/rtls/rtls.h
index d7eaf5f..ad2b5fa 100755
--- a/src/occ_405/rtls/rtls.h
+++ b/src/occ_405/rtls/rtls.h
@@ -115,6 +115,16 @@ typedef struct
#define SIMICS_MICS_PER_TICK 20000 // slow down RTL to 20ms for Simics
#define DCOM_TX_APSS_WAIT_TIME G_dcom_tx_apss_wait_time
+// core data collection time. All cores collected one time thru tick table
+#define CORE_DATA_COLLECTION_US (MICS_PER_TICK * MAX_NUM_TICKS)
+//Number of samples per second for performance-related algorithms (e.g. UTILCy)
+#define AMEC_DPS_SAMPLING_RATE (1000000 / CORE_DATA_COLLECTION_US)
+//Time interval for averaging utilization and frequency (IPS algorithm) 3 seconds
+#define AMEC_IPS_AVRG_INTERVAL 3
+// NOTE: for IPS timings to work, need to make sure the check for amec_mst_ips_main() is at the same frequency
+// i.e. core data is collected every CORE_DATA_COLLECTION_US the checking for amec_mst_ips_main() must be same.
+// If core data collection time changes must adjust the checking for amec_mst_ips_main() to match
+
// The value of the current tick
extern uint32_t G_current_tick;
OpenPOWER on IntegriCloud