From: Hans de Goede <hdegoede@redhat.com>
To: Mark Cilissen <mark@yotsuba.nl>,
linux-acpi@vger.kernel.org, x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <len.brown@intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [PATCH] x86/acpi: Work around broken XSDT on SEGA AALE board
Date: Thu, 24 Feb 2022 09:41:45 +0100 [thread overview]
Message-ID: <303dc74a-4d63-70a2-9891-af3e3d8baf26@redhat.com> (raw)
In-Reply-To: <20220223160708.88100-1-mark@yotsuba.nl>
Hi Mark,
On 2/23/22 17:07, Mark Cilissen wrote:
> On this board the ACPI RSDP structure points to both a RSDT and an XSDT,
> but the XSDT points to a truncated FADT. This causes all sorts of trouble
> and usually a complete failure to boot after the following error occurs:
>
> ACPI Error: Unsupported address space: 0x20 (*/hwregs-*)
> ACPI Error: AE_SUPPORT, Unable to initialize fixed events (*/evevent-*)
> ACPI: Unable to start ACPI Interpreter
>
> This leaves the ACPI implementation in such a broken state that subsequent
> kernel subsystem initialisations go wrong, resulting in among others
> mismapped PCI memory, SATA and USB enumeration failures, and freezes.
>
> As this is an older embedded platform that will likely never see any BIOS
> updates to address this issue and its default shipping OS only complies to
> ACPI 1.0, work around this by forcing `acpi=rsdt`. This patch, applied on
> top of Linux 5.10.102, was confirmed on real hardware to fix the issue.
>
> Signed-off-by: Mark Cilissen <mark@yotsuba.nl>
> Cc: stable@vger.kernel.org
Wow, you got it working, cool!
The patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
> ---
> arch/x86/kernel/acpi/boot.c | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
> index 5b6d1a95776f..7caf4da075cd 100644
> --- a/arch/x86/kernel/acpi/boot.c
> +++ b/arch/x86/kernel/acpi/boot.c
> @@ -1328,6 +1328,17 @@ static int __init disable_acpi_pci(const struct dmi_system_id *d)
> return 0;
> }
>
> +static int __init disable_acpi_xsdt(const struct dmi_system_id *d)
> +{
> + if (!acpi_force) {
> + pr_notice("%s detected: force use of acpi=rsdt\n", d->ident);
> + acpi_gbl_do_not_use_xsdt = TRUE;
> + } else {
> + pr_notice("Warning: DMI blacklist says broken, but acpi XSDT forced\n");
> + }
> + return 0;
> +}
> +
> static int __init dmi_disable_acpi(const struct dmi_system_id *d)
> {
> if (!acpi_force) {
> @@ -1451,6 +1462,20 @@ static const struct dmi_system_id acpi_dmi_table[] __initconst = {
> DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
> },
> },
> + /*
> + * Boxes that need ACPI XSDT use disabled due to corrupted tables
> + */
> + {
> + .callback = disable_acpi_xsdt,
> + .ident = "SEGA AALE",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Bearlake CRB Board"),
> + DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
> + DMI_MATCH(DMI_BIOS_VERSION, "V1.12"),
> + DMI_MATCH(DMI_BIOS_DATE, "02/01/2011"),
> + },
> + },
> {}
> };
>
>
> base-commit: cfb92440ee71adcc2105b0890bb01ac3cddb8507
next prev parent reply other threads:[~2022-02-24 8:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-23 16:07 Mark Cilissen
2022-02-24 8:41 ` Hans de Goede [this message]
2022-03-01 19:34 ` Rafael J. Wysocki
2022-03-02 19:42 ` Rafael J. Wysocki
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=303dc74a-4d63-70a2-9891-af3e3d8baf26@redhat.com \
--to=hdegoede@redhat.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark@yotsuba.nl \
--cc=mingo@redhat.com \
--cc=rafael@kernel.org \
--cc=tglx@linutronix.de \
--cc=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
all inboxes | Powered by JetHome®