Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Rosen Penev <rosenp@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"open list" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH rtw-next v2] wifi: rtw89: acpi: check for _DSM function support before evaluating it
Date: Wed, 4 Nov 2026 06:21:03 +0000	[thread overview]
Message-ID: <652c4e96dc2549ceb977fffe3707b269@realtek.com> (raw)
In-Reply-To: <CAKxU2N_JCRjWXkD8SNGf-LJGOHfCsAMM1JU+AoTD6cfZZYJ03g@mail.gmail.com>

Rosen Penev <rosenp@gmail.com> wrote:
> On Tue, Nov 3, 2026 at 9:21 PM Ping-Ke Shih <pkshih@realtek.com> wrote:
> >
> > Rosen Penev <rosenp@gmail.com> wrote:
> > > On Tue, Nov 3, 2026 at 4:47 PM Ping-Ke Shih <pkshih@realtek.com> wrote:
> > > >
> > > > Rosen Penev <rosenp@gmail.com> wrote:
> > > > > When the WiFi device has no ACPI companion, or the firmware does not
> > > > > implement a given rtw89 _DSM function, rtw89_acpi_evaluate_dsm() calls
> > > > > acpi_evaluate_dsm() anyway. ACPI core then warns on every probe:
> > > > >
> > > > >   ACPI: \: failed to evaluate _DSM e8c3a8d2-694b-004f-82bd-fe8607803aa7 rev:0 func:10 (0x1001)
> > > > >   ACPI: \: failed to evaluate _DSM e8c3a8d2-694b-004f-82bd-fe8607803aa7 rev:0 func:6 (0x1001)
> > > > >
> > > > > Here the handle is NULL, and acpi_evaluate_object() returns
> > > > > AE_BAD_PARAMETER. All callers already treat failure as "no policy
> > > > > provided by the platform", so this is only noise.
> > > > >
> > > > > Bail out early when there is no ACPI handle, as acpi_check_dsm() would
> > > > > otherwise hit the same warning while querying function 0. Then use
> > > > > acpi_check_dsm() so that functions the firmware does not advertise fail
> > > > > quietly at debug level, as rtw89_acpi_evaluate_method() already does.
> > > >
> > > > Adding this check is fine to me. But my question in v1 is that
> > > > acpi_check_dsm() checks func 0 to determine if BIT(func) is existing.
> > > > Is it possible func 0 not existing, but BIT(func) existing?
> > > Shouldn't happen, but who knows.
> >
> > I don't mind taking this patch, but this is the only one point I don't know.
> >
> > > I can drop the acpi_check_dsm() part.
> >
> > If you drop the part, what will this patch do? almost nothing.
> The !handle check is the big one that silences it.

I'm not aware of that. Let's do this only by v3.



      reply	other threads:[~2026-11-04  6:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 21:55 [PATCH rtw-next v2] wifi: rtw89: acpi: check for _DSM function support before evaluating it Rosen Penev
2026-11-04  0:47 ` Ping-Ke Shih
2026-11-04  4:52   ` Rosen Penev
2026-11-04  5:21     ` Ping-Ke Shih
2026-11-04  6:14       ` Rosen Penev
2026-11-04  6:21         ` Ping-Ke Shih [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=652c4e96dc2549ceb977fffe3707b269@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --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