From: Michael Ellerman <patch-notifications@ellerman•id.au>
To: Oliver O'Halloran <oohall@gmail•com>, linuxppc-dev@lists•ozlabs.org
Cc: Oliver O'Halloran <oohall@gmail•com>
Subject: Re: powerpc/boot: fix the early OPAL console wrappers
Date: Fri, 25 Nov 2016 10:59:19 +1100 (AEDT) [thread overview]
Message-ID: <3tPx5366f6z9t1B@ozlabs.org> (raw)
In-Reply-To: <1479869713-30059-1-git-send-email-oohall@gmail.com>
On Wed, 2016-11-23 at 02:55:13 UTC, Oliver O'Halloran wrote:
> When configured with CONFIG_PPC_EARLY_DEBUG_OPAL=y the kernel expects
> the OPAL entry and base addresses to be passed in r8 and r9
> respectively. Currently the wrapper does not attempt to restore these
> values before entering the decompressed kernel which causes the kernel
> to branch into whatever happens to be in r9 when doing a write to the
> OPAL console in early boot.
>
> This patch adds a platform_ops hook that can be used to branch into the
> new kernel. The OPAL console driver patches this at runtime so that if
> the console is used it will be restored just prior to entering the
> kernel.
>
> Fixes: 656ad58ef19e
> Signed-off-by: Oliver O'Halloran <oohall@gmail•com>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/a1ff57416af9a7971a801d553cd53e
cheers
prev parent reply other threads:[~2016-11-24 23:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 2:55 [PATCH] powerpc/boot: fix the early OPAL console wrappers Oliver O'Halloran
2016-11-24 23:59 ` Michael Ellerman [this message]
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=3tPx5366f6z9t1B@ozlabs.org \
--to=patch-notifications@ellerman$(echo .)id.au \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=oohall@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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