Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
From: Brian Mak
Date: Mon Nov 30 2026 - 21:13:57 EST
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 i
> 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
I removed the dell-laptop and dell-pc quirks and tried it on a 7.3
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