From: Ilya K <me@0upti.me>
To: Armin Wolf <W_Armin@gmx.de>, rafael@kernel.org, lenb@kernel.org
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI: EC: Relax sanity check of the ECDT ID string
Date: Tue, 29 Jul 2025 10:00:50 +0300 [thread overview]
Message-ID: <e911ca96-fe8f-4cc5-bf68-f20ec7da46be@0upti.me> (raw)
In-Reply-To: <20250729062038.303734-1-W_Armin@gmx.de>
On 2025-07-29 09:20, Armin Wolf wrote:
> It turns out that the ECDT table inside the ThinkBook 14 G7 IML
> contains a valid EC description but an invalid ID string
> ("_SB.PC00.LPCB.EC0"). Ignoring this ECDT based on the invalid
> ID string prevents the kernel from detecting the built-in touchpad,
> so relax the sanity check of the ID string and only reject ECDTs
> with empty ID strings.
>
> Compile-tested only.
>
> Reported-by: Ilya K <me@0upti.me>
> Fixes: 7a0d59f6a913 ("ACPI: EC: Ignore ECDT tables with an invalid ID string")
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
> drivers/acpi/ec.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
Thanks, this works!
Tested-by: Ilya K <me@0upti.me>
> diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
> index 75c7db8b156a..7855bbf752b1 100644
> --- a/drivers/acpi/ec.c
> +++ b/drivers/acpi/ec.c
> @@ -2033,7 +2033,7 @@ void __init acpi_ec_ecdt_probe(void)
> goto out;
> }
>
> - if (!strstarts(ecdt_ptr->id, "\\")) {
> + if (!strlen(ecdt_ptr->id)) {
> /*
> * The ECDT table on some MSI notebooks contains invalid data, together
> * with an empty ID string ("").
> @@ -2042,9 +2042,13 @@ void __init acpi_ec_ecdt_probe(void)
> * a "fully qualified reference to the (...) embedded controller device",
> * so this string always has to start with a backslash.
> *
> - * By verifying this we can avoid such faulty ECDT tables in a safe way.
> + * However some ThinkBook machines have a ECDT table with a valid EC
> + * description but an invalid ID string ("_SB.PC00.LPCB.EC0").
> + *
> + * Because of this we only check if the ID string is empty in order to
> + * avoid the obvious cases.
> */
> - pr_err(FW_BUG "Ignoring ECDT due to invalid ID string \"%s\"\n", ecdt_ptr->id);
> + pr_err(FW_BUG "Ignoring ECDT due to empty ID string\n");
> goto out;
> }
>
Would it maybe make sense to also log a warning for the old case? Maybe a vendor will notice it and fix the firmware...
(yeah yeah fat chance)
next prev parent reply other threads:[~2025-07-29 7:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-29 6:20 [PATCH] ACPI: EC: Relax sanity check of the ECDT ID string Armin Wolf
2025-07-29 7:00 ` Ilya K [this message]
2025-07-30 16:49 ` Armin Wolf
2025-07-30 16:59 ` Ilya K
2025-07-30 17:38 ` Armin Wolf
2025-08-05 16:40 ` Ilya K
2025-08-12 13:32 ` Rafael J. Wysocki
2025-08-12 15:51 ` Ilya K
2025-08-12 16:40 ` Greg KH
2025-08-12 16:54 ` Armin Wolf
2025-08-12 17:10 ` Greg KH
2025-08-12 17:56 ` Ilya K
2025-08-12 18:38 ` Rafael J. Wysocki
2025-08-12 19:31 ` Greg KH
2025-08-12 19:49 ` Rafael J. Wysocki
2025-08-12 22:27 ` Armin Wolf
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=e911ca96-fe8f-4cc5-bf68-f20ec7da46be@0upti.me \
--to=me@0upti.me \
--cc=W_Armin@gmx.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@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