All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rafael@kernel.org>
To: Zhang Rui <rui.zhang@intel.com>,
	Adrian Huang <adrianhuang0701@gmail.com>
Cc: ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	Adrian Huang <ahuang12@lenovo.com>
Subject: Re: [PATCH v2 1/1] ACPI: tables: FPDT: Do not print FW_BUG message if record types are reserved
Date: Wed, 25 Aug 2021 20:02:32 +0200	[thread overview]
Message-ID: <CAJZ5v0hsLMwj=T5RdZNg163W9hNECmANBk5FGecuHQ+2TqhN6w@mail.gmail.com> (raw)
In-Reply-To: <43a0b67b4412c617778a6a30ededd5c042b9a554.camel@intel.com>

On Thu, Aug 19, 2021 at 10:08 AM Zhang Rui <rui.zhang@intel.com> wrote:
>
> On Thu, 2021-08-19 at 15:14 +0800, Adrian Huang wrote:
> > From: Adrian Huang <ahuang12@lenovo.com>
> >
> > In ACPI 6.4 spec, record types "0x0002-0xffff" of FPDT Performance
> > Record
> > Types [1] and record types "0x0003-0xffff" of Runtime Performance
> > Record
> > Types [2] are reserved.
> >
> > Users might be confused with the FW_BUG message, and they think this
> > is the FW issue. Here is the example in a Lenovo box:
> >
> >   ACPI: FPDT 0x00000000A820A000 000044 (v01 LENOVO THINKSYS 00000100
> > 01000013)
> >   ACPI: Reserving FPDT table memory at [mem 0xa820a000-0xa820a043]
> >   ACPI FPDT: [Firmware Bug]: Invalid record 4113 found
> >
> > So, remove the FW_BUG message to avoid confusion since those types
> > are
> > reserved in ACPI 6.4 spec.
> >
> > [1]
> > https://uefi.org/specs/ACPI/6.4/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html#fpdt-performance-record-types-table
> > [2]
> > https://uefi.org/specs/ACPI/6.4/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html#runtime-performance-record-types-table
> >
> > Cc: Zhang Rui <rui.zhang@intel.com>
> > Signed-off-by: Adrian Huang <ahuang12@lenovo.com>
>
> Acked-by: Zhang Rui <rui.zhang@intel.com>

Applied as 5.15 material, thanks!

> > ---
> >
> > Changes since v2:
> >  * Fix "0x0002-0xFFFF" of FPDT Performance Record Types, per Rui
> >
> >  drivers/acpi/acpi_fpdt.c | 7 +++----
> >  1 file changed, 3 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/acpi/acpi_fpdt.c b/drivers/acpi/acpi_fpdt.c
> > index 4ee2ad234e3d..6922a44b3ce7 100644
> > --- a/drivers/acpi/acpi_fpdt.c
> > +++ b/drivers/acpi/acpi_fpdt.c
> > @@ -220,8 +220,8 @@ static int fpdt_process_subtable(u64 address, u32
> > subtable_type)
> >                       break;
> >
> >               default:
> > -                     pr_err(FW_BUG "Invalid record %d found.\n",
> > record_header->type);
> > -                     return -EINVAL;
> > +                     /* Other types are reserved in ACPI 6.4 spec.
> > */
> > +                     break;
> >               }
> >       }
> >       return 0;
> > @@ -254,8 +254,7 @@ static int __init acpi_init_fpdt(void)
> >                                             subtable->type);
> >                       break;
> >               default:
> > -                     pr_info(FW_BUG "Invalid subtable type %d
> > found.\n",
> > -                            subtable->type);
> > +                     /* Other types are reserved in ACPI 6.4 spec.
> > */
> >                       break;
> >               }
> >               offset += sizeof(*subtable);
>

      reply	other threads:[~2021-08-25 18:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19  7:14 [PATCH v2 1/1] ACPI: tables: FPDT: Do not print FW_BUG message if record types are reserved Adrian Huang
2021-08-19  8:07 ` Zhang Rui
2021-08-25 18:02   ` Rafael J. Wysocki [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='CAJZ5v0hsLMwj=T5RdZNg163W9hNECmANBk5FGecuHQ+2TqhN6w@mail.gmail.com' \
    --to=rafael@kernel.org \
    --cc=adrianhuang0701@gmail.com \
    --cc=ahuang12@lenovo.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=rui.zhang@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.