Re: [PATCH] Use BIOS reboot on Toshiba Portege 4000



Eric W. Biederman wrote:
I think we are confusing two issues here.

- Ordinary machine_restart which happens to call emergency_restart.
And is proceeded by machine_shutdown.

- And emergency_restart itself.

To some extent I would be a lot happier if Alt-sysrq-r did what
was necessary to get into a context where it can call machine_restart
or even better kernel_restart().
emergency_restart() is a nice idea but is broken by design.


Isn't emergency_restart() equivalent to kexec()? Both start from indeterminite conditions.

That said. If we can turn off vmx on that one processor.
That should be enough for the cpu to triple fault and let
the BIOS do what it needs to do on that cpu i.e. outb(magic, 0x92)
and toggle a motherboard level reset?


If triple fault is wired to INIT (as it is at least on some systems; for example one of mine) then the cpu will reset, but why will the bios proceed to issue a motherboard reset? Won't it happily POST it's way to boot (leaving the other cpus dead)?

If I read the earlier comments correctly the deep issue is
that going through ACPI to reset systems is less reliable than
doing it the classic way.

It depends on the system; both are unreliable. But if we use the same trick as with kdump (NMI SIPI + vmxoff) the choice will be orthogonal to whether vmx is in use or not.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: need help w/ multi-threaded, multi-CPU tick count / stopwatch
    ... The problem is that if you need to call Reset in one thread ... CPU safe. ... public sealed class StopWatch ... lock ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TECH: what the hell is going on with my sys80 CPU!???
    ... clock out of CPU. ... I decided to hook up the reset board that came with the game. ... Mainly just because it was "something else" that plugged into that 40 pin ... that 40 pin header. ...
    (rec.games.pinball)
  • Re: MPC5200 coming out of reset - does it actually work?
    ... not make it out of reset, the highest 3 address lines may be non-0 ... I made the POR longer; ... The PCI clock comes up at 33 MHz regardless of whether the CPU will ... as well as the suggested pulldowns on ...
    (comp.sys.powerpc.tech)
  • Re: [PATCH] Use BIOS reboot on Toshiba Portege 4000
    ... That should be enough for the cpu to triple fault and let ... the BIOS do what it needs to do on that cpu i.e. outb ... and toggle a motherboard level reset? ... Won't it happily POST it's way to boot (leaving the other ...
    (Linux-Kernel)
  • Re: Help with Defender Repair
    ... Defender CPU board - the 6809 CPU has a constant reset on pin 37. ... Because the schematics do not match the boards in question, ... If you were running it in a Stargate Cocktail and it was flipping, ...
    (rec.games.video.arcade)