... and enable it after exiting S-state. Otherwise accumulated
output in serial buffer might easily trigger the watchdog if it's
still enabled after entering sync transmission mode.
The issue observed on machines which, unfortunately, generate non-0
output in CPU offline callbacks.
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit:
5e08f5f56c9955d853c26c985b6fb1fb45d0355d
master date: 2020-01-29 15:06:10 +0100
#include <xen/domain.h>
#include <xen/console.h>
#include <xen/iommu.h>
+#include <xen/watchdog.h>
#include <xen/cpu.h>
#include <public/platform.h>
#include <asm/tboot.h>
acpi_sleep_prepare(state);
+ watchdog_disable();
console_start_sync();
printk("Entering ACPI S%d state.\n", state);
system_state = SYS_STATE_resume;
device_power_up(error);
console_end_sync();
+ watchdog_enable();
error = -EIO;
goto done;
}
tboot_s3_error(error);
console_end_sync();
+ watchdog_enable();
microcode_resume_cpu(0);