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: Move PMC devid to core.h

Move PMC devid definition for each PMC of Arrow Lake and Meteor
Lake platforms to core.h. This patch is a preparation step to
introduce a new SSRAM Telemetry driver which will be using the
PMC devid.

Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250409191056.15434-4-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
1b1aaa9c e9f9cf3f

+19 -14
+4 -8
drivers/platform/x86/intel/pmc/arl.c
··· 651 651 .etr3_offset = ETR3_OFFSET, 652 652 }; 653 653 654 - #define PMC_DEVID_SOCM 0x777f 655 - #define PMC_DEVID_SOCS 0xae7f 656 - #define PMC_DEVID_IOEP 0x7ecf 657 - #define PMC_DEVID_PCHS 0x7f27 658 654 static struct pmc_info arl_pmc_info_list[] = { 659 655 { 660 656 .guid = IOEP_LPM_REQ_GUID, 661 - .devid = PMC_DEVID_IOEP, 657 + .devid = PMC_DEVID_ARL_IOEP, 662 658 .map = &mtl_ioep_reg_map, 663 659 }, 664 660 { 665 661 .guid = SOCS_LPM_REQ_GUID, 666 - .devid = PMC_DEVID_SOCS, 662 + .devid = PMC_DEVID_ARL_SOCS, 667 663 .map = &arl_socs_reg_map, 668 664 }, 669 665 { 670 666 .guid = PCHS_LPM_REQ_GUID, 671 - .devid = PMC_DEVID_PCHS, 667 + .devid = PMC_DEVID_ARL_PCHS, 672 668 .map = &arl_pchs_reg_map, 673 669 }, 674 670 { 675 671 .guid = SOCM_LPM_REQ_GUID, 676 - .devid = PMC_DEVID_SOCM, 672 + .devid = PMC_DEVID_ARL_SOCM, 677 673 .map = &mtl_socm_reg_map, 678 674 }, 679 675 {}
+12
drivers/platform/x86/intel/pmc/core.h
··· 298 298 #define PTL_PMC_LTR_CUR_PLT 0x1C2C 299 299 #define PTL_PCD_PMC_MMIO_REG_LEN 0x31A8 300 300 301 + /* SSRAM PMC Device ID */ 302 + /* ARL */ 303 + #define PMC_DEVID_ARL_SOCM 0x777f 304 + #define PMC_DEVID_ARL_SOCS 0xae7f 305 + #define PMC_DEVID_ARL_IOEP 0x7ecf 306 + #define PMC_DEVID_ARL_PCHS 0x7f27 307 + 308 + /* MTL */ 309 + #define PMC_DEVID_MTL_SOCM 0x7e7f 310 + #define PMC_DEVID_MTL_IOEP 0x7ecf 311 + #define PMC_DEVID_MTL_IOEM 0x7ebf 312 + 301 313 extern const char *pmc_lpm_modes[]; 302 314 303 315 struct pmc_bit_map {
+3 -6
drivers/platform/x86/intel/pmc/mtl.c
··· 947 947 .lpm_reg_index = MTL_LPM_REG_INDEX, 948 948 }; 949 949 950 - #define PMC_DEVID_SOCM 0x7e7f 951 - #define PMC_DEVID_IOEP 0x7ecf 952 - #define PMC_DEVID_IOEM 0x7ebf 953 950 static struct pmc_info mtl_pmc_info_list[] = { 954 951 { 955 952 .guid = SOCP_LPM_REQ_GUID, 956 - .devid = PMC_DEVID_SOCM, 953 + .devid = PMC_DEVID_MTL_SOCM, 957 954 .map = &mtl_socm_reg_map, 958 955 }, 959 956 { 960 957 .guid = IOEP_LPM_REQ_GUID, 961 - .devid = PMC_DEVID_IOEP, 958 + .devid = PMC_DEVID_MTL_IOEP, 962 959 .map = &mtl_ioep_reg_map, 963 960 }, 964 961 { 965 962 .guid = IOEM_LPM_REQ_GUID, 966 - .devid = PMC_DEVID_IOEM, 963 + .devid = PMC_DEVID_MTL_IOEM, 967 964 .map = &mtl_ioem_reg_map 968 965 }, 969 966 {}