From: Larry Bassel <larry.bassel@oracle.com>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] sparc64: shut down to OBP correctly
Date: Wed, 21 Dec 2016 17:16:41 +0000 [thread overview]
Message-ID: <20161221171641.GA28792@ubuette> (raw)
In-Reply-To: <1482340333-65764-1-git-send-email-larry.bassel@oracle.com>
On 21 Dec 16 09:12, Larry Bassel wrote:
> Orabug: 24789774
My apologies -- this line likely should not be in this patch -- I'm sending
a v2.
Larry
>
> The command "shutdown -h -H now" should shut down the system to
> OBP, however the machine was incorrectly being powered off instead
> (on both LDOM and bare metal).
>
> The "exit" command to the OBP must be run and then a hard
> loop to prevent return to the kernel.
>
> Signed-off-by: Larry Bassel <larry.bassel@oracle.com>
> ---
> arch/sparc/prom/misc_64.c | 7 +------
> 1 files changed, 1 insertions(+), 6 deletions(-)
>
> diff --git a/arch/sparc/prom/misc_64.c b/arch/sparc/prom/misc_64.c
> index 53a696d..aa80788 100644
> --- a/arch/sparc/prom/misc_64.c
> +++ b/arch/sparc/prom/misc_64.c
> @@ -115,16 +115,11 @@ void notrace prom_halt(void)
> {
> unsigned long args[3];
>
> -#ifdef CONFIG_SUN_LDOMS
> - if (ldom_domaining_enabled)
> - ldom_power_off();
> -#endif
> -again:
> args[0] = (unsigned long) "exit";
> args[1] = 0;
> args[2] = 0;
> p1275_cmd_direct(args);
> - goto again; /* PROM is out to get me -DaveM */
> + while (1);
> }
>
> void prom_halt_power_off(void)
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe sparclinux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-12-21 17:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 17:12 [PATCH] sparc64: shut down to OBP correctly Larry Bassel
2016-12-21 17:16 ` Larry Bassel [this message]
2016-12-21 18:07 ` David Miller
2016-12-21 18:51 ` Larry Bassel
2016-12-21 19:06 ` David Miller
2016-12-21 19:44 ` Larry Bassel
2016-12-21 20:15 ` David Miller
2016-12-22 8:26 ` Alexandre Chartre
2016-12-22 17:29 ` Larry Bassel
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=20161221171641.GA28792@ubuette \
--to=larry.bassel@oracle.com \
--cc=sparclinux@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.