Skip to contentSkip to conversation

powerpc/crash: update fdt on cpu hotplug remove

PATCH In review Shivang Upadhyay 2 participants 2 messages Nov 3 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/crash: update fdt on cpu hotplug remove

Currently fdt for crash kernel is not updated on cpu hotplug remove, which can lead to the following XIVE warnings on the crash kernel bringup.

[    0.630795][    T1] xive: H_INT_GET_QUEUE_INFO cpu=16 prio=6 failed -55
[    0.630912][    T1] xive: Error -55 getting queue info CPU 16 prio 6
[    0.680899][    T1] xive: H_INT_GET_QUEUE_INFO cpu=17 prio=6 failed -55
[    0.681000][    T1] xive: Error -55 getting queue info CPU 17 prio 6

Fixing this by updating crash fdt on cpu hotplug remove path also.

---
 arch/powerpc/kexec/crash.c | 2 --
 1 file changed, 2 deletions(-)
arch/powerpc/kexec/crash.c +0 -2
index 775895f31037..0ef10e39ae49 100644
@@ -639,8 +639,6 @@ void arch_crash_handle_hotplug_event(struct kimage *image, void *arg)
 
 	switch (image->hp_action) {
 	case KEXEC_CRASH_HP_REMOVE_CPU:
-		return;
-
 	case KEXEC_CRASH_HP_ADD_CPU:
 		update_crash_fdt(image);
 		break;
Signature · 1 line
2.54.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Shivang Upadhyay

Currently fdt for crash kernel is not updated on cpu hotplug remove, which can lead to the following XIVE warnings on the crash kernel bringup.

[    0.630795][    T1] xive: H_INT_GET_QUEUE_INFO cpu=16 prio=6 failed -55
[    0.630912][    T1] xive: Error -55 getting queue info CPU 16 prio 6
[    0.680899][    T1] xive: H_INT_GET_QUEUE_INFO cpu=17 prio=6 failed -55
[    0.681000][    T1] xive: Error -55 getting queue info CPU 17 prio 6

Fixing this by updating crash fdt on cpu hotplug remove path also.

---
 arch/powerpc/kexec/crash.c | 2 --
 1 file changed, 2 deletions(-)
arch/powerpc/kexec/crash.c +0 -0
index 775895f31037..0ef10e39ae49 100644

arch/powerpc/kexec/crash.c void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) · line 643

Quoted 5 lines
arch/powerpc/kexec/crash.c +0 -2
@@ -639,8 +639,6 @@ void arch_crash_handle_hotplug_event(struct kimage *image, void *arg)
 
 	switch (image->hp_action) {
 	case KEXEC_CRASH_HP_REMOVE_CPU:
-		return;
-

LGTM

Quoted 3 lines
arch/powerpc/kexec/crash.c +0 -0
 	case KEXEC_CRASH_HP_ADD_CPU:
 		update_crash_fdt(image);
 		break;
Signature · 2 lines
Best regards,
Jinjie