[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dbd60df4632e5ea9cef13cdc1a406b47bd8629da.camel@infradead.org>
Date: Tue, 02 Apr 2024 10:29:57 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: linux-arm-kernel@...ts.infradead.org
Cc: Catalin Marinas <catalin.marinas@....com>, Will Deacon
<will@...nel.org>, Robert Moore <robert.moore@...el.com>, "Rafael J.
Wysocki" <rafael.j.wysocki@...el.com>, Len Brown <lenb@...nel.org>,
mediou@...zon.de, alisaidi@...zon.com, linux-kernel@...r.kernel.org,
linux-acpi@...r.kernel.org, acpica-devel@...ts.linux.dev, Saket Dumbre
<saket.dumbre@...el.com>
Subject: Re: [PATCH 2/2] arm64: acpi: Honour firmware_signature field of
FACS, if it exists
On Tue, 2024-03-12 at 13:41 +0000, David Woodhouse wrote:
> From: David Woodhouse <dwmw@...zon.co.uk>
>
> If the firmware_signature changes then OSPM should not attempt to resume
> from hibernate, but should instead perform a clean reboot. Set the global
> swsusp_hardware_signature to allow the generic code to include the value
> in the swsusp header on disk, and perform the appropriate check on resume.
>
> Signed-off-by: David Woodhouse <dwmw@...zon.co.uk>
Ping?
> ---
> arch/arm64/kernel/acpi.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c
> index dba8fcec7f33..e0e7b93c16cc 100644
> --- a/arch/arm64/kernel/acpi.c
> +++ b/arch/arm64/kernel/acpi.c
> @@ -26,6 +26,7 @@
> #include <linux/libfdt.h>
> #include <linux/smp.h>
> #include <linux/serial_core.h>
> +#include <linux/suspend.h>
> #include <linux/pgtable.h>
>
> #include <acpi/ghes.h>
> @@ -227,6 +228,15 @@ void __init acpi_boot_table_init(void)
> if (earlycon_acpi_spcr_enable)
> early_init_dt_scan_chosen_stdout();
> } else {
> +#ifdef CONFIG_HIBERNATION
> + struct acpi_table_header *facs = NULL;
> + acpi_get_table(ACPI_SIG_FACS, 1, &facs);
> + if (facs) {
> + swsusp_hardware_signature =
> + ((struct acpi_table_facs *)facs)->hardware_signature;
> + acpi_put_table(facs);
> + }
> +#endif
> acpi_parse_spcr(earlycon_acpi_spcr_enable, true);
> if (IS_ENABLED(CONFIG_ACPI_BGRT))
> acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt);
Download attachment "smime.p7s" of type "application/pkcs7-signature" (5965 bytes)
Powered by blists - more mailing lists