]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Oct 2013 15:36:05 +0000 (08:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Oct 2013 15:36:05 +0000 (08:36 -0700)
added patches:
arc-setup-vector-table-base-in-early-boot.patch

queue-3.10/arc-setup-vector-table-base-in-early-boot.patch [new file with mode: 0644]
queue-3.10/arc-smp-failed-to-boot-due-to-missing-ivt-setup.patch
queue-3.10/series

diff --git a/queue-3.10/arc-setup-vector-table-base-in-early-boot.patch b/queue-3.10/arc-setup-vector-table-base-in-early-boot.patch
new file mode 100644 (file)
index 0000000..472656a
--- /dev/null
@@ -0,0 +1,44 @@
+From 05b016ecf5e7a8c24409d8e9effb5d2ec9107708 Mon Sep 17 00:00:00 2001
+From: Vineet Gupta <vgupta@synopsys.com>
+Date: Mon, 17 Jun 2013 18:27:23 +0530
+Subject: ARC: Setup Vector Table Base in early boot
+
+From: Vineet Gupta <vgupta@synopsys.com>
+
+commit 05b016ecf5e7a8c24409d8e9effb5d2ec9107708 upstream.
+
+Otherwise early boot exceptions such as instructions errors due to
+configuration mismatch between kernel and hardware go off to la-la land,
+as opposed to hitting the handler and panic()'ing properly.
+
+Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
+Cc: Guenter Roeck <linux@roeck-us.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/arc/kernel/head.S |    2 ++
+ arch/arc/kernel/irq.c  |    2 --
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/arc/kernel/head.S
++++ b/arch/arc/kernel/head.S
+@@ -27,6 +27,8 @@ stext:
+       ; Don't clobber r0-r4 yet. It might have bootloader provided info
+       ;-------------------------------------------------------------------
++      sr      @_int_vec_base_lds, [AUX_INTR_VEC_BASE]
++
+ #ifdef CONFIG_SMP
+       ; Only Boot (Master) proceeds. Others wait in platform dependent way
+       ;       IDENTITY Reg [ 3  2  1  0 ]
+--- a/arch/arc/kernel/irq.c
++++ b/arch/arc/kernel/irq.c
+@@ -32,8 +32,6 @@ void __cpuinit arc_init_IRQ(void)
+ {
+       int level_mask = 0;
+-      write_aux_reg(AUX_INTR_VEC_BASE, _int_vec_base_lds);
+-
+       /* Disable all IRQs: enable them as devices request */
+       write_aux_reg(AUX_IENABLE, 0);
index c2ec038e212bb9ee79c61b08e722421a8db2f610..42f1eb40dc54c7f4cc1d1c8900fabeb34f17878c 100644 (file)
@@ -45,7 +45,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  
 --- a/arch/arc/kernel/head.S
 +++ b/arch/arc/kernel/head.S
-@@ -32,6 +32,9 @@ stext:
+@@ -34,6 +34,9 @@ stext:
        ;       IDENTITY Reg [ 3  2  1  0 ]
        ;       (cpu-id)             ^^^        => Zero for UP ARC700
        ;                                       => #Core-ID if SMP (Master 0)
@@ -55,7 +55,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        GET_CPU_ID  r5
        cmp     r5, 0
        jnz     arc_platform_smp_wait_to_boot
-@@ -96,6 +99,8 @@ stext:
+@@ -98,6 +101,8 @@ stext:
  
  first_lines_of_secondary:
  
index 272adcacfef697141cba29095c34f969d30d05d5..c9485d70a158151c0e6c3e55d133f38a240b7eae 100644 (file)
@@ -11,6 +11,7 @@ ext4-fix-memory-leak-in-xattr.patch
 kvm-ppc-book3s-hv-fix-typo-in-saving-dscr.patch
 parisc-fix-interruption-handler-to-respect-pagefault_disable.patch
 arm-fix-the-world-famous-typo-with-is_gate_vma.patch
+arc-setup-vector-table-base-in-early-boot.patch
 arc-smp-failed-to-boot-due-to-missing-ivt-setup.patch
 arc-fix-__udelay-calculation.patch
 arc-handle-zero-overhead-loop-in-unaligned-access-handler.patch