From: Christophe Leroy <christophe.leroy@c-s.fr>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: [RFC PATCH] powerpc: fix kexec failure on book3s/32
Date: Thu, 23 May 2019 05:24:53 +0000 (UTC) [thread overview]
Message-ID: <a6c5749a4297daa9a89f8573b4893aa8f1b96c93.1558588355.git.christophe.leroy@c-s.fr> (raw)
In-Reply-To: <20190522211724.GC456@darkstar.musicnaut.iki.fi>
Fixes: 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
arch/powerpc/kernel/machine_kexec_32.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/kernel/machine_kexec_32.c b/arch/powerpc/kernel/machine_kexec_32.c
index affe5dcce7f4..b6a4250b9ee0 100644
--- a/arch/powerpc/kernel/machine_kexec_32.c
+++ b/arch/powerpc/kernel/machine_kexec_32.c
@@ -54,6 +54,8 @@ void default_machine_kexec(struct kimage *image)
memcpy((void *)reboot_code_buffer, relocate_new_kernel,
relocate_new_kernel_size);
+ mtsrin(mfsrin(reboot_code_buffer) & ~SR_NX, reboot_code_buffer);
+
flush_icache_range(reboot_code_buffer,
reboot_code_buffer + KEXEC_CONTROL_PAGE_SIZE);
printk(KERN_INFO "Bye!\n");
--
2.13.3
next prev parent reply other threads:[~2019-05-23 5:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 22:18 [BISECTED] kexec regression on PowerBook G4 Aaro Koskinen
2019-05-22 6:14 ` Christophe Leroy
2019-05-22 7:44 ` Christophe Leroy
2019-05-22 20:13 ` Aaro Koskinen
2019-05-22 20:33 ` LEROY Christophe
[not found] ` <20190522211724.GC456@darkstar.musicnaut.iki.fi>
2019-05-23 5:24 ` Christophe Leroy [this message]
2019-05-23 5:33 ` Christophe Leroy
2019-05-23 17:27 ` Aaro Koskinen
2019-05-23 18:58 ` Christophe Leroy
2019-05-23 22:23 ` Aaro Koskinen
2019-05-24 5:46 ` Christophe Leroy
2019-05-24 6:08 ` Christophe Leroy
2019-05-24 7:36 ` Aaro Koskinen
2019-05-24 7:40 ` Christophe Leroy
2019-05-24 13:29 ` Aaro Koskinen
2019-05-24 13:35 ` Christophe Leroy
2019-05-24 6:05 ` [RFC PATCH v2] powerpc: fix kexec failure on book3s/32 Christophe Leroy
2019-05-24 13:38 ` Christophe Leroy
2019-05-22 20:07 ` [BISECTED] kexec regression on PowerBook G4 Aaro Koskinen
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=a6c5749a4297daa9a89f8573b4893aa8f1b96c93.1558588355.git.christophe.leroy@c-s.fr \
--to=christophe.leroy@c-s.fr \
--cc=aaro.koskinen@iki.fi \
--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).