Skip to contentSkip to conversation

xen: arm: enable sync console in machine_reboot.

PATCH In review Ian Campbell 2 participants 4 messages Jan 15, 2015 – Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: arm: enable sync console in machine_reboot.

Otherwise the last thing printed is "(XE" or something.

In line with x86 also disable the watchdog and spin debugging.

---
 xen/arch/arm/shutdown.c |    4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/shutdown.c +4 -0
index 4988b03..e53ec97 100644
@@ -38,6 +38,10 @@ void machine_restart(unsigned int delay_millisecs)
 {
     int timeout = 10;
 
+    watchdog_disable();
+    console_start_sync();
+    spin_debug_disable();
+
     local_irq_enable();
     smp_call_function(halt_this_cpu, NULL, 0);
     local_irq_disable();
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw

Hi Ian,

Quoted 5 lines · Ian Campbell

Otherwise the last thing printed is "(XE" or something.

In line with x86 also disable the watchdog and spin debugging.

xen/arch/arm/shutdown.c void machine_restart(unsigned int delay_millisecs) · line 41

Quoted 13 lines
---
 xen/arch/arm/shutdown.c |    4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/shutdown.c +1 -0
index 4988b03..e53ec97 100644
@@ -38,6 +38,10 @@ void machine_restart(unsigned int delay_millisecs)
 {
     int timeout = 10;
 
+    watchdog_disable();

OOI, it looks like watchdog_disable is a no-op on ARM. Is there any plan to implement it?

Regards,

Signature · 1 line
Julien Grall
#2 lore raw
Quoted 23 lines · Julien Grall

Hi Ian,

Quoted 5 lines · Ian Campbell

Otherwise the last thing printed is "(XE" or something.

In line with x86 also disable the watchdog and spin debugging.

Quoted 12 lines
---
 xen/arch/arm/shutdown.c |    4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/shutdown.c +0 -0
index 4988b03..e53ec97 100644
@@ -38,6 +38,10 @@ void machine_restart(unsigned int delay_millisecs)
 {
     int timeout = 10;
 
Quoted 4 lines

xen/arch/arm/shutdown.c void machine_restart(unsigned int delay_millisecs) · line 41

Quoted 1 line
xen/arch/arm/shutdown.c +1 -0
+    watchdog_disable();

OOI, it looks like watchdog_disable is a no-op on ARM. Is there any plan to implement it?

Not by me, would be nice to have though.

Quoted 3 lines

Regards,