summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--import/chips/p9/common/pmlib/include/pstate_pgpe_cme_api.h4
-rw-r--r--import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_pmcr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/import/chips/p9/common/pmlib/include/pstate_pgpe_cme_api.h b/import/chips/p9/common/pmlib/include/pstate_pgpe_cme_api.h
index b5d6ef34..a7e1eec0 100644
--- a/import/chips/p9/common/pmlib/include/pstate_pgpe_cme_api.h
+++ b/import/chips/p9/common/pmlib/include/pstate_pgpe_cme_api.h
@@ -26,8 +26,8 @@
#define __PSTATE_PGPE_CME_API_H__
#define DPLL_REFCLK_DIVIDER 16667
-#define PIG_PAYLOAD_PS_PHASE1_MASK 0x03FF000000000000
-#define PIG_PAYLOAD_PS_PHASE2_MASK 0x000003FF00000000
+#define PIG_PAYLOAD_PS_PHASE1_MASK 0xFF00000000000000
+#define PIG_PAYLOAD_PS_PHASE2_MASK 0x00FF000000000000
#define PIG_PAYLOAD_MASK 0x0fff000000000000
#define PIG_INTR_FIELD_MASK 0x7000000000000000
#define PIG_INTR_GRANTED_MASK 0x0000000080000000
diff --git a/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_pmcr.c b/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_pmcr.c
index 473f1abc..d523d39e 100644
--- a/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_pmcr.c
+++ b/import/chips/p9/procedures/ppe_closed/cme/pstate_cme/p9_cme_thread_pmcr.c
@@ -129,7 +129,7 @@ void p9_cme_pstate_pmcr_thread(void* arg)
//Send Phase 1
ppmPigData.value = 0;
ppmPigData.fields.req_intr_type = 0;
- ppmPigData.value |= (((pmcr[c].value & PIG_PAYLOAD_PS_PHASE1_MASK)));
+ ppmPigData.value |= (((pmcr[c].value & PIG_PAYLOAD_PS_PHASE1_MASK)) >> 8);
ppmPigData.value |= ((G_pmcr_thread_data.seqNum & 0x6) << 57);
send_pig_packet(ppmPigData.value, coreMask[c]);
@@ -138,7 +138,7 @@ void p9_cme_pstate_pmcr_thread(void* arg)
//Send Phase 2
ppmPigData.value = 0;
ppmPigData.fields.req_intr_type = 1;
- ppmPigData.value |= ((pmcr[c].value & PIG_PAYLOAD_PS_PHASE2_MASK) << 16);
+ ppmPigData.value |= (((pmcr[c].value & PIG_PAYLOAD_PS_PHASE2_MASK)));
ppmPigData.value |= ((G_pmcr_thread_data.seqNum & 0x6) << 57);
send_pig_packet(ppmPigData.value, coreMask[c]);
G_pmcr_thread_data.seqNum++;
OpenPOWER on IntegriCloud