platform/x86/amd/pmc: Send OS_HINT command for AMDI000A platform
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 28 Dec 2023 10:20:59 +0000 (15:50 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 2 Jan 2024 12:40:13 +0000 (13:40 +0100)
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 <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231228102104.1785383-2-Shyam-sundar.S-k@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc/pmc.c

index 864c8cc2f8a3c538c5096f293ddf54496c6838b5..5e962f395a698ff74e2de01d141ea7b06f25c32c 100644 (file)
@@ -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;