[PATCH v3 0/7] Enable NVL support in intel_pmc_core

Xi Pardee posted 7 patches 1 month ago
drivers/platform/x86/intel/pmc/Makefile |    3 +-
drivers/platform/x86/intel/pmc/arl.c    |   13 +-
drivers/platform/x86/intel/pmc/core.c   |  137 +-
drivers/platform/x86/intel/pmc/core.h   |   68 +-
drivers/platform/x86/intel/pmc/lnl.c    |    6 +-
drivers/platform/x86/intel/pmc/mtl.c    |    7 +-
drivers/platform/x86/intel/pmc/nvl.c    | 1539 +++++++++++++++++++++++
drivers/platform/x86/intel/pmc/ptl.c    |    8 +-
drivers/platform/x86/intel/pmc/wcl.c    |    6 +-
9 files changed, 1748 insertions(+), 39 deletions(-)
create mode 100644 drivers/platform/x86/intel/pmc/nvl.c
[PATCH v3 0/7] Enable NVL support in intel_pmc_core
Posted by Xi Pardee 1 month ago
This patch series introduces two new features, enhances existing
functionalities, and adds NVL support to the intel_pmc_core driver.

The first three patches add new attributes to improve Package C-state
debugging. The fourth and fifth patches refine current functionality
for better support. The sixth patch enables the intel_pmc_core driver
retrieves PMC information only for available PMCs. Finally, the last
patch adds support for Nova Lake platforms.

v3->v2:
- Move common helper code to patch 2 to avoid switch code back and
  forth.
- Remove unneeded empty line.
- Add #include for BIT() in nvl.c.
- Change pmc_list to be const variables.
- Change PPFEAR_MAX_NUM_ENTRIES to 13.

v2->v1:
- Add a patch to use __free(pci_dev_put) in pmc_core_punit_pmt_init().
- When using scoped base cleanup method, move variable declaration and
  assignment in one place.
- Simplifies logic and remove unneeded offset variables.
- Create common helper function to used by pmc_core_pkgc_ltr_blocker_show()
  and pmc_core_pkgc_blocker_residency_show()
- Add num_pmcs field in pmc_dev_info struct to store the number of PMCs
  available in the platform.
- Use lowercase letter for variable in nvl.c().
- Fix typo.

Xi Pardee (7):
  platform/x86/intel/pmc: Use __free() in pmc_core_punit_pmt_init()
  platform/x86/intel/pmc: Enable PkgC LTR blocking counter
  platform/x86/intel/pmc: Enable Pkgc blocking residency counter
  platform/x86/intel/pmc: Use PCI DID for PMC SSRAM device discovery
  platform/x86/intel/pmc: Add support for variable DMU offsets
  platform/x86/intel/pmc: Retrieve PMC info only for available PMCs
  platform/x86/intel/pmc: Add Nova Lake support to intel_pmc_core driver

 drivers/platform/x86/intel/pmc/Makefile |    3 +-
 drivers/platform/x86/intel/pmc/arl.c    |   13 +-
 drivers/platform/x86/intel/pmc/core.c   |  137 +-
 drivers/platform/x86/intel/pmc/core.h   |   68 +-
 drivers/platform/x86/intel/pmc/lnl.c    |    6 +-
 drivers/platform/x86/intel/pmc/mtl.c    |    7 +-
 drivers/platform/x86/intel/pmc/nvl.c    | 1539 +++++++++++++++++++++++
 drivers/platform/x86/intel/pmc/ptl.c    |    8 +-
 drivers/platform/x86/intel/pmc/wcl.c    |    6 +-
 9 files changed, 1748 insertions(+), 39 deletions(-)
 create mode 100644 drivers/platform/x86/intel/pmc/nvl.c

-- 
2.43.0
Re: [PATCH v3 0/7] Enable NVL support in intel_pmc_core
Posted by Ilpo Järvinen 1 month ago
On Mon, 04 May 2026 21:33:31 -0700, Xi Pardee wrote:

> This patch series introduces two new features, enhances existing
> functionalities, and adds NVL support to the intel_pmc_core driver.
> 
> The first three patches add new attributes to improve Package C-state
> debugging. The fourth and fifth patches refine current functionality
> for better support. The sixth patch enables the intel_pmc_core driver
> retrieves PMC information only for available PMCs. Finally, the last
> patch adds support for Nova 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/7] platform/x86/intel/pmc: Use __free() in pmc_core_punit_pmt_init()
      commit: dfe614f82e445a65cb2afd01859b06b01fce8889
[2/7] platform/x86/intel/pmc: Enable PkgC LTR blocking counter
      commit: 38c79dd63b72e36919ef097d4e5025ca0fa17f34
[3/7] platform/x86/intel/pmc: Enable Pkgc blocking residency counter
      commit: d727eb1c3ede7c21f885ded1f1ad65b47434a9b9
[4/7] platform/x86/intel/pmc: Use PCI DID for PMC SSRAM device discovery
      commit: 11de0586ecf40aa747972f1b0bf88bac192d7b06
[5/7] platform/x86/intel/pmc: Add support for variable DMU offsets
      commit: ebbf33380896cc489e870d88004ad3750e908a6c
[6/7] platform/x86/intel/pmc: Retrieve PMC info only for available PMCs
      commit: a7d5916d132300b1ff6ac0c5f6d7a7cb7817a7fc
[7/7] platform/x86/intel/pmc: Add Nova Lake support to intel_pmc_core driver
      commit: 41354f4c8a791d3059f4355945e550693ac87ce8

--
 i.