mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brian Mak <bmak@nvidia.com>
To: "Armin Wolf" <W_Armin@gmx.de>, "Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: "Kurt Borja" <kuurtb@gmail.com>,
	"Stuart Hayes" <stuart.w.hayes@gmail.com>,
	"Matthew Garrett" <mjg59@srcf.ucam.org>,
	"Pali Rohár" <pali@kernel.org>,
	"Lyndon Sanche" <lsanche@lyndeno.ca>,
	"Prasanth Ksr" <prasanth.ksr@dell.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	"Dell.Client.Kernel@dell.com" <Dell.Client.Kernel@dell.com>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Date: Tue, 1 Dec 2026 02:13:38 +0000	[thread overview]
Message-ID: <01c1d888-327e-4b6d-99d3-d8d9d3a5cc18@nvidia.com> (raw)
In-Reply-To: <a6458b0a-125b-4df7-b41e-a4975fe8905c@gmx.de>

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

  parent reply	other threads:[~2026-12-01  2:13 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-21  0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
2026-11-21  1:36   ` Randy Dunlap
2026-11-21  1:36     ` Randy Dunlap
2026-11-21  0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
2026-11-21 10:05   ` kernel test robot
2026-11-21  0:05 ` [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry Brian Mak
2026-11-21  0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
2026-11-21  0:48   ` Pali Rohár
2026-11-23 19:11     ` Brian Mak
2026-11-23 19:39       ` Pali Rohár
2026-11-23 20:33         ` Brian Mak
2026-11-23 21:00           ` Pali Rohár
2026-11-23 21:16             ` Brian Mak
2026-11-23 20:36         ` Brian Mak
2026-11-23 20:38         ` Brian Mak
2026-11-23 20:40         ` Brian Mak
2026-11-23 20:41         ` Brian Mak
2026-11-23 20:43         ` Brian Mak
2026-11-21  1:38   ` Randy Dunlap
2026-11-23 18:10     ` Brian Mak
2026-11-21  0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
2026-11-21 13:44   ` Armin Wolf
2026-11-23 18:11     ` Brian Mak
2026-11-21  0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
2026-11-21  0:38   ` Pali Rohár
2026-11-21  0:45     ` Brian Mak
2026-11-21  0:51       ` Pali Rohár
2026-11-21 13:49   ` Armin Wolf
2026-11-23 23:43     ` Brian Mak
2026-11-24 14:29       ` Armin Wolf
2026-11-24 14:57         ` Armin Wolf
2026-11-24 17:42           ` Brian Mak
2026-11-24 20:59             ` Armin Wolf
2026-11-25 20:14               ` Brian Mak
2026-11-30 22:36                 ` Pali Rohár
2026-12-01  2:13               ` Brian Mak [this message]
2026-11-21  0:05 ` [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
2026-11-21  0:05 ` [PATCH 8/8] platform: dell: pc: " Brian Mak

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=01c1d888-327e-4b6d-99d3-d8d9d3a5cc18@nvidia.com \
    --to=bmak@nvidia.com \
    --cc=Dell.Client.Kernel@dell.com \
    --cc=W_Armin@gmx.de \
    --cc=corbet@lwn.net \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=kuurtb@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsanche@lyndeno.ca \
    --cc=mjg59@srcf.ucam.org \
    --cc=pali@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=prasanth.ksr@dell.com \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=stuart.w.hayes@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®