[PATCH 0/7] Create Intel PMC SSRAM Telemetry driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series removes the SSRAM support from Intel PMC Core driver
and creates a separate PCI driver for SSRAM device. The new Intel PMC
SSRAM driver provides the following functionalities:
 
1. Search and store the PMC information in a structure, including PWRMBASE
address and devid for each available PMC. Then Intel PMC Core driver
achieves the PMC information using the API provided by the new driver.
 
2. Search and register Intel Platform Monitoring Techology telemetry
regions so they would by available for read through sysfs and Intel PMT
API. Intel PMC Core driver can achieve Low Power Mode requirement
information from a telemetry region registered by the new driver.
The above functionalities was previously handled by Intel PMC Core
driver. Intel PMC Core driver returns -EPROBE_DEFER when trying to read
data from a telem region that is not available yet. This setup may
result in an infinite loop of .probe() calls as Intel PMC Core driver
creates child devices. Creating a separate PCI driver avoids the infinite
loop possibility.
 
Xi Pardee (7):
  platform/x86:intel/pmc: Remove SSRAM support from PMC Core
  platform/x86:intel/pmc: Create Intel PMC SSRAM Telemetry driver
  platform/x86:intel/pmc: Add support to get PMC information from SSRAM
  platform/x86:intel/pmt: Get PMC from SSRAM for available platforms
  platform/x86:intel/pmt: Create inline version for telemetry functions
  platform/x86:intel/pmc: Add support to Retrieve LPM information
  platform/x86:intel/pmc: Get LPM information for available platforms

 drivers/platform/x86/intel/pmc/Kconfig        |  13 +-
 drivers/platform/x86/intel/pmc/Makefile       |   8 +-
 drivers/platform/x86/intel/pmc/arl.c          |  36 +-
 drivers/platform/x86/intel/pmc/core.c         | 216 +++++++++++-
 drivers/platform/x86/intel/pmc/core.h         |  25 +-
 drivers/platform/x86/intel/pmc/core_ssram.c   | 326 ------------------
 drivers/platform/x86/intel/pmc/lnl.c          |  36 +-
 drivers/platform/x86/intel/pmc/mtl.c          |  34 +-
 .../platform/x86/intel/pmc/ssram_telemetry.c  | 184 ++++++++++
 .../platform/x86/intel/pmc/ssram_telemetry.h  |  45 +++
 drivers/platform/x86/intel/pmt/telemetry.h    |  19 +-
 11 files changed, 550 insertions(+), 392 deletions(-)
 delete mode 100644 drivers/platform/x86/intel/pmc/core_ssram.c
 create mode 100644 drivers/platform/x86/intel/pmc/ssram_telemetry.c
 create mode 100644 drivers/platform/x86/intel/pmc/ssram_telemetry.h

-- 
2.43.0





[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux