Skip to contentSkip to conversation

platform/x86/intel/pmc: Fix stale NVL PCD-S S0ix_LPM telemetry constants

PATCH In review Xi Pardee 2 participants 2 messages Sep 19 – Oct 5

Subsystems (2)
lore
Share & tools
lore

Xi Pardee

author maintainer
#0 lore raw

PATCH 1/1 platform/x86/intel/pmc: Fix stale NVL PCD-S S0ix_LPM telemetry constants

The Nova Lake PCD-S S0ix_LPM telemetry layout changed. The PCD-S telemetry GUID was changed to reflect the layout change, per the client GUID revision rule.

nvl_pcds_d3_status_1_map[] was correctly updated, but two companion constants were never updated to match:

1. NVL_PCDS_NUM_S0IX_BLOCKER (core.h) is 71 instead of the actual

    number of blk == 1 entries across nvl_pcds_blk_maps.

2. PCDS_LPM_REQ_GUID (nvl.c) is still 0x01091102. It was never

    bumped to 0x01091103 to reflect the S0ix_LPM telemetry metadata
    layout change.

Both constants describe the same S0ix_LPM/blocker telemetry region for PCD-S, so fix them together in one change.

Fixes 41354f4c8a79 ("platform/x86/intel/pmc: Add Nova Lake support to intel_pmc_core driver")
---
 drivers/platform/x86/intel/pmc/core.h | 2 +-
 drivers/platform/x86/intel/pmc/nvl.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/intel/pmc/core.h +1 -1
index b4c7399f8369d..e55164e5807fd 100644
@@ -323,7 +323,7 @@ enum ppfear_regs {
 #define NVL_LPM_LIVE_STATUS_OFFSET		0x1760
 #define NVL_LPM_NUM_MAPS			15
 #define NVL_PCDH_NUM_S0IX_BLOCKER		107
-#define NVL_PCDS_NUM_S0IX_BLOCKER		71
+#define NVL_PCDS_NUM_S0IX_BLOCKER		70
 #define NVL_PCHS_NUM_S0IX_BLOCKER		54
 #define NVL_PCDS_PMC_LTR_RESERVED		0x1bac
 #define NVL_PCDH_BLK_REQ_OFFSET			53
drivers/platform/x86/intel/pmc/nvl.c +1 -1
index 8dabf2511dd9d..1ed02332dbfce 100644
@@ -14,7 +14,7 @@
 /* PMC SSRAM PMT Telemetry GUIDS */
 #define PCDH_LPM_REQ_GUID 0x01093101
 #define PCHS_LPM_REQ_GUID 0x01092101
-#define PCDS_LPM_REQ_GUID 0x01091102
+#define PCDS_LPM_REQ_GUID 0x01091103
 
 /*
  * Die Mapping to Product.
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 8 lines · Xi Pardee

The Nova Lake PCD-S S0ix_LPM telemetry layout changed. The PCD-S telemetry GUID was changed to reflect the layout change, per the client GUID revision rule.

nvl_pcds_d3_status_1_map[] was correctly updated, but two companion constants were never updated to match:

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also fixes are mostly routed through for-next unless the fix is for a commit introduced in the most recent cycle or is clearly a regression fix.

The list of commits applied:
[1/1] platform/x86/intel/pmc: Fix stale NVL PCD-S S0ix_LPM telemetry constants

      commit: fcad4877a04ea40d0402015a3c4bae89677aea12

--
i.