]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up powerpc patch for 4.4 and 4.9
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 May 2021 15:59:20 +0000 (17:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 May 2021 15:59:20 +0000 (17:59 +0200)
queue-4.4/powerpc-64s-fix-crashes-when-toggling-entry-flush-barrier.patch
queue-4.9/powerpc-64s-fix-crashes-when-toggling-entry-flush-barrier.patch

index c7da9505d4a4a9b27096b42bb734aec3ee770ccf..312332ac2b46f6d426721391b0cb031eb75ae95e 100644 (file)
@@ -32,12 +32,20 @@ Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
 Link: https://lore.kernel.org/r/20210506044959.1298123-2-mpe@ellerman.id.au
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- arch/powerpc/lib/feature-fixups.c |   1+++++++++++++++-
- 1 file changed, 15 insertions(+), 1 deletion(-)
+ arch/powerpc/lib/feature-fixups.c |   17 ++++++++++++++++-
+ 1 file changed, 16 insertions(+), 1 deletion(-)
 
 --- a/arch/powerpc/lib/feature-fixups.c
 +++ b/arch/powerpc/lib/feature-fixups.c
-@@ -279,8 +279,9 @@ void do_uaccess_flush_fixups(enum l1d_fl
+@@ -16,6 +16,7 @@
+ #include <linux/kernel.h>
+ #include <linux/string.h>
+ #include <linux/init.h>
++#include <linux/stop_machine.h>
+ #include <asm/cputable.h>
+ #include <asm/code-patching.h>
+ #include <asm/page.h>
+@@ -279,8 +280,9 @@ void do_uaccess_flush_fixups(enum l1d_fl
                                                : "unknown");
  }
  
@@ -48,7 +56,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        unsigned int instrs[3], *dest;
        long *start, *end;
        int i;
-@@ -331,6 +332,19 @@ void do_entry_flush_fixups(enum l1d_flus
+@@ -331,6 +333,19 @@ void do_entry_flush_fixups(enum l1d_flus
                                                        : "ori type" :
                (types &  L1D_FLUSH_MTTRIG)     ? "mttrig type"
                                                : "unknown");
index 397f7e09da82565e51535bab8d812306c733d6dc..36c7ab2dddfdeded4a446c747f903d8e74fe2fca 100644 (file)
@@ -32,12 +32,20 @@ Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
 Link: https://lore.kernel.org/r/20210506044959.1298123-2-mpe@ellerman.id.au
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- arch/powerpc/lib/feature-fixups.c |   1+++++++++++++++-
- 1 file changed, 15 insertions(+), 1 deletion(-)
+ arch/powerpc/lib/feature-fixups.c |   17 ++++++++++++++++-
+ 1 file changed, 16 insertions(+), 1 deletion(-)
 
 --- a/arch/powerpc/lib/feature-fixups.c
 +++ b/arch/powerpc/lib/feature-fixups.c
-@@ -282,8 +282,9 @@ void do_uaccess_flush_fixups(enum l1d_fl
+@@ -17,6 +17,7 @@
+ #include <linux/kernel.h>
+ #include <linux/string.h>
+ #include <linux/init.h>
++#include <linux/stop_machine.h>
+ #include <asm/cputable.h>
+ #include <asm/code-patching.h>
+ #include <asm/page.h>
+@@ -282,8 +283,9 @@ void do_uaccess_flush_fixups(enum l1d_fl
                                                : "unknown");
  }
  
@@ -48,7 +56,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        unsigned int instrs[3], *dest;
        long *start, *end;
        int i;
-@@ -334,6 +335,19 @@ void do_entry_flush_fixups(enum l1d_flus
+@@ -334,6 +336,19 @@ void do_entry_flush_fixups(enum l1d_flus
                                                        : "ori type" :
                (types &  L1D_FLUSH_MTTRIG)     ? "mttrig type"
                                                : "unknown");