Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
From: Armin Wolf
Date: Wed Dec 02 2026 - 12:15:53 EST
Am 01.12.26 um 03:13 schrieb Brian Mak:
On 11/24/26 12:59, Armin Wolf wrote:
i took a closer look at the ASL code inside the WMBA ACPI control method
(responsible for handling
SMBIOS calls), and i noticed that the ACPI method will return the output
buffer unmodified if the
FFA call fails.
Currently dell_fill_request() will initialize all output data with zero
before performing a SMBIOS
call, so a failed call will look like a successful one because output[0]
will still read zero
(aka "success"). Maybe a solution would be to initialize the output data
with 0xFFFFFFFF so
dell_smbios_error() will detect it as an error.
In light of your findings below, this wouldn't make a difference.
I also noticed that the WMI method will return not enough data, so iI removed the dell-laptop and dell-pc quirks and tried it on a 7.3
think all WMI SMBIOS calls
will fail starting with kernel 7.2 because then the WMI core will employ
stricter size checks
for the output data. Can you check if this is indeed the case?
Thanks,
Armin Wolf
kernel. I saw that dell-pc fails to probe with -ENODATA, due to the
stricter checks you pointed out. However, with dell-laptop, the driver
still loads, but reading/writing things, like the mute and mic-mute
LEDs, returns -ENODATA.
Given this information, which option do you think would be best?
1) Keep the dell-laptop and dell-pc quirk as-is, so that the drivers
both gracefully return -ENODEV and do not log failures.
2) Drop the quirk, and:
a) modify dell-pc to check for the -ENODATA condition after whichever
call it fails on and turn that to -ENODEV,
b) modify dell-laptop to send some dummy request on probe, such as a
keyboard backlight info request, and return -ENODEV if we get
-ENODATA.
Or, would you suggest a different approach?
Thanks,
Brian
I am not sure why the ACPI bytecode gets away with returning a undersized buffer, but i fear that there exists (another...) bug inside the Window WMI service where the length of the data buffer gets ignored during parsing.
Can you check if manually executing the WMI method under Windows using powershell and check if the call succeeds? If it does then the correct
solution would be to relax the size check inside the driver a bit.
Thanks,
Armin Wolf