Re: [PATCH] reboot: extend delay from 50us to 50ms for CF9 reboot

From: Alan Cox
Date: Thu Jun 01 2017 - 09:00:05 EST


On Thu, 1 Jun 2017 02:52:32 +0000
"Shi, FengX" <fengx.shi@xxxxxxxxx> wrote:

> On some emulator system, 50us is not enough to reboot the system
> when write reboot_code to cf9. System will halt there by int3.

Then your emulator is not emulating 8) and you really need to get whoever
is responsible to fix it. If it's some kind of Intel internal emulator
then I don't see why a hack for it belongs upstream either.

You can also use existing boot options to force an EFI, ACPI or BIOS
reboot with a standard kernel so you can deal with your emulator in your
emulator firmware just fine.

> Here extend the delay time from 50us to 50ms.
> Such extension will improve the robustness of reboot,
> without impact to the time of system reboot, which is already triggered by outb.

On a system where a PCI reboot fails you add 50ms before the triple fault
kicks in, so that statement is not true.

Alan