From dbf42c997f4e2ecf83245327e0437817ab800b30 Mon Sep 17 00:00:00 2001 From: Greg Still Date: Mon, 29 Feb 2016 13:08:09 -0600 Subject: p9_pm_pstate_gpe_init Level 2 - Include fapi2::delay for polling and overall timeout calculation - Unit tested with Suet - Awan tested with real Hcode to set "PGPEActive" bit Change-Id: I8d03988b82813542d8e4a40ed6b577838850baf5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21583 Tested-by: Hostboot CI Tested-by: Jenkins Server Reviewed-by: Gregory S. Still Tested-by: PPE CI Reviewed-by: Prem Shanker Jha Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21584 Reviewed-by: Sachin Gupta --- src/import/chips/p9/sw_simulation/powermgmt.act | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/import/chips/p9/sw_simulation/powermgmt.act b/src/import/chips/p9/sw_simulation/powermgmt.act index 0ed178df..3531ac3d 100644 --- a/src/import/chips/p9/sw_simulation/powermgmt.act +++ b/src/import/chips/p9/sw_simulation/powermgmt.act @@ -6221,3 +6221,35 @@ CAUSE_EFFECT { ## Core 23 End +## +## Actions for Procedure - p9_pm_pstate_gpe_init +## + +CAUSE_EFFECT { + LABEL=[PGPE_HALT] + WATCH=[REG(0x00064010)] + CAUSE: TARGET=[REG(0x00064010)] OP=[EQUALTO,BUF] DATA=[LITERAL(64, 10000000 00000000)] + #suet PGPE_HALT:tc1- EFFECT: TARGET=[REG(0x00064021)] OP=[BIT,OFF] BIT=[0] + EFFECT: TARGET=[REG(0x00064021)] OP=[BIT,ON] BIT=[0] +} + +# SRESET is a pulse in the hardware that will start the GPE (removed it from halted state) +CAUSE_EFFECT { + LABEL=[PGPE_ACTIVE_SRESET] + WATCH=[REG(0x00064010)] + CAUSE: TARGET=[REG(0x00064010)] OP=[EQUALTO,BUF] DATA=[LITERAL(64, 50000000 00000000)] + #suet PGPE_ACTIVE_SRESET:tc1- EFFECT: TARGET=[REG(0x00064021)] OP=[BIT,ON] BIT=[0] + EFFECT: TARGET=[REG(0x00064021)] OP=[BIT,OFF] BIT=[0] + EFFECT: TARGET=[REG(0x006C08A)] OP=[BIT,ON] BIT=[4] +} + +# HRESET is a pulse in the hardware that will start the GPE (removed it from halted state) +CAUSE_EFFECT { + LABEL=[PGPE_ACTIVE_HRESET] + WATCH=[REG(0x00064010)] + CAUSE: TARGET=[REG(0x00064010)] OP=[EQUALTO,BUF] DATA=[LITERAL(64, 60000000 00000000)] + #suet PGPE_ACTIVE:tc1- EFFECT: TARGET=[REG(0x00064021)] OP=[BIT,ON] BIT=[0] + EFFECT: TARGET=[REG(0x00064021)] OP=[BIT,OFF] BIT=[0] + EFFECT: TARGET=[REG(0x0006C08A)] OP=[BIT,ON] BIT=[4] + EFFECT: TARGET=[REG(0x0006C088)] OP=[BIT,ON] BIT=[0] +} -- cgit v1.2.1