[PATCH v4 0/5] Enable SSRAM support in PTL and LNL

Xi Pardee posted 5 patches 3 weeks ago
drivers/platform/x86/intel/pmc/arl.c  |   4 +
drivers/platform/x86/intel/pmc/core.c | 182 +++++++++++++++++++++-----
drivers/platform/x86/intel/pmc/core.h |  16 +++
drivers/platform/x86/intel/pmc/lnl.c  |  18 +++
drivers/platform/x86/intel/pmc/mtl.c  |   2 +
drivers/platform/x86/intel/pmc/ptl.c  |  31 +++++
6 files changed, 217 insertions(+), 36 deletions(-)
[PATCH v4 0/5] Enable SSRAM support in PTL and LNL
Posted by Xi Pardee 3 weeks ago
This series enables SSRAM support, including achieving PMC information,
low power mode substate requirements in Lunar Lake and Panther Lake
platforms for Intel PMC Core driver. This patch series will not modify
the functionality of Intel PMC Core driver in previous platforms.

The first patch enables SSRAM support for Lunar Lake platforms. The next
three patches introduces a new table in telemetry region to get substate
requirement information for platforms starting from Panther Lake. The
last patch enables SSRAM support for Panther Lake platforms.

---
v4->v3:
- Drop the patch to show device and function number. This patch will be
  sent separately.
- Add a comma in enum definition.
- Use %u for unsigned variables.
- Remove unneeded variables.
- Remove unneeded empty lines.

v3->v2:
- Add a patch to show device and function number.
- Use function pointer in struct pmc_dev_info to determine which
  substate requirement table to achieve and which show operation to use.
- Fix alignment.
- Move variable declarations to appropriate locations.
- Replace char pointer with enum as function parameter.

v2->v1:
- Change to only check ret variable value when getting substate data in
  pmc_core_get_telem_info().
- Return immediately when devm_kcalloc() fails.
- Return 0 instead of ret when succeeding in
  pmc_core_pmt_get_blk_sub_req().
- Replace devm_kzalloc() with devm_kcalloc().
- Add telem_info field of arl_pmc_dev variable.

Xi Pardee (5):
  platform/x86:intel/pmc: Enable SSRAM support for Lunar Lake
  platform/x86:intel/pmc: Move telemetry endpoint register handling
  platform/x86:intel/pmc: Improve function to show substate header
  platform/x86:intel/pmc: Show substate requirement for S0ix blockers
  platform/x86:intel/pmc: Enable SSRAM support for Panther Lake

 drivers/platform/x86/intel/pmc/arl.c  |   4 +
 drivers/platform/x86/intel/pmc/core.c | 182 +++++++++++++++++++++-----
 drivers/platform/x86/intel/pmc/core.h |  16 +++
 drivers/platform/x86/intel/pmc/lnl.c  |  18 +++
 drivers/platform/x86/intel/pmc/mtl.c  |   2 +
 drivers/platform/x86/intel/pmc/ptl.c  |  31 +++++
 6 files changed, 217 insertions(+), 36 deletions(-)

-- 
2.43.0
Re: [PATCH v4 0/5] Enable SSRAM support in PTL and LNL
Posted by Ilpo Järvinen 3 weeks ago
On Wed, 10 Sep 2025 14:06:20 -0700, Xi Pardee wrote:

> This series enables SSRAM support, including achieving PMC information,
> low power mode substate requirements in Lunar Lake and Panther Lake
> platforms for Intel PMC Core driver. This patch series will not modify
> the functionality of Intel PMC Core driver in previous platforms.
> 
> The first patch enables SSRAM support for Lunar Lake platforms. The next
> three patches introduces a new table in telemetry region to get substate
> requirement information for platforms starting from Panther Lake. The
> last patch enables SSRAM support for Panther Lake platforms.
> 
> [...]


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.

The list of commits applied:
[1/5] platform/x86:intel/pmc: Enable SSRAM support for Lunar Lake
      commit: feae929d8e6cb4e8d78a930c8b75326229e6b921
[2/5] platform/x86:intel/pmc: Move telemetry endpoint register handling
      commit: 1e508af6bc4b24a7924b619800f1b138281f0e82
[3/5] platform/x86:intel/pmc: Improve function to show substate header
      commit: 612326e0a87a5c75d35146ee172eb46bcd09089a
[4/5] platform/x86:intel/pmc: Show substate requirement for S0ix blockers
      commit: a22bc8643889ef5a3c032700f69001fdc457413c
[5/5] platform/x86:intel/pmc: Enable SSRAM support for Panther Lake
      commit: 8e54e493c9926105e771873b151d5eba80fbb856

--
 i.