Re: [PATCH v2] platform/x86/amd: send WBRF DSM payload as buffer
From: Ilpo Järvinen
Date: Wed Nov 18 2026 - 14:56:56 EST
On Wed, 18 Nov 2026, Mario Limonciello wrote:
> On 11/2/26 14:58, Mario Limonciello wrote:
> > Spec defines the WBRF record _DSM argument as a single buffer that packs
> > the header and frequency ranges. The driver instead built a package of
> > integers, so firmware on some systems abort \WBRF with AE_AML_OPERAND_TYPE
> > when dereferencing Arg2[0].
> >
> > Encode the payload into a little-endian buffer and hand it as the lone
> > package element.
> >
> > Fixes: 58e82a62669d ("platform/x86/amd: Add support for AMD ACPI based Wifi
> > band RFI mitigation feature")
> > Signed-off-by: Mario Limonciello <superm1@xxxxxxxxxx>
> > ---
> > Changes in v2:
> > - Declare payload with __free(kfree) at the kzalloc() site, after input
> > validation, instead of initializing it to NULL at the top of
> > wbrf_record() (Sashiko)
> > - Compute payload length with struct_size_t() so it no longer depends on
> > payload being declared earlier (Sashiko)
> > - Link to v1:
> > https://patch.msgid.link/20261102-superm1-wbrf-v1-1-b58d8d85277c@xxxxxxxxxx
>
> Ilpo,
>
> FYI - this was found on some existing systems in the wild so I would prefer if
> it could go to -fixes.
Okay, thanks. I'll consider that once I get to processing patches once
again.
> I sent right after the merge window so just wanted to make sure it's still in
> your queue.
Patchwork URL is in MAINTAINERS, though LLMs hitting it might have made
only part of the queue visible to non-users.
--
i.