From: Lee Jones <hidden> Date: 2021-06-04 14:04:05
This is a rebase/refresh of a set sent out, reviewed,
then forgotten about. It's still considered useful.
Here is an excerpt from the previous attempt:
"Hi Russell, ARM SoC maintainers,
here's the full set of patches that remove arm_pm_restart as discussed
earlier. There's some background on the series in this thread:
https://lore.kernel.org/linux-arm-kernel/20170130110512.6943-1-thierry.reding@gmail.com/
I also have a set of patches that build on top of this and try to add
something slightly more formal by adding a power/reset framework that
driver can register with. If we can get this series merged, I'll find
some time to refresh those patches and send out for review again.
Thierry"
Guenter Roeck (5):
ARM: xen: Register with kernel restart handler
drivers: firmware: psci: Register with kernel restart handler
ARM: Register with kernel restart handler
ARM64: Remove arm_pm_restart()
ARM: Remove arm_pm_restart()
arch/arm/include/asm/system_misc.h | 1 -
arch/arm/kernel/reboot.c | 6 +-----
arch/arm/kernel/setup.c | 20 ++++++++++++++++++--
arch/arm/xen/enlighten.c | 12 ++++++++++--
arch/arm64/include/asm/system_misc.h | 2 --
arch/arm64/kernel/process.c | 7 +------
drivers/firmware/psci/psci.c | 12 ++++++++++--
7 files changed, 40 insertions(+), 20 deletions(-)
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Lee Jones <hidden> Date: 2021-06-04 14:04:17
From: Guenter Roeck <linux@roeck-us.net>
By making use of the kernel restart handler, board specific restart
handlers can be prioritized amongst available mechanisms for a particular
board or system.
Select the default priority of 128 to indicate that the restart callback
in the machine description is the default restart mechanism.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thierry Reding <redacted>
Signed-off-by: Lee Jones <redacted>
---
arch/arm/kernel/setup.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
From: Lee Jones <hidden> Date: 2021-06-04 14:05:07
From: Guenter Roeck <linux@roeck-us.net>
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@arndb.de>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Lorenzo Pieralisi <redacted>
Signed-off-by: Thierry Reding <redacted>
Signed-off-by: Lee Jones <redacted>
---
drivers/firmware/psci/psci.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
@@ -138,10 +137,7 @@ void machine_restart(char *cmd)local_irq_disable();smp_send_stop();-if(arm_pm_restart)-arm_pm_restart(reboot_mode,cmd);-else-do_kernel_restart(cmd);+do_kernel_restart(cmd);/* Give a grace period for failure to restart of 1s */mdelay(1000);
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
@@ -201,10 +199,7 @@ void machine_restart(char *cmd)efi_reboot(reboot_mode,NULL);/* Now call the architecture specific reboot code. */-if(arm_pm_restart)-arm_pm_restart(reboot_mode,cmd);-else-do_kernel_restart(cmd);+do_kernel_restart(cmd);/**Whoops-thearchitecturewasunabletoreboot.
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
This is a rebase/refresh of a set sent out, reviewed,
then forgotten about. It's still considered useful.
Here is an excerpt from the previous attempt:
"Hi Russell, ARM SoC maintainers,
here's the full set of patches that remove arm_pm_restart as discussed
earlier. There's some background on the series in this thread:
https://lore.kernel.org/linux-arm-kernel/20170130110512.6943-1-thierry.reding@gmail.com/
I also have a set of patches that build on top of this and try to add
something slightly more formal by adding a power/reset framework that
driver can register with. If we can get this series merged, I'll find
some time to refresh those patches and send out for review again.
What happened to this patch series? Is there any chance we will get it
included at some point? It is included in the Android13-5.10 tree AFAICT
--
Florian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
This is a rebase/refresh of a set sent out, reviewed,
then forgotten about. It's still considered useful.
Here is an excerpt from the previous attempt:
"Hi Russell, ARM SoC maintainers,
here's the full set of patches that remove arm_pm_restart as discussed
earlier. There's some background on the series in this thread:
https://lore.kernel.org/linux-arm-kernel/20170130110512.6943-1-thierry.reding@gmail.com/
I also have a set of patches that build on top of this and try to add
something slightly more formal by adding a power/reset framework that
driver can register with. If we can get this series merged, I'll find
some time to refresh those patches and send out for review again.
What happened to this patch series? Is there any chance we will get it
included at some point? It is included in the Android13-5.10 tree AFAICT
This is a rebase/refresh of a set sent out, reviewed,
then forgotten about. It's still considered useful.
Here is an excerpt from the previous attempt:
"Hi Russell, ARM SoC maintainers,
here's the full set of patches that remove arm_pm_restart as discussed
earlier. There's some background on the series in this thread:
https://lore.kernel.org/linux-arm-kernel/20170130110512.6943-1-thierry.reding@gmail.com/
I also have a set of patches that build on top of this and try to add
something slightly more formal by adding a power/reset framework that
driver can register with. If we can get this series merged, I'll find
some time to refresh those patches and send out for review again.
What happened to this patch series? Is there any chance we will get it
included at some point? It is included in the Android13-5.10 tree AFAICT
This is a rebase/refresh of a set sent out, reviewed,
then forgotten about. It's still considered useful.
Here is an excerpt from the previous attempt:
"Hi Russell, ARM SoC maintainers,
here's the full set of patches that remove arm_pm_restart as
discussed
earlier. There's some background on the series in this thread:
https://lore.kernel.org/linux-arm-kernel/20170130110512.6943-1-thierry.reding@gmail.com/
I also have a set of patches that build on top of this and try to add
something slightly more formal by adding a power/reset framework that
driver can register with. If we can get this series merged, I'll find
some time to refresh those patches and send out for review again.
What happened to this patch series? Is there any chance we will get it
included at some point? It is included in the Android13-5.10 tree AFAICT