Skip to contentSkip to conversation

kexec: Add kexec reboot string

PATCH Applied Paul Menzel 4 participants 6 messages Mar 4, 2021 – Mar 11, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: Add kexec reboot string

From: Joe LeVeque <[email protected]>

The purpose is to notify the kernel module for fast reboot.

Upstream a patch from the SONiC network operating system [1].

[1]: https://github.com/Azure/sonic-linux-kernel/pull/46

---
 kernel/kexec_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/kexec_core.c +1 -1
index a0b6780740c8..f04d04d1b855 100644
@@ -1165,7 +1165,7 @@ int kernel_kexec(void)
 #endif
 	{
 		kexec_in_progress = true;
-		kernel_restart_prepare(NULL);
+		kernel_restart_prepare("kexec reboot");
 		migrate_to_reboot_cpu();
 
 		/*
Signature · 7 lines
2.30.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Paul Menzel

From: Joe LeVeque <[email protected]>

The purpose is to notify the kernel module for fast reboot.

Checked several modules which registered with reboot_notifier_list, the passed string is not cared. Just curious, could you tell how you have used or plan to use this string in your code?

No objection to this even though it's trivial if no real use case.

Quoted 32 lines

Upstream a patch from the SONiC network operating system [1].

[1]: https://github.com/Azure/sonic-linux-kernel/pull/46

---
 kernel/kexec_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/kexec_core.c +1 -1
index a0b6780740c8..f04d04d1b855 100644
@@ -1165,7 +1165,7 @@ int kernel_kexec(void)
 #endif
 	{
 		kexec_in_progress = true;
-		kernel_restart_prepare(NULL);
+		kernel_restart_prepare("kexec reboot");
 		migrate_to_reboot_cpu();
 
 		/*
Signature · 7 lines
2.30.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
maintainer
#2 lore raw
In reply to Paul Menzel
Quoted 9 lines · On Thu, 4 Mar 2021 13:46:26 +0100 Paul Menzel <[email protected]> wrote:

From: Joe LeVeque <[email protected]>

The purpose is to notify the kernel module for fast reboot.

Upstream a patch from the SONiC network operating system [1].

[1]: https://github.com/Azure/sonic-linux-kernel/pull/46

We should have Joe's signed-off-by: for this. Joe, can you please send it?

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#3 lore raw

Hi Andrew,

Is this all your looking for? If not, please let me know.

Quoted 1 line

Thanks,
Joe

-----Original Message-----
From: Andrew Morton <[email protected]>
Sent: Wednesday, March 10, 2021 9:33 PM
To: Paul Menzel <[email protected]>
Cc: Eric Biederman <[email protected]>; [email protected]; [email protected]; Guohan Lu <[email protected]>; Joe LeVeque <[email protected]>
Subject: [EXTERNAL] Re: [PATCH] kexec: Add kexec reboot string

Quoted 15 lines · On Thu, 4 Mar 2021 13:46:26 +0100 Paul Menzel <[email protected]> wrote:

From: Joe LeVeque <[email protected]>

The purpose is to notify the kernel module for fast reboot.

Upstream a patch from the SONiC network operating system [1].

[1]:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
ub.com%2FAzure%2Fsonic-linux-kernel%2Fpull%2F46&amp;data=04%7C01%7Cjol evequ%40microsoft.com%7Cddd7ea68d7d14ecdbd6608d8e44f225b%7C72f988bf86f 141af91ab2d7cd011db47%7C1%7C0%7C637510375952624615%7CUnknown%7CTWFpbGZ sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 D%7C1000&amp;sdata=0lxaoVz%2BYyu5C4HvzSGMf0NpJJUWZFWdp7m3hLlL9MM%3D&am p;reserved=0

Quoted 1 line

We should have Joe's signed-off-by: for this. Joe, can you please send it?

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#5 lore raw
In reply to Joe LeVeque

Dear Joe,

Thank you for replying.

Am 11.03.21 um 19:14 schrieb Joe LeVeque:

Quoted 3 lines

Is this all your looking for? If not, please let me know.

Quoted 1 line

It’d be great if you answered Baoquan He’s question, how it’s actually used in SONiC. (I just sent the patch upstream to reduce the out-of-tree patches in SONiC.)

Kind regards,

Paul

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec