[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220905071559.1576801-1-kai.heng.feng@canonical.com>
Date: Mon, 5 Sep 2022 15:15:58 +0800
From: Kai-Heng Feng <kai.heng.feng@...onical.com>
To: rafael.j.wysocki@...el.com
Cc: Kai-Heng Feng <kai.heng.feng@...onical.com>,
Josef Bacik <josef@...icpanda.com>,
Dmitry Osipenko <dmitry.osipenko@...labora.com>,
Petr Mladek <pmladek@...e.com>,
Luis Chamberlain <mcgrof@...nel.org>,
tangmeng <tangmeng@...ontech.com>,
YueHaibing <yuehaibing@...wei.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] PM: ACPI: reboot: Reinstate S5 for reboot
Commit d60cd06331a3 ("PM: ACPI: reboot: Use S5 for reboot") caused Dell
PowerEdge r440 hangs at boot.
The issue is fixed by commit 2ca1c94ce0b6 ("tg3: Disable tg3 device on
system reboot to avoid triggering AER"), so reinstate the patch again.
Cc: Josef Bacik <josef@...icpanda.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@...onical.com>
---
kernel/reboot.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/reboot.c b/kernel/reboot.c
index 3c35445bf5ad3..c0b89007f0d1b 100644
--- a/kernel/reboot.c
+++ b/kernel/reboot.c
@@ -254,6 +254,8 @@ void migrate_to_reboot_cpu(void)
void kernel_restart(char *cmd)
{
kernel_restart_prepare(cmd);
+ if (pm_power_off_prepare)
+ pm_power_off_prepare();
migrate_to_reboot_cpu();
syscore_shutdown();
if (!cmd)
--
2.36.1
Powered by blists - more mailing lists