Re: [PATCH v5.10.y-cip] ARM: 9093/1: drivers: firmwapsci: Register with kernel restart handler


Nobuhiro Iwamatsu
 

Hi,

-----Original Message-----
From: Biju Das <biju.das.jz@...>
Sent: Thursday, August 4, 2022 11:28 PM
To: Pavel Machek <pavel@...>
Cc: iwamatsu nobuhiro(岩松 信洋 □SWC◯ACT)
<nobuhiro1.iwamatsu@...>; Lad Prabhakar
<prabhakar.mahadev-lad.rj@...>; Biju Das
<biju.das.jz@...>; cip-dev@...
Subject: [PATCH v5.10.y-cip] ARM: 9093/1: drivers: firmwapsci: Register with
kernel restart handler

From: Guenter Roeck <linux@...>

commit 2bb565bbdc0358b6042e3076416c4ba32bd56bfc upstream.

Register with kernel restart handler instead of setting arm_pm_restart directly.
This enables support for replacing the PSCI restart handler with a different
handler if necessary for a specific board.

Select a priority of 129 to indicate a higher than default priority, but keep it as
low as possible since PSCI reset is known to fail on some boards.

Acked-by: Arnd Bergmann <arnd@...>
Reviewed-by: Wolfram Sang <wsa+renesas@...>
Tested-by: Wolfram Sang <wsa+renesas@...>
Signed-off-by: Guenter Roeck <linux@...>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@...>
Signed-off-by: Thierry Reding <treding@...>
Signed-off-by: Lee Jones <lee.jones@...>
Signed-off-by: Russell King <rmk+kernel@...>
Signed-off-by: Biju Das <biju.das.jz@...>
---
Currently reboot command is taking 60sec(default wdt timeout) to reboot the
system on RZ/{G2L,G2LC} platform, due to [1]

[1]
https://elixir.bootlin.com/linux/v5.10.135/source/arch/arm64/kernel/process
.c#L203

This patch allows to call watchdog_restart_notifier and it restart the system
immediately.
Applied, thanks.

Best regards,
Nobuhiro

Join cip-dev@lists.cip-project.org to automatically receive all group messages.