]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.0.33/parisc-fix-pa1.1-oops-on-boot.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 3.0.33 / parisc-fix-pa1.1-oops-on-boot.patch
CommitLineData
07361938
GKH
1From 5e185581d7c46ddd33cd9c01106d1fc86efb9376 Mon Sep 17 00:00:00 2001
2From: James Bottomley <JBottomley@Parallels.com>
3Date: Tue, 15 May 2012 11:04:19 +0100
4Subject: PARISC: fix PA1.1 oops on boot
5
6From: James Bottomley <JBottomley@Parallels.com>
7
8commit 5e185581d7c46ddd33cd9c01106d1fc86efb9376 upstream.
9
10All PA1.1 systems have been oopsing on boot since
11
12commit f311847c2fcebd81912e2f0caf8a461dec28db41
13Author: James Bottomley <James.Bottomley@HansenPartnership.com>
14Date: Wed Dec 22 10:22:11 2010 -0600
15
16 parisc: flush pages through tmpalias space
17
18because a PA2.0 instruction was accidentally introduced into the PA1.1 TLB
19insertion interruption path when it was consolidated with the do_alias macro.
20Fix the do_alias macro only to use PA2.0 instructions if compiled for 64 bit.
21
22Signed-off-by: James Bottomley <JBottomley@Parallels.com>
23Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24
25---
26 arch/parisc/kernel/entry.S | 4 ++++
27 1 file changed, 4 insertions(+)
28
29--- a/arch/parisc/kernel/entry.S
30+++ b/arch/parisc/kernel/entry.S
31@@ -581,7 +581,11 @@
32 */
33 cmpiclr,= 0x01,\tmp,%r0
34 ldi (_PAGE_DIRTY|_PAGE_READ|_PAGE_WRITE),\prot
35+#ifdef CONFIG_64BIT
36 depd,z \prot,8,7,\prot
37+#else
38+ depw,z \prot,8,7,\prot
39+#endif
40 /*
41 * OK, it is in the temp alias region, check whether "from" or "to".
42 * Check "subtle" note in pacache.S re: r23/r26.