Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86:intel/pmc: Enable SSRAM support for Lunar Lake

Enable Lunar Lake platforms to achieve PMC information from
Intel PMC SSRAM Telemetry driver and substate requirements data
from telemetry region.

Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20250910210629.11198-2-xi.pardee@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Xi Pardee and committed by
Ilpo Järvinen
feae929d 2ab7713d

+16
+16
drivers/platform/x86/intel/pmc/lnl.c
··· 13 13 14 14 #include "core.h" 15 15 16 + #define SOCM_LPM_REQ_GUID 0x15099748 17 + 18 + static const u8 LNL_LPM_REG_INDEX[] = {0, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 20}; 19 + 16 20 static const struct pmc_bit_map lnl_ltr_show_map[] = { 17 21 {"SOUTHPORT_A", CNP_PMC_LTR_SPA}, 18 22 {"SOUTHPORT_B", CNP_PMC_LTR_SPB}, ··· 532 528 .lpm_live_status_offset = MTL_LPM_LIVE_STATUS_OFFSET, 533 529 .s0ix_blocker_maps = lnl_blk_maps, 534 530 .s0ix_blocker_offset = LNL_S0IX_BLOCKER_OFFSET, 531 + .lpm_reg_index = LNL_LPM_REG_INDEX, 532 + }; 533 + 534 + static struct pmc_info lnl_pmc_info_list[] = { 535 + { 536 + .guid = SOCM_LPM_REQ_GUID, 537 + .devid = PMC_DEVID_LNL_SOCM, 538 + .map = &lnl_socm_reg_map, 539 + }, 540 + {} 535 541 }; 536 542 537 543 #define LNL_NPU_PCI_DEV 0x643e ··· 571 557 } 572 558 573 559 struct pmc_dev_info lnl_pmc_dev = { 560 + .pci_func = 2, 561 + .regmap_list = lnl_pmc_info_list, 574 562 .map = &lnl_socm_reg_map, 575 563 .suspend = cnl_suspend, 576 564 .resume = lnl_resume,