]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.1/powerpc-booke64-set-ri-in-default-msr.patch
drop queue-4.4/mm-vmstat-make-quiet_vmstat-lighter.patch
[thirdparty/kernel/stable-queue.git] / queue-5.1 / powerpc-booke64-set-ri-in-default-msr.patch
1 From 5266e58d6cd90ac85c187d673093ad9cb649e16d Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Mon, 15 Apr 2019 14:52:11 +0300
4 Subject: powerpc/booke64: set RI in default MSR
5
6 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
7
8 commit 5266e58d6cd90ac85c187d673093ad9cb649e16d upstream.
9
10 Set RI in the default kernel's MSR so that the architected way of
11 detecting unrecoverable machine check interrupts has a chance to work.
12 This is inline with the MSR setup of the rest of booke powerpc
13 architectures configured here.
14
15 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
16 Cc: stable@vger.kernel.org
17 Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20 ---
21 arch/powerpc/include/asm/reg_booke.h | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/arch/powerpc/include/asm/reg_booke.h
25 +++ b/arch/powerpc/include/asm/reg_booke.h
26 @@ -41,7 +41,7 @@
27 #if defined(CONFIG_PPC_BOOK3E_64)
28 #define MSR_64BIT MSR_CM
29
30 -#define MSR_ (MSR_ME | MSR_CE)
31 +#define MSR_ (MSR_ME | MSR_RI | MSR_CE)
32 #define MSR_KERNEL (MSR_ | MSR_64BIT)
33 #define MSR_USER32 (MSR_ | MSR_PR | MSR_EE)
34 #define MSR_USER64 (MSR_USER32 | MSR_64BIT)