From: Lan Tianyu <tianyu.lan@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: lenb@kernel.org, linux-acpi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3
Date: Wed, 23 Jul 2014 13:35:25 +0800 [thread overview]
Message-ID: <53CF499D.7020304@intel.com> (raw)
In-Reply-To: <1466357.PZLf9xnT2g@vostro.rjw.lan>
On 2014年07月23日 07:40, Rafael J. Wysocki wrote:
> On Friday, July 18, 2014 01:55:22 PM Lan Tianyu wrote:
>> NVS region is saved and restored unconditionally for machines without
>> nvs_nosave quirk during S3. Tested some new machines and the operation
>> is not necessary. Saving NVS region also affects S2RAM speed. The time of
>> NVS saving and restoring depends on the size of NVS region and it consumes
>> 7~10ms normally.
>>
>> This patch is to make machines produced from 2012 to now not saving NVS region
>> to accelerate S3.
>>
>> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
>> ---
>> drivers/acpi/sleep.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
>> index b3e3cc7..896d8be 100644
>> --- a/drivers/acpi/sleep.c
>> +++ b/drivers/acpi/sleep.c
>> @@ -322,7 +322,12 @@ static struct dmi_system_id acpisleep_dmi_table[] __initdata = {
>>
>> static void acpi_sleep_dmi_check(void)
>> {
>> + int year;
>> +
>> dmi_check_system(acpisleep_dmi_table);
>> +
>> + if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && year >= 2012)
>> + acpi_nvs_nosave_s3();
>
> I'd prefer the ordering here to be different so that individual quirks
> could be used to change the date-based wholesale behavior.
Ok. I will update soon.
>
>> }
>>
>> /**
>>
>
--
Best regards
Tianyu Lan
next prev parent reply other threads:[~2014-07-23 5:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 5:55 [PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3 Lan Tianyu
2014-07-18 8:00 ` Chen, Gong
2014-07-21 2:14 ` Lan Tianyu
2014-07-21 2:14 ` Lan Tianyu
2014-07-21 5:01 ` Chen, Gong
2014-07-21 5:54 ` Lan Tianyu
2014-07-21 5:54 ` Lan Tianyu
2014-07-21 6:25 ` Chen, Gong
2014-07-21 7:37 ` Lan Tianyu
2014-07-21 7:37 ` Lan Tianyu
2014-07-22 23:40 ` Rafael J. Wysocki
2014-07-23 5:35 ` Lan Tianyu [this message]
2014-07-23 6:42 ` [PATCH V2] ACPI/NVS: Not save NVS region for new machine " Lan Tianyu
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=53CF499D.7020304@intel.com \
--to=tianyu.lan@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@rjwysocki.net \
/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.