From: Mario Limonciello <mario.limonciello@amd.com>
To: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com
Cc: Sanket.Goswami@amd.com, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 1/4] platform/x86/amd/pmc: Notify user when platform does not support s0ix transition
Date: Mon, 17 Feb 2025 09:40:23 -0600 [thread overview]
Message-ID: <b98b6e9c-65ba-413a-94cc-2d7a90d63648@amd.com> (raw)
In-Reply-To: <20250217081720.107719-1-Shyam-sundar.S-k@amd.com>
On 2/17/2025 02:17, Shyam Sundar S K wrote:
> Some of the AMD platforms do not support modern standby, so when such
> CPU ID is detected, a warning message will be displayed to the user.
>
> Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
> Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
This patch specifically I think should also be
Cc: stable@vger.kernel.org
> ---
> drivers/platform/x86/amd/pmc/pmc.c | 3 ++-
> drivers/platform/x86/amd/pmc/pmc.h | 1 +
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c
> index e6124498b195..c7c7afb8a431 100644
> --- a/drivers/platform/x86/amd/pmc/pmc.c
> +++ b/drivers/platform/x86/amd/pmc/pmc.c
> @@ -808,6 +808,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
> { 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_SHP) },
> { 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) },
> { }
> @@ -832,7 +833,7 @@ static int amd_pmc_probe(struct platform_device *pdev)
>
> dev->cpu_id = rdev->device;
>
> - if (dev->cpu_id == AMD_CPU_ID_SP) {
> + if (dev->cpu_id == AMD_CPU_ID_SP || dev->cpu_id == AMD_CPU_ID_SHP) {
> dev_warn_once(dev->dev, "S0i3 is not supported on this hardware\n");
> err = -ENODEV;
> goto err_pci_dev_put;
> diff --git a/drivers/platform/x86/amd/pmc/pmc.h b/drivers/platform/x86/amd/pmc/pmc.h
> index f43f0253b0f5..8f39988ce7a3 100644
> --- a/drivers/platform/x86/amd/pmc/pmc.h
> +++ b/drivers/platform/x86/amd/pmc/pmc.h
> @@ -79,6 +79,7 @@ void amd_mp2_stb_deinit(struct amd_pmc_dev *dev);
> #define AMD_CPU_ID_CB 0x14D8
> #define AMD_CPU_ID_PS 0x14E8
> #define AMD_CPU_ID_SP 0x14A4
> +#define AMD_CPU_ID_SHP 0x153A
> #define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
> #define PCI_DEVICE_ID_AMD_1AH_M60H_ROOT 0x1122
> #define PCI_DEVICE_ID_AMD_MP2_STB 0x172c
prev parent reply other threads:[~2025-02-17 15:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 8:17 [PATCH 1/4] platform/x86/amd/pmc: Notify user when platform does not support s0ix transition Shyam Sundar S K
2025-02-17 8:17 ` [PATCH 2/4] platform/x86/amd/pmc: Move macros and structures to the PMC header file Shyam Sundar S K
2025-02-17 8:17 ` [PATCH 3/4] platform/x86/amd/pmc: Remove unnecessary line breaks Shyam Sundar S K
2025-02-17 15:38 ` Mario Limonciello
2025-02-18 7:08 ` Shyam Sundar S K
2025-02-18 14:52 ` Mario Limonciello
2025-03-05 12:21 ` Ilpo Järvinen
2025-02-17 8:17 ` [PATCH 4/4] platform/x86/amd/pmc: Use managed APIs for mutex Shyam Sundar S K
2025-03-05 12:16 ` Ilpo Järvinen
2025-02-17 15:40 ` Mario Limonciello [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b98b6e9c-65ba-413a-94cc-2d7a90d63648@amd.com \
--to=mario.limonciello@amd.com \
--cc=Sanket.Goswami@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox