From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 793BE387593; Mon, 23 Mar 2026 14:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774277003; cv=none; b=sEav317OxS4jiZJvIHrP9455XMXfpmtU5f0vm0n/9yjmiLTf8e76crsS2FE5C6uRD3mzJTGKaQgC14Ckg0hOU7qekeMWknomKweIHfFvPGEW8lDF2K2zF35iq3Jy4tlo6vcD70l+y0yT/QYKI2tM7K9dk8zhJrJNZ0oKeKzWM90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774277003; c=relaxed/simple; bh=kqRPCrZ4nE6KG8qmahWuSNm1epCY76tDrPZmox8U0dY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TUVLdjQ5dOmx5IFZa68ez3SQel7qVvFprAHIGnZ9cupM0zi9vtena4ITWU6tp4dnnf+SBPCsglnW3E2QY3lxVINp4RuRbWcZtHiAl9L6NYyfT6+qZxHRYs+X6aTSy5CbAb9ppLFHexmOsjKmKfiXCjIuHrSxec5s6jwAuIo8VGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kvFZe5Fi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kvFZe5Fi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13946C4CEF7; Mon, 23 Mar 2026 14:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774277003; bh=kqRPCrZ4nE6KG8qmahWuSNm1epCY76tDrPZmox8U0dY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kvFZe5FiMiiRQHFbj3LfcKhJbXW5DP319mlOR18s4nGU81CKyl/1ftKJ5TBxZs5sw 9mR/FsavY/gjtL/1B1t0OYt2Hdti6bj8LOzfufnMqW/roQMl0+2roRH8kK2HtM0jSm fatJeLsKtndLlJZIv4D4kXV/r2eCrdd9NO/WK7Cs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Antheas Kapenekakis , "Mario Limonciello (AMD)" , Shyam Sundar S K , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Alva Lan Subject: [PATCH 6.12 283/460] platform/x86/amd/pmc: Add support for Van Gogh SoC Date: Mon, 23 Mar 2026 14:44:39 +0100 Message-ID: <20260323134533.434177889@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323134526.647552166@linuxfoundation.org> References: <20260323134526.647552166@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Antheas Kapenekakis [ Upstream commit db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb ] 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 Reviewed-by: Mario Limonciello (AMD) Acked-by: Shyam Sundar S K Link: https://patch.msgid.link/20251024152152.3981721-2-lkml@antheas.dev Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen [ Adjust context ] Signed-off-by: Alva Lan Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/amd/pmc/pmc.c | 3 +++ drivers/platform/x86/amd/pmc/pmc.h | 1 + 2 files changed, 4 insertions(+) --- a/drivers/platform/x86/amd/pmc/pmc.c +++ b/drivers/platform/x86/amd/pmc/pmc.c @@ -347,6 +347,7 @@ static void amd_pmc_get_ip_info(struct a switch (dev->cpu_id) { case AMD_CPU_ID_PCO: case AMD_CPU_ID_RN: + case AMD_CPU_ID_VG: case AMD_CPU_ID_YC: case AMD_CPU_ID_CB: dev->num_ips = 12; @@ -765,6 +766,7 @@ static int amd_pmc_get_os_hint(struct am case AMD_CPU_ID_PCO: return MSG_OS_HINT_PCO; case AMD_CPU_ID_RN: + case AMD_CPU_ID_VG: case AMD_CPU_ID_YC: case AMD_CPU_ID_CB: case AMD_CPU_ID_PS: @@ -977,6 +979,7 @@ static const struct pci_device_id pmc_pc { PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_PCO) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_RV) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_SP) }, + { PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_VG) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_ROOT) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M60H_ROOT) }, { } --- a/drivers/platform/x86/amd/pmc/pmc.h +++ b/drivers/platform/x86/amd/pmc/pmc.h @@ -62,6 +62,7 @@ void amd_mp2_stb_deinit(struct amd_pmc_d #define AMD_CPU_ID_RN 0x1630 #define AMD_CPU_ID_PCO AMD_CPU_ID_RV #define AMD_CPU_ID_CZN AMD_CPU_ID_RN +#define AMD_CPU_ID_VG 0x1645 #define AMD_CPU_ID_YC 0x14B5 #define AMD_CPU_ID_CB 0x14D8 #define AMD_CPU_ID_PS 0x14E8