Skip to content

Commit db4a3f0

Browse files
antheasij-intel
authored andcommitted
platform/x86/amd/pmc: Add support for Van Gogh SoC
The ROG Xbox Ally (non-X) SoC features a similar architecture to the Steam Deck. While the Steam Deck supports S3 (s2idle causes a crash), this support was dropped by the Xbox Ally which only S0ix suspend. Since the handler is missing here, this causes the device to not suspend and the AMD GPU driver to crash while trying to resume afterwards due to a power hang. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4659 Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Link: https://patch.msgid.link/20251024152152.3981721-2-lkml@antheas.dev Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent a6003d9 commit db4a3f0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static void amd_pmc_get_ip_info(struct amd_pmc_dev *dev)
106106
switch (dev->cpu_id) {
107107
case AMD_CPU_ID_PCO:
108108
case AMD_CPU_ID_RN:
109+
case AMD_CPU_ID_VG:
109110
case AMD_CPU_ID_YC:
110111
case AMD_CPU_ID_CB:
111112
dev->num_ips = 12;
@@ -517,6 +518,7 @@ static int amd_pmc_get_os_hint(struct amd_pmc_dev *dev)
517518
case AMD_CPU_ID_PCO:
518519
return MSG_OS_HINT_PCO;
519520
case AMD_CPU_ID_RN:
521+
case AMD_CPU_ID_VG:
520522
case AMD_CPU_ID_YC:
521523
case AMD_CPU_ID_CB:
522524
case AMD_CPU_ID_PS:
@@ -717,6 +719,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
717719
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_RV) },
718720
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_SP) },
719721
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_SHP) },
722+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_VG) },
720723
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_ROOT) },
721724
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M60H_ROOT) },
722725
{ }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ void amd_mp2_stb_deinit(struct amd_pmc_dev *dev);
156156
#define AMD_CPU_ID_RN 0x1630
157157
#define AMD_CPU_ID_PCO AMD_CPU_ID_RV
158158
#define AMD_CPU_ID_CZN AMD_CPU_ID_RN
159+
#define AMD_CPU_ID_VG 0x1645
159160
#define AMD_CPU_ID_YC 0x14B5
160161
#define AMD_CPU_ID_CB 0x14D8
161162
#define AMD_CPU_ID_PS 0x14E8

0 commit comments

Comments
 (0)