Re: [PATCH v2 1/2] MIPS: SGI-IP30: power off through the DS1687 RTC
From: Imre Kaloz
Date: Sat Nov 28 2026 - 12:43:36 EST
Hi Maciej,
On Tue, Nov 3, 2026, at 16:45, Maciej W. Rozycki wrote:
> On Mon, 2 Nov 2026, Imre Kaloz wrote:
>
>> + /*
>> + * The DS1687 RTC switches the power supply off. Halt powers off
>> + * too, as the power button needs a running kernel.
>> + */
>
> Hmm, up to you to decide really, however the usual custom for halt has
> been to do nothing for systems that have no console monitor to return to.
> Shutdown scripts may arrange for no processes to remain running beyond
> init(8), making the system halted for any practical purpose though still
> technically running, but with:
>
> # halt -f
>
> command issued control just reaches back to the shell prompt. That's what
> my observation has been about Linux since 1990s.
>
> Please consider this a point in discussion though rather than any kind of
> objection. Perhaps your choice better matches the system in question.
>
> Conversely, if you do have a console monitor to return to, then it's what
> the halt action is supposed to do. The firmware may then decide what to
> do next based on its own settings ("halt action") where available, e.g.
> present a command prompt or try to boot the system again.
Sorry for the late reply, had to wait for my Indy and Indigo 2 to arrive to
be able to test it. They do this cleanly: halt -f prints "reboot: System halted"
and the System Maintenance Menu appears at once.
The Octane gets there too, but only when the ARCS EnterInteractiveMode
vector is called through its uncached KSEG1 alias; the cached address the
firmware hands out takes an instruction bus error.
On the O2 the same call does not return: the PROM resets itself, runs its
power-on diagnostics and then shows the menu.
On the Tezro the PROM runs mapped and cannot be re-entered from Linux at all.
IRIX never re-enters the running PROM on any of them and halts by restarting.
So I think that as time passed, IP2x became the outlier here, and on the newer
machines returning to the PROM was not something SGI had in mind.
Thanks,
Imre