From: Shyam Sundar S K Date: Thu, 28 Dec 2023 10:20:59 +0000 (+0530) Subject: platform/x86/amd/pmc: Send OS_HINT command for AMDI000A platform X-Git-Tag: v6.8-rc1~164^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9efa2a04ce7c827bf265c8963b38553306a8225e;p=thirdparty%2Flinux.git 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 Signed-off-by: Shyam Sundar S K Reviewed-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20231228102104.1785383-2-Shyam-sundar.S-k@amd.com Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c index 864c8cc2f8a3c..5e962f395a698 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;