* [PATCH v2] rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0
@ 2022-08-08 18:23 Rafael J. Wysocki
2022-08-08 18:38 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2022-08-08 18:23 UTC (permalink / raw)
To: Alexandre Belloni, Linux ACPI
Cc: Alessandro Zummo, LKML, Zhang Rui, Mario Limonciello, linux-rtc,
Linux PM
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
The ACPI_FADT_LOW_POWER_S0 flag merely means that it is better to
use low-power S0 idle on the given platform than S3 (provided that
the latter is supported) and it doesn't preclude using either of
them (which of them will be used depends on the choices made by user
space).
For this reason, there is no benefit from checking that flag in
use_acpi_alarm_quirks().
First off, it cannot be a bug to do S3 with use_acpi_alarm set,
because S3 can be used on systems with ACPI_FADT_LOW_POWER_S0 and it
must work if really supported, so the ACPI_FADT_LOW_POWER_S0 check is
not needed to protect the S3-capable systems from failing.
Second, suspend-to-idle can be carried out on a system with
ACPI_FADT_LOW_POWER_S0 unset and it is expected to work, so if setting
use_acpi_alarm is needed to handle that case correctly, it should be
set regardless of the ACPI_FADT_LOW_POWER_S0 value.
Accordingly, drop the ACPI_FADT_LOW_POWER_S0 check from
use_acpi_alarm_quirks().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
---
-> v2:
* Fix typo in the changelog.
* Add R-by tag from Mario.
---
drivers/rtc/rtc-cmos.c | 3 ---
1 file changed, 3 deletions(-)
Index: linux-pm/drivers/rtc/rtc-cmos.c
===================================================================
--- linux-pm.orig/drivers/rtc/rtc-cmos.c
+++ linux-pm/drivers/rtc/rtc-cmos.c
@@ -1260,9 +1260,6 @@ static void use_acpi_alarm_quirks(void)
if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
return;
- if (!(acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0))
- return;
-
if (!is_hpet_enabled())
return;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0
2022-08-08 18:23 [PATCH v2] rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0 Rafael J. Wysocki
@ 2022-08-08 18:38 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2022-08-08 18:38 UTC (permalink / raw)
To: linux-acpi, rjw
Cc: a.zummo, mario.limonciello, linux-rtc, rui.zhang, LKML, linux-pm
On Mon, 08 Aug 2022 20:23:59 +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> The ACPI_FADT_LOW_POWER_S0 flag merely means that it is better to
> use low-power S0 idle on the given platform than S3 (provided that
> the latter is supported) and it doesn't preclude using either of
> them (which of them will be used depends on the choices made by user
> space).
>
> [...]
Applied, thanks!
[1/1] rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0
commit: 6492fed7d8c95f53b0b804ef541324d924d95d41
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-08 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 18:23 [PATCH v2] rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0 Rafael J. Wysocki
2022-08-08 18:38 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®