From 1cacd2e47afbc55f3c80fd8713e45f6be0463e40 Mon Sep 17 00:00:00 2001 From: Yue Du Date: Wed, 4 Jan 2017 15:32:10 -0600 Subject: STOP: prevent ppe wait cycle being compiled out by compiler Change-Id: I1a34cfa9e8292e0ca180a30ce2b44b6bd9751cb5 Original-Change-Id: Ib9472733f828b557d4799ddb9fb00975ce004d9e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34378 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still --- import/chips/p9/procedures/ppe_closed/cme/stop_cme/p9_cme_stop_entry.c | 3 +-- .../chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_entry.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/import/chips/p9/procedures/ppe_closed/cme/stop_cme/p9_cme_stop_entry.c b/import/chips/p9/procedures/ppe_closed/cme/stop_cme/p9_cme_stop_entry.c index c1a04262..095d1994 100755 --- a/import/chips/p9/procedures/ppe_closed/cme/stop_cme/p9_cme_stop_entry.c +++ b/import/chips/p9/procedures/ppe_closed/cme/stop_cme/p9_cme_stop_entry.c @@ -63,7 +63,6 @@ p9_cme_stop_entry() uint32_t core_stop1 = 0; uint32_t core_raw = 0; uint32_t core; - uint32_t loop; uint32_t pm_states; uint32_t lclr_data; uint64_t scom_data; @@ -352,7 +351,7 @@ p9_cme_stop_entry() // Waits quiesce done for at least 512 core cycles // MF: verify generate FCB otherwise math is wrong. - PPE_WAIT_CORE_CYCLES(loop, 512) + PPE_WAIT_CORE_CYCLES(512) PK_TRACE_INF("SE2.B: Interfaces Quiesced"); diff --git a/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_entry.c b/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_entry.c index 1b39f055..e62323af 100644 --- a/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_entry.c +++ b/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_entry.c @@ -77,7 +77,6 @@ p9_sgpe_stop_entry() uint32_t climit; uint32_t xentry; uint32_t qentry; - uint32_t loop; uint64_t scom_data; uint64_t temp_data; uint64_t host_attn; @@ -364,7 +363,7 @@ p9_sgpe_stop_entry() GPE_PUTSCOM(GPE_SCOM_ADDR_EX(EX_PM_L2_RCMD_DIS_REG, qloop, 1), BIT64(0)); - PPE_WAIT_CORE_CYCLES(loop, 256) + PPE_WAIT_CORE_CYCLES(256) PK_TRACE("Assert partial bad L2/L3 and stopping/stoped l2 pscom masks via RING_FENCE_MASK_LATCH"); scom_data = 0; -- cgit v1.2.3