From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
"open list:X86 PLATFORM DRIVERS"
<platform-driver-x86@vger.kernel.org>,
Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
Goswami Sanket <Sanket.Goswami@amd.com>
Subject: Re: [PATCH 2/4] platform/x86/amd/pmc: Only run IRQ1 firmware version check on Cezanne
Date: Mon, 18 Dec 2023 15:01:02 +0200 (EET) [thread overview]
Message-ID: <eda8ae4c-112f-bcc4-71c9-a21bc75992b7@linux.intel.com> (raw)
In-Reply-To: <b341cde-aafe-b676-f018-1ee9cf26913a@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2240 bytes --]
On Mon, 18 Dec 2023, Ilpo Järvinen wrote:
> On Mon, 11 Dec 2023, Mario Limonciello wrote:
>
> > amd_pmc_wa_czn_irq1() only runs on Cezanne platforms currently but
> > may be extended to other platforms in the future. Rename the function
> > and only check platform firmware version when it's called for a Cezanne
> > based platform.
> >
> > Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> > ---
> > drivers/platform/x86/amd/pmc/pmc.c | 21 ++++++++++++---------
> > 1 file changed, 12 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c
> > index 666cc6e98267..824673a8673e 100644
> > --- a/drivers/platform/x86/amd/pmc/pmc.c
> > +++ b/drivers/platform/x86/amd/pmc/pmc.c
> > @@ -756,19 +756,22 @@ static int amd_pmc_get_os_hint(struct amd_pmc_dev *dev)
> > return -EINVAL;
> > }
> >
> > -static int amd_pmc_czn_wa_irq1(struct amd_pmc_dev *pdev)
> > +static int amd_pmc_wa_irq1(struct amd_pmc_dev *pdev)
> > {
> > struct device *d;
> > int rc;
> >
> > - if (!pdev->major) {
> > - rc = amd_pmc_get_smu_version(pdev);
> > - if (rc)
> > - return rc;
> > - }
> > + /* cezanne platform firmware has a fix in 64.66.0 */
> > + if (pdev->cpu_id == AMD_CPU_ID_CZN) {
> > + if (!pdev->major) {
> > + rc = amd_pmc_get_smu_version(pdev);
> > + if (rc)
> > + return rc;
> > + }
> >
> > - if (pdev->major > 64 || (pdev->major == 64 && pdev->minor > 65))
> > - return 0;
> > + if (pdev->major > 64 || (pdev->major == 64 && pdev->minor > 65))
> > + return 0;
> > + }
> >
> > d = bus_find_device_by_name(&serio_bus, NULL, "serio0");
> > if (!d)
> > @@ -928,7 +931,7 @@ static int amd_pmc_suspend_handler(struct device *dev)
> > struct amd_pmc_dev *pdev = dev_get_drvdata(dev);
> >
> > if (pdev->cpu_id == AMD_CPU_ID_CZN && !disable_workarounds) {
> > - int rc = amd_pmc_czn_wa_irq1(pdev);
> > + int rc = amd_pmc_wa_irq1(pdev);
> >
> > if (rc) {
> > dev_err(pdev->dev, "failed to adjust keyboard wakeup: %d\n", rc);
> >
>
> Hi Mario,
>
> This doesn't look necessary for the fix in this series, right?
>
> I'd prefer to leave it to next and only take 1,3-4 to fixes.
Nevermind, I was just blind. :-/
--
i.
next prev parent reply other threads:[~2023-12-18 13:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-12 4:50 [PATCH 0/4] Add a workaround for Framework 13 spurious IRQ1 Mario Limonciello
2023-12-12 4:50 ` [PATCH 1/4] platform/x86/amd/pmc: Move platform defines to header Mario Limonciello
2023-12-12 4:50 ` [PATCH 2/4] platform/x86/amd/pmc: Only run IRQ1 firmware version check on Cezanne Mario Limonciello
2023-12-18 12:59 ` Ilpo Järvinen
2023-12-18 13:01 ` Ilpo Järvinen [this message]
2023-12-12 4:50 ` [PATCH 3/4] platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks Mario Limonciello
2023-12-12 4:50 ` [PATCH 4/4] platform/x86/amd/pmc: Disable keyboard wakeup on AMD Framework 13 Mario Limonciello
2023-12-12 20:19 ` [PATCH 0/4] Add a workaround for Framework 13 spurious IRQ1 Thomas Weißschuh
2023-12-18 12:11 ` Hans de Goede
2023-12-18 12:42 ` Ilpo Järvinen
2023-12-18 13:25 ` Hans de Goede
2023-12-18 13:10 ` Ilpo Järvinen
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=eda8ae4c-112f-bcc4-71c9-a21bc75992b7@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=Sanket.Goswami@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=mario.limonciello@amd.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