Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
From: Pali Rohár
Date: Tue Dec 01 2026 - 03:45:11 EST
On Tuesday 01 December 2026 02:13:38 Brian Mak wrote:
> 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,
I think that this is a correct way. If we know that interface does not
work and returns "no data", it means that the driver should not probe.
> 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.
dell-laptop currently does not check if dell interfaces are really
support. So I think that check here should be added. And this could
address also your issue.
>
> Or, would you suggest a different approach?
>
> Thanks,
> Brian