[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <21363441-13a0-b5bc-4674-238526b16b5b@linux.intel.com>
Date: Tue, 29 Apr 2025 17:39:04 +0300 (EEST)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Mario Limonciello <superm1@...nel.org>
cc: Borislav Petkov <bp@...en8.de>, Jean Delvare <jdelvare@...e.com>,
Andi Shyti <andi.shyti@...nel.org>, Jonathan Corbet <corbet@....net>,
Mario Limonciello <mario.limonciello@....com>,
Yazen Ghannam <yazen.ghannam@....com>,
Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
"H . Peter Anvin" <hpa@...or.com>,
Shyam Sundar S K <Shyam-sundar.S-k@....com>,
Hans de Goede <hdegoede@...hat.com>,
"open list:DOCUMENTATION" <linux-doc@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
"open list:I2C/SMBUS CONTROLLER DRIVERS FOR PC" <linux-i2c@...r.kernel.org>,
"open list:AMD PMC DRIVER" <platform-driver-x86@...r.kernel.org>
Subject: Re: [PATCH v5 4/5] platform/x86/amd: pmc: use FCH_PM_BASE
definition
On Tue, 22 Apr 2025, Mario Limonciello wrote:
> From: Mario Limonciello <mario.limonciello@....com>
>
> The s2idle mmio quirk uses a scratch register in the FCH.
> Adjust the code to clarify that.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@....com>
This is quite trivial change, but here is this for completeness in case
x86 maintainers want to have it:
Acked-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
--
i.
> ---
> v5:
> * Move <asm> header after <linux> headers
> v4:
> * Use fch.h instead
> ---
> arch/x86/include/asm/amd/fch.h | 1 +
> drivers/platform/x86/amd/pmc/pmc-quirks.c | 3 ++-
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/include/asm/amd/fch.h b/arch/x86/include/asm/amd/fch.h
> index a5fd91ff92df3..9b32e8a03193e 100644
> --- a/arch/x86/include/asm/amd/fch.h
> +++ b/arch/x86/include/asm/amd/fch.h
> @@ -8,5 +8,6 @@
> /* register offsets from PM base */
> #define FCH_PM_DECODEEN 0x00
> #define FCH_PM_DECODEEN_SMBUS0SEL GENMASK(20, 19)
> +#define FCH_PM_SCRATCH 0x80
>
> #endif
> diff --git a/drivers/platform/x86/amd/pmc/pmc-quirks.c b/drivers/platform/x86/amd/pmc/pmc-quirks.c
> index b4f49720c87f6..b706b1f4d94bf 100644
> --- a/drivers/platform/x86/amd/pmc/pmc-quirks.c
> +++ b/drivers/platform/x86/amd/pmc/pmc-quirks.c
> @@ -11,6 +11,7 @@
> #include <linux/dmi.h>
> #include <linux/io.h>
> #include <linux/ioport.h>
> +#include <asm/amd/fch.h>
>
> #include "pmc.h"
>
> @@ -20,7 +21,7 @@ struct quirk_entry {
> };
>
> static struct quirk_entry quirk_s2idle_bug = {
> - .s2idle_bug_mmio = 0xfed80380,
> + .s2idle_bug_mmio = FCH_PM_BASE + FCH_PM_SCRATCH,
> };
>
> static struct quirk_entry quirk_spurious_8042 = {
>
Powered by blists - more mailing lists