aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/amd/pmc/pmc.c
diff options
context:
space:
mode:
authorShyam Sundar S K <[email protected]>2023-12-28 10:20:59 +0000
committerHans de Goede <[email protected]>2024-01-02 12:40:13 +0000
commit9efa2a04ce7c827bf265c8963b38553306a8225e (patch)
tree27ba35be7b033067a935b608b56d07abdac6ca08 /drivers/platform/x86/amd/pmc/pmc.c
parentplatform/x86/amd/pmf: Return a status code only as a constant in two functions (diff)
downloadkernel-9efa2a04ce7c827bf265c8963b38553306a8225e.tar.gz
kernel-9efa2a04ce7c827bf265c8963b38553306a8225e.zip
platform/x86/amd/pmc: Send OS_HINT command for AMDI000A platform
To initiate the HW deep state transistion the OS_HINT command has to be sent the PMFW. Add this support to the platforms that has AMDI000A support. Signed-off-by: Sanket Goswami <[email protected]> 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: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.c')
-rw-r--r--drivers/platform/x86/amd/pmc/pmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c
index 864c8cc2f8a3..5e962f395a69 100644
--- a/drivers/platform/x86/amd/pmc/pmc.c
+++ b/drivers/platform/x86/amd/pmc/pmc.c
@@ -751,6 +751,7 @@ static int amd_pmc_get_os_hint(struct amd_pmc_dev *dev)
case AMD_CPU_ID_YC:
case AMD_CPU_ID_CB:
case AMD_CPU_ID_PS:
+ case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
return MSG_OS_HINT_RN;
}
return -EINVAL;