From: "Imre Kaloz" <kaloz@kernel.org>
To: "Maciej W. Rozycki" <macro@orcam.me.uk>
Cc: "Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
"Lee Jones" <lee@kernel.org>
Subject: Re: [PATCH v2 1/2] MIPS: SGI-IP30: power off through the DS1687 RTC
Date: Sat, 28 Nov 2026 18:43:02 +0100 [thread overview]
Message-ID: <8a852ad7-0efd-4732-906d-c2b9fbb63a6e@app.fastmail.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2611030412480.15685@angie.orcam.me.uk>
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
next prev parent reply other threads:[~2026-11-28 17:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 9:41 [PATCH v2 0/2] MIPS: SGI-IP30: power off through the RTC Imre Kaloz
2026-11-02 9:41 ` [PATCH v2 1/2] MIPS: SGI-IP30: power off through the DS1687 RTC Imre Kaloz
2026-11-03 15:45 ` Maciej W. Rozycki
2026-11-28 17:43 ` Imre Kaloz [this message]
2026-11-02 9:41 ` [PATCH v2 2/2] MIPS: SGI-IP30: shut down cleanly on a power button press Imre Kaloz
[not found] ` <sashiko-outbox-193229@kernel.org>
2026-11-02 11:29 ` Imre Kaloz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8a852ad7-0efd-4732-906d-c2b9fbb63a6e@app.fastmail.com \
--to=kaloz@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=macro@orcam.me.uk \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®