From: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
To: linuxppc-dev@lists.ozlabs.org
Cc: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>,
Jordan Niethe <jniethe5@gmail.com>,
Alistair Popple <alistair@popple.id.au>
Subject: PPC32: Boot regression on Nintendo Wii, after create_branch rework in 5.8
Date: Sun, 25 Apr 2021 17:40:20 +0200 [thread overview]
Message-ID: <YIWNZI4YhFuRZwHg@latitude> (raw)
[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]
Hi,
I recently booted my Wii again, and I noticed a regression at boot time.
Output stops after the "Finalizing device tree... flat tree at 0xXXXXXX"
message. I bisected it to this commit in the 5.8 development cycle:
commit 7c95d8893fb55869882c9f68f4c94840dc43f18f
Author: Jordan Niethe <jniethe5@gmail.com>
Date: Wed May 6 13:40:25 2020 +1000
powerpc: Change calling convention for create_branch() et. al.
create_branch(), create_cond_branch() and translate_branch() return the
instruction that they create, or return 0 to signal an error. Separate
these concerns in preparation for an instruction type that is not just
an unsigned int. Fill the created instruction to a pointer passed as
the first parameter to the function and use a non-zero return value to
signify an error.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-6-jniethe5@gmail.com
arch/powerpc/include/asm/code-patching.h | 12 +--
arch/powerpc/kernel/optprobes.c | 24 +++---
arch/powerpc/kernel/setup_32.c | 4 +-
arch/powerpc/kernel/trace/ftrace.c | 24 +++---
arch/powerpc/lib/code-patching.c | 134 ++++++++++++++++++-------------
arch/powerpc/lib/feature-fixups.c | 5 +-
6 files changed, 119 insertions(+), 84 deletions(-)
Do you have any hints on how to debug and/or fix this issue?
Best regards,
Jonathan Neuschäfer
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2021-04-25 15:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 15:40 Jonathan Neuschäfer [this message]
2021-04-28 1:33 ` PPC32: Boot regression on Nintendo Wii, after create_branch rework in 5.8 Jordan Niethe
2021-04-28 18:14 ` Jonathan Neuschäfer
2021-04-29 14:26 ` Christophe Leroy
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=YIWNZI4YhFuRZwHg@latitude \
--to=j.neuschaefer@gmx.net \
--cc=alistair@popple.id.au \
--cc=jniethe5@gmail.com \
--cc=linkmauve@linkmauve.fr \
--cc=linuxppc-dev@lists.ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).