From: Armin Wolf <W_Armin@gmx.de>
To: "Rosen Penev" <rosenp@gmail.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Edward O'Callaghan" <quasisec@google.com>,
"Mario Limonciello" <mario.limonciello@dell.com>,
"Darren Hart (VMware)" <dvhart@infradead.org>
Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] platform/x86: dell-smbios: Accumulate supported commands across 0xDA tables
Date: Thu, 12 Nov 2026 02:04:26 +0100 [thread overview]
Message-ID: <01ed9468-083c-42cd-ba33-5746d96be55a@gmx.de> (raw)
In-Reply-To: <20261111214440.5473-1-rosenp@gmail.com>
Am 11.11.26 um 22:44 schrieb Rosen Penev:
> parse_da_table() runs once for every SMBIOS 0xDA structure and assigns
> da_supported_commands from each one, so the last structure wins. Some
> systems expose several 0xDA structures where only some fill in
> supportedCmds. On a Dell Precision M4800 there are seven: the first six
> report 0x40361f5f and the last reports 0, which leaves
> da_supported_commands at 0.
>
> As a result dell_smbios_call_filter() rejects every call made through
> /dev/wmi/dell-smbios, even token reads from root:
>
> dell-smbios ...: invalid command, supported commands: 0x 0
> dell-smbios ...: Invalid call 0/0: 5c
>
> and dell_smbios_class_is_supported(CLASS_INFO) returns false, so dell-pc
> refuses to load.
>
> OR the field across all 0xDA structures instead. With this change the
> token read succeeds and dell-pc registers its cool/quiet/balanced/
> performance platform profiles on the M4800.
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
> Fixes: 1f8543a5d602 ("platform/x86: dell-smbios: Add filtering support")
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
> drivers/platform/x86/dell/dell-smbios-base.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/dell/dell-smbios-base.c b/drivers/platform/x86/dell/dell-smbios-base.c
> index c8e93c12c445..f79847f0bfe2 100644
> --- a/drivers/platform/x86/dell/dell-smbios-base.c
> +++ b/drivers/platform/x86/dell/dell-smbios-base.c
> @@ -406,7 +406,12 @@ static void __init parse_da_table(const struct dmi_header *dm)
> if (dm->length < 17)
> return;
>
> - da_supported_commands = table->supportedCmds;
> + /*
> + * Systems may expose several 0xDA structures, and not all of them
> + * fill in supportedCmds, so accumulate rather than letting the last
> + * one win.
> + */
> + da_supported_commands |= table->supportedCmds;
>
> new_da_tokens = krealloc(da_tokens, (da_num_tokens + tokens) *
> sizeof(struct calling_interface_token),
prev parent reply other threads:[~2026-11-12 1:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 21:44 Rosen Penev
2026-11-12 1:04 ` Armin Wolf [this message]
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=01ed9468-083c-42cd-ba33-5746d96be55a@gmx.de \
--to=w_armin@gmx.de \
--cc=dvhart@infradead.org \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@dell.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=quasisec@google.com \
--cc=rosenp@gmail.com \
/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®