Skip to content

Commit 426463d

Browse files
Shyam Sundar S Kij-intel
authored andcommitted
platform/x86/amd/pmc: Send OS_HINT command for new AMD platform
To initiate the HW deep state transition, the OS_HINT command has to be sent to the PMFW. Add this support to the platforms that belong to family 1Ah model 60h series. Signed-off-by: Shyam Sundar S K <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 4c83ee4 commit 426463d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/platform/x86/amd/pmc/pmc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ static int amd_pmc_get_os_hint(struct amd_pmc_dev *dev)
764764
case AMD_CPU_ID_CB:
765765
case AMD_CPU_ID_PS:
766766
case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
767+
case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
767768
return MSG_OS_HINT_RN;
768769
}
769770
return -EINVAL;
@@ -967,6 +968,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
967968
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_RV) },
968969
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_SP) },
969970
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_ROOT) },
971+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M60H_ROOT) },
970972
{ }
971973
};
972974

drivers/platform/x86/amd/pmc/pmc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ void amd_mp2_stb_deinit(struct amd_pmc_dev *dev);
6767
#define AMD_CPU_ID_PS 0x14E8
6868
#define AMD_CPU_ID_SP 0x14A4
6969
#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
70+
#define PCI_DEVICE_ID_AMD_1AH_M60H_ROOT 0x1122
7071
#define PCI_DEVICE_ID_AMD_MP2_STB 0x172c
7172

7273
#endif /* PMC_H */

0 commit comments

Comments
 (0)