mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] ACPI: reboot: Increase the delay to avoid racing after writing to ACPI RESET_REG on AMD Milan platforms.
@ 2023-06-07  3:44 James Liu
  2023-06-07 11:19 ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: James Liu @ 2023-06-07  3:44 UTC (permalink / raw)
  To: rafael, lenb, linux-acpi, linux-kernel; +Cc: hpelk, james.liu

For AMD Milan platforms, the delay of 15ms is insufficient to avoid racing
of reboot mechanisms. That said, the AMD Milan processors don't reboot
in 15ms after invoking acpi_reset().

The proposed 50ms delay can effectively work around this issue.
This extended delay aligns better with ACPI v6.4 (i.e., sec. 4.8.4.6),
which indicates that ideally OSPM should execute spin loops on the CPUs
in the system following a write to this register.

Signed-off-by: James Liu <james.liu@hpe.com>
---
 drivers/acpi/reboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/reboot.c b/drivers/acpi/reboot.c
index b79b7c99c237..002f7c7814a1 100644
--- a/drivers/acpi/reboot.c
+++ b/drivers/acpi/reboot.c
@@ -78,5 +78,5 @@ void acpi_reboot(void)
 	 * The 15ms delay has been found to be long enough for the system
 	 * to reboot on the affected platforms.
 	 */
-	mdelay(15);
+	mdelay(50);
 }
-- 
2.40.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-17 11:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07  3:44 [PATCH v1] ACPI: reboot: Increase the delay to avoid racing after writing to ACPI RESET_REG on AMD Milan platforms James Liu
2023-06-07 11:19 ` Rafael J. Wysocki
2023-06-08  9:14   ` James Liu
2023-06-12 16:57     ` Rafael J. Wysocki
     [not found]       ` <64dbd730.050a0220.46601.d780SMTPIN_ADDED_BROKEN@mx.google.com>
2023-08-17 11:08         ` Rafael J. Wysocki

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®