All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rafael@kernel.org>
To: Manyi Li <limanyi@uniontech.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
	Len Brown <lenb@kernel.org>,
	ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ACPI: save NVS memory for Lenovo G40-45
Date: Wed, 29 Jun 2022 19:53:07 +0200	[thread overview]
Message-ID: <CAJZ5v0hGEvw6quaK9oh4Qc2A4ggA68Y0ycBMrEfJ7EDZS=E4bA@mail.gmail.com> (raw)
In-Reply-To: <20220622074248.19004-1-limanyi@uniontech.com>

On Wed, Jun 22, 2022 at 9:43 AM Manyi Li <limanyi@uniontech.com> wrote:
>
> [821d6f0359b0614792ab8e2fb93b503e25a65079] is to make machines
> produced from 2012 to now not saving NVS region to accelerate S3.
>
> But, Lenovo G40-45, a platform released in 2015, still needs NVS memory
> saving during S3. A quirk is introduced for this platform.
>
> Signed-off-by: Manyi Li <limanyi@uniontech.com>
> ---
>  drivers/acpi/sleep.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
> index 04ea1569df78..974746e6e59d 100644
> --- a/drivers/acpi/sleep.c
> +++ b/drivers/acpi/sleep.c
> @@ -360,6 +360,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = {
>                 DMI_MATCH(DMI_PRODUCT_NAME, "80E3"),
>                 },
>         },
> +       {
> +       .callback = init_nvs_save_s3,
> +       .ident = "Lenovo G40-45",
> +       .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               DMI_MATCH(DMI_PRODUCT_NAME, "80E1"),
> +               },
> +       },
>         /*
>          * ThinkPad X1 Tablet(2016) cannot do suspend-to-idle using
>          * the Low Power S0 Idle firmware interface (see
> --

Applied as 5.20 material, thanks!

      reply	other threads:[~2022-06-29 17:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22  7:42 [PATCH] ACPI: save NVS memory for Lenovo G40-45 Manyi Li
2022-06-29 17:53 ` 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='CAJZ5v0hGEvw6quaK9oh4Qc2A4ggA68Y0ycBMrEfJ7EDZS=E4bA@mail.gmail.com' \
    --to=rafael@kernel.org \
    --cc=lenb@kernel.org \
    --cc=limanyi@uniontech.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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.