]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Jul 2014 23:50:43 +0000 (16:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Jul 2014 23:50:43 +0000 (16:50 -0700)
added patches:
powerpc-64bit-sendfile-is-capped-at-2gb.patch
powerpc-add-at_hwcap2-to-indicate-v.crypto-category-support.patch
powerpc-fix-typo-config_pmac.patch
powerpc-fix-typo-config_ppc_cpu.patch
powerpc-pseries-fix-overwritten-pe-state.patch

queue-3.10/powerpc-64bit-sendfile-is-capped-at-2gb.patch [new file with mode: 0644]
queue-3.10/powerpc-add-at_hwcap2-to-indicate-v.crypto-category-support.patch [new file with mode: 0644]
queue-3.10/powerpc-fix-typo-config_pmac.patch [new file with mode: 0644]
queue-3.10/powerpc-fix-typo-config_ppc_cpu.patch [new file with mode: 0644]
queue-3.10/powerpc-pseries-fix-overwritten-pe-state.patch [new file with mode: 0644]
queue-3.10/series

diff --git a/queue-3.10/powerpc-64bit-sendfile-is-capped-at-2gb.patch b/queue-3.10/powerpc-64bit-sendfile-is-capped-at-2gb.patch
new file mode 100644 (file)
index 0000000..bc21b83
--- /dev/null
@@ -0,0 +1,36 @@
+From 5d73320a96fcce80286f1447864c481b5f0b96fa Mon Sep 17 00:00:00 2001
+From: Anton Blanchard <anton@samba.org>
+Date: Wed, 4 Jun 2014 10:48:48 +1000
+Subject: powerpc: 64bit sendfile is capped at 2GB
+
+From: Anton Blanchard <anton@samba.org>
+
+commit 5d73320a96fcce80286f1447864c481b5f0b96fa upstream.
+
+commit 8f9c0119d7ba (compat: fs: Generic compat_sys_sendfile
+implementation) changed the PowerPC 64bit sendfile call from
+sys_sendile64 to sys_sendfile.
+
+Unfortunately this broke sendfile of lengths greater than 2G because
+sys_sendfile caps at MAX_NON_LFS. Restore what we had previously which
+fixes the bug.
+
+Signed-off-by: Anton Blanchard <anton@samba.org>
+Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/include/asm/systbl.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/powerpc/include/asm/systbl.h
++++ b/arch/powerpc/include/asm/systbl.h
+@@ -190,7 +190,7 @@ SYSCALL_SPU(getcwd)
+ SYSCALL_SPU(capget)
+ SYSCALL_SPU(capset)
+ COMPAT_SYS(sigaltstack)
+-COMPAT_SYS_SPU(sendfile)
++SYSX_SPU(sys_sendfile64,compat_sys_sendfile,sys_sendfile)
+ SYSCALL(ni_syscall)
+ SYSCALL(ni_syscall)
+ PPC_SYS(vfork)
diff --git a/queue-3.10/powerpc-add-at_hwcap2-to-indicate-v.crypto-category-support.patch b/queue-3.10/powerpc-add-at_hwcap2-to-indicate-v.crypto-category-support.patch
new file mode 100644 (file)
index 0000000..2361691
--- /dev/null
@@ -0,0 +1,43 @@
+From dd58a092c4202f2bd490adab7285b3ff77f8e467 Mon Sep 17 00:00:00 2001
+From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Date: Tue, 10 Jun 2014 15:04:40 +1000
+Subject: powerpc: Add AT_HWCAP2 to indicate V.CRYPTO category support
+
+From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+
+commit dd58a092c4202f2bd490adab7285b3ff77f8e467 upstream.
+
+The Vector Crypto category instructions are supported by current POWER8
+chips, advertise them to userspace using a specific bit to properly
+differentiate with chips of the same architecture level that might not
+have them.
+
+Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/include/uapi/asm/cputable.h |    1 +
+ arch/powerpc/kernel/cputable.c           |    3 ++-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+--- a/arch/powerpc/include/uapi/asm/cputable.h
++++ b/arch/powerpc/include/uapi/asm/cputable.h
+@@ -41,5 +41,6 @@
+ #define PPC_FEATURE2_EBB              0x10000000
+ #define PPC_FEATURE2_ISEL             0x08000000
+ #define PPC_FEATURE2_TAR              0x04000000
++#define PPC_FEATURE2_VEC_CRYPTO               0x02000000
+ #endif /* _UAPI__ASM_POWERPC_CPUTABLE_H */
+--- a/arch/powerpc/kernel/cputable.c
++++ b/arch/powerpc/kernel/cputable.c
+@@ -105,7 +105,8 @@ extern void __restore_cpu_e6500(void);
+                                PPC_FEATURE_PSERIES_PERFMON_COMPAT)
+ #define COMMON_USER2_POWER8   (PPC_FEATURE2_ARCH_2_07 | \
+                                PPC_FEATURE2_HTM_COMP | PPC_FEATURE2_DSCR | \
+-                               PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR)
++                               PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR | \
++                               PPC_FEATURE2_VEC_CRYPTO)
+ #define COMMON_USER_PA6T      (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
+                                PPC_FEATURE_TRUE_LE | \
+                                PPC_FEATURE_HAS_ALTIVEC_COMP)
diff --git a/queue-3.10/powerpc-fix-typo-config_pmac.patch b/queue-3.10/powerpc-fix-typo-config_pmac.patch
new file mode 100644 (file)
index 0000000..507fe48
--- /dev/null
@@ -0,0 +1,33 @@
+From 6e0fdf9af216887e0032c19d276889aad41cad00 Mon Sep 17 00:00:00 2001
+From: Paul Bolle <pebolle@tiscali.nl>
+Date: Tue, 20 May 2014 22:24:58 +0200
+Subject: powerpc: fix typo 'CONFIG_PMAC'
+
+From: Paul Bolle <pebolle@tiscali.nl>
+
+commit 6e0fdf9af216887e0032c19d276889aad41cad00 upstream.
+
+Commit b0d278b7d3ae ("powerpc/perf_event: Reduce latency of calling
+perf_event_do_pending") added a check for CONFIG_PMAC were a check for
+CONFIG_PPC_PMAC was clearly intended.
+
+Fixes: b0d278b7d3ae ("powerpc/perf_event: Reduce latency of calling perf_event_do_pending")
+Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
+Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/kernel/time.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/powerpc/kernel/time.c
++++ b/arch/powerpc/kernel/time.c
+@@ -512,7 +512,7 @@ void timer_interrupt(struct pt_regs * re
+       __get_cpu_var(irq_stat).timer_irqs++;
+-#if defined(CONFIG_PPC32) && defined(CONFIG_PMAC)
++#if defined(CONFIG_PPC32) && defined(CONFIG_PPC_PMAC)
+       if (atomic_read(&ppc_n_lost_interrupts) != 0)
+               do_IRQ(regs);
+ #endif
diff --git a/queue-3.10/powerpc-fix-typo-config_ppc_cpu.patch b/queue-3.10/powerpc-fix-typo-config_ppc_cpu.patch
new file mode 100644 (file)
index 0000000..2cca270
--- /dev/null
@@ -0,0 +1,32 @@
+From b69a1da94f3d1589d1942b5d1b384d8cfaac4500 Mon Sep 17 00:00:00 2001
+From: Paul Bolle <pebolle@tiscali.nl>
+Date: Tue, 20 May 2014 21:59:42 +0200
+Subject: powerpc: fix typo 'CONFIG_PPC_CPU'
+
+From: Paul Bolle <pebolle@tiscali.nl>
+
+commit b69a1da94f3d1589d1942b5d1b384d8cfaac4500 upstream.
+
+Commit cd64d1697cf0 ("powerpc: mtmsrd not defined") added a check for
+CONFIG_PPC_CPU were a check for CONFIG_PPC_FPU was clearly intended.
+
+Fixes: cd64d1697cf0 ("powerpc: mtmsrd not defined")
+Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
+Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/lib/sstep.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/powerpc/lib/sstep.c
++++ b/arch/powerpc/lib/sstep.c
+@@ -1395,7 +1395,7 @@ int __kprobes emulate_step(struct pt_reg
+                               regs->gpr[rd] = byterev_4(val);
+                       goto ldst_done;
+-#ifdef CONFIG_PPC_CPU
++#ifdef CONFIG_PPC_FPU
+               case 535:       /* lfsx */
+               case 567:       /* lfsux */
+                       if (!(regs->msr & MSR_FP))
diff --git a/queue-3.10/powerpc-pseries-fix-overwritten-pe-state.patch b/queue-3.10/powerpc-pseries-fix-overwritten-pe-state.patch
new file mode 100644 (file)
index 0000000..0494947
--- /dev/null
@@ -0,0 +1,32 @@
+From 54f112a3837d4e7532bbedbbbf27c0de277be510 Mon Sep 17 00:00:00 2001
+From: Gavin Shan <gwshan@linux.vnet.ibm.com>
+Date: Thu, 24 Apr 2014 18:00:21 +1000
+Subject: powerpc/pseries: Fix overwritten PE state
+
+From: Gavin Shan <gwshan@linux.vnet.ibm.com>
+
+commit 54f112a3837d4e7532bbedbbbf27c0de277be510 upstream.
+
+In pseries_eeh_get_state(), EEH_STATE_UNAVAILABLE is always
+overwritten by EEH_STATE_NOT_SUPPORT because of the missed
+"break" there. The patch fixes the issue.
+
+Reported-by: Joe Perches <joe@perches.com>
+Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
+Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/platforms/pseries/eeh_pseries.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/powerpc/platforms/pseries/eeh_pseries.c
++++ b/arch/powerpc/platforms/pseries/eeh_pseries.c
+@@ -400,6 +400,7 @@ static int pseries_eeh_get_state(struct
+                       } else {
+                               result = EEH_STATE_NOT_SUPPORT;
+                       }
++                      break;
+               default:
+                       result = EEH_STATE_NOT_SUPPORT;
+               }
index 96ccb58972dd251f34d5a1431a6407f1218bb347..82427cbd858e252997aebc6081b21924d8e4b1dd 100644 (file)
@@ -26,3 +26,8 @@ nfsd-getattr-for-fattr4_word0_files_avail-needs-the-statfs-buffer.patch
 nfs-don-t-declare-inode-uptodate-unless-all-attributes-were-checked.patch
 nfsd-don-t-try-to-reuse-an-expired-drc-entry-off-the-list.patch
 nfsd-don-t-halt-scanning-the-drc-lru-list-when-there-s-an-rc_inprog-entry.patch
+powerpc-pseries-fix-overwritten-pe-state.patch
+powerpc-64bit-sendfile-is-capped-at-2gb.patch
+powerpc-fix-typo-config_pmac.patch
+powerpc-fix-typo-config_ppc_cpu.patch
+powerpc-add-at_hwcap2-to-indicate-v.crypto-category-support.patch