Skip to content

Commit

Permalink
[Intel][ADL-X/ADL-N] Declare PCI ids to probe the memory controller
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Oct 16, 2024
1 parent 2499c3c commit 75362d4
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
17 changes: 17 additions & 0 deletions x86_64/corefreq-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,23 @@ typedef struct
#define DID_INTEL_ADL_PCH_P_SMBUS 0x51a3 /* ADL PCH-P Watchdog */
#define DID_INTEL_ADL_PCH_M_SMBUS 0x54a3 /* ADL PCH-M Watchdog */
#define DID_INTEL_ADL_S_PCH_SMBUS 0x7aa3
/* Source: Intel Atom x7000 / Intel Core i3 N-Series Datasheet, vol 1 */
#define DID_INTEL_ALDERLAKE_N300_8E_HB 0x4617
#define DID_INTEL_ALDERLAKE_N200_4E_HB 0x461b /* SKU_3 */
#define DID_INTEL_ALDERLAKE_N100_4E_HB 0x461c
#define DID_INTEL_ALDERLAKE_X7835RE_8C_HB 0x4675 /* SKU_11_14 */
#define DID_INTEL_ALDERLAKE_X7433RE_4C_HB 0x4674 /* SKU_10_13 */
#define DID_INTEL_ALDERLAKE_N97_4E_HB 0x4678 /* SKU_2 */
#define DID_INTEL_ALDERLAKE_X7425E_4C_HB 0x4679 /* SKU_6 */
#define DID_INTEL_ALDERLAKE_N50_2E_HB 0x4614 /* SKU_1 */
#define DID_INTEL_ALDERLAKE_X7213RE_2C_HB 0x4632 /* SKU_9 */
#define DID_INTEL_ALDERLAKE_X7211RE_2C_HB 0x4673 /* SKU_8_12 */
#define DID_INTEL_ALDERLAKE_X7213E_2C_HB 0x4677 /* SKU_7 */
#define DID_INTEL_ALDERLAKE_X7211E_2C_HB 0x467c /* SKU_5 */
#define DID_INTEL_ALDERLAKE_N305_PCH 0x5481 /* SKU_4 */
#define DID_INTEL_ALDERLAKE_N95_PCH 0x5482
#define DID_INTEL_ALDERLAKE_X7000E_PCH 0x5489 /* SKU_5_7 */
#define DID_INTEL_ALDERLAKE_X7000RE_PCH 0x548a /* SKU_8_14 */
/* Source: 13th Generation Intel Core Processors Datasheet, vol 1 */
#define DID_INTEL_RAPTORLAKE_S_8P_16E_HB 0xa700
#define DID_INTEL_RAPTORLAKE_S_8P_8E_HB 0xa703
Expand Down
4 changes: 4 additions & 0 deletions x86_64/corefreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ enum CHIPSET {
IC_HM670,
IC_ADL_PCH_P,
IC_ADL_PCH_U,
IC_ADL_PCH_N305,
IC_ADL_PCH_N95,
IC_ADL_PCH_X7000E,
IC_ADL_PCH_X7000RE,
IC_Z790,
IC_H770,
IC_B760,
Expand Down
28 changes: 28 additions & 0 deletions x86_64/corefreqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -7048,6 +7048,10 @@ static char *Chipset[CHIPSETS] = {
[IC_HM670] = "Intel HM670",
[IC_ADL_PCH_P] = "Intel ADL PCH-P",
[IC_ADL_PCH_U] = "Intel ADL PCH-U",
[IC_ADL_PCH_N305] = "Intel ADL N305",
[IC_ADL_PCH_N95] = "Intel ADL N95",
[IC_ADL_PCH_X7000E] = "Intel X7000E",
[IC_ADL_PCH_X7000RE] = "Intel X7000RE",
[IC_Z790] = "Intel Z790",
[IC_H770] = "Intel H770",
[IC_B760] = "Intel B760",
Expand Down Expand Up @@ -7526,6 +7530,18 @@ void PCI_Intel(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc), RO(CORE) *RO(Core),
case DID_INTEL_ALDERLAKE_U_2P_8E_HB:
case DID_INTEL_ALDERLAKE_U_2P_4E_HB:
case DID_INTEL_ALDERLAKE_U_1P_4E_HB:
case DID_INTEL_ALDERLAKE_N300_8E_HB:
case DID_INTEL_ALDERLAKE_N200_4E_HB:
case DID_INTEL_ALDERLAKE_N100_4E_HB:
case DID_INTEL_ALDERLAKE_X7835RE_8C_HB:
case DID_INTEL_ALDERLAKE_X7433RE_4C_HB:
case DID_INTEL_ALDERLAKE_N97_4E_HB:
case DID_INTEL_ALDERLAKE_X7425E_4C_HB:
case DID_INTEL_ALDERLAKE_N50_2E_HB:
case DID_INTEL_ALDERLAKE_X7213RE_2C_HB:
case DID_INTEL_ALDERLAKE_X7211RE_2C_HB:
case DID_INTEL_ALDERLAKE_X7213E_2C_HB:
case DID_INTEL_ALDERLAKE_X7211E_2C_HB:
ADL_CAP(RO(Shm), RO(Proc), RO(Core));
ADL_IMC(RO(Shm), RO(Proc));
break;
Expand Down Expand Up @@ -7559,6 +7575,18 @@ void PCI_Intel(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc), RO(CORE) *RO(Core),
case DID_INTEL_ALDERLAKE_PCH_U:
SET_CHIPSET(IC_ADL_PCH_U);
break;
case DID_INTEL_ALDERLAKE_N305_PCH:
SET_CHIPSET(IC_ADL_PCH_N305);
break;
case DID_INTEL_ALDERLAKE_N95_PCH:
SET_CHIPSET(IC_ADL_PCH_N95);
break;
case DID_INTEL_ALDERLAKE_X7000E_PCH:
SET_CHIPSET(IC_ADL_PCH_X7000E);
break;
case DID_INTEL_ALDERLAKE_X7000RE_PCH:
SET_CHIPSET(IC_ADL_PCH_X7000RE);
break;
case DID_INTEL_GEMINILAKE_HB:
GLK_CAP(RO(Shm), RO(Proc), RO(Core));
GLK_IMC(RO(Shm), RO(Proc));
Expand Down
64 changes: 64 additions & 0 deletions x86_64/corefreqk.h
Original file line number Diff line number Diff line change
Expand Up @@ -2954,6 +2954,54 @@ static struct pci_device_id PCI_ADL_RPL_ids[] = {
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_U_1P_4E_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N300_8E_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N200_4E_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N100_4E_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7835RE_8C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7433RE_4C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N97_4E_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7425E_4C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N50_2E_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7213RE_2C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7211RE_2C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7213E_2C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7211E_2C_HB),
.driver_data = (kernel_ulong_t) ADL_IMC
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_H610_PCH),
.driver_data = (kernel_ulong_t) ADL_PCH
Expand Down Expand Up @@ -2994,6 +3042,22 @@ static struct pci_device_id PCI_ADL_RPL_ids[] = {
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_PCH_U),
.driver_data = (kernel_ulong_t) ADL_PCH
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N305_PCH),
.driver_data = (kernel_ulong_t) ADL_PCH
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_N95_PCH),
.driver_data = (kernel_ulong_t) ADL_PCH
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7000E_PCH),
.driver_data = (kernel_ulong_t) ADL_PCH
},
{
PCI_VDEVICE(INTEL, DID_INTEL_ALDERLAKE_X7000RE_PCH),
.driver_data = (kernel_ulong_t) ADL_PCH
},
/* 13th Generation */
{
PCI_VDEVICE(INTEL, DID_INTEL_RAPTORLAKE_S_8P_16E_HB),
Expand Down

0 comments on commit 75362d4

Please sign in to comment.