]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2018 10:08:59 +0000 (12:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2018 10:08:59 +0000 (12:08 +0200)
added patches:
microblaze-setup-dependencies-for-asm-optimized-lib-functions.patch

queue-4.14/microblaze-setup-dependencies-for-asm-optimized-lib-functions.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/microblaze-setup-dependencies-for-asm-optimized-lib-functions.patch b/queue-4.14/microblaze-setup-dependencies-for-asm-optimized-lib-functions.patch
new file mode 100644 (file)
index 0000000..ecd2888
--- /dev/null
@@ -0,0 +1,50 @@
+From 18ffc0cce4ff947a2acc9b2e06ae5309a6e6fb43 Mon Sep 17 00:00:00 2001
+From: Michal Simek <michal.simek@xilinx.com>
+Date: Thu, 22 Feb 2018 15:19:37 +0100
+Subject: microblaze: Setup dependencies for ASM optimized lib functions
+
+From: Michal Simek <michal.simek@xilinx.com>
+
+commit 18ffc0cce4ff947a2acc9b2e06ae5309a6e6fb43 upstream.
+
+The patch:
+"microblaze: Setup proper dependency for optimized lib functions"
+(sha1: 7b6ce52be3f86520524711a6f33f3866f9339694)
+didn't setup all dependencies properly.
+Optimized lib functions in C are also present for little endian
+and optimized library functions in assembler are implemented only for
+big endian version.
+
+Reported-by: kbuild test robot <fengguang.wu@intel.com>
+Signed-off-by: Michal Simek <michal.simek@xilinx.com>
+Cc: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/microblaze/Kconfig.platform |    1 +
+ arch/microblaze/lib/fastcopy.S   |    4 ----
+ 2 files changed, 1 insertion(+), 4 deletions(-)
+
+--- a/arch/microblaze/Kconfig.platform
++++ b/arch/microblaze/Kconfig.platform
+@@ -20,6 +20,7 @@ config OPT_LIB_FUNCTION
+ config OPT_LIB_ASM
+       bool "Optimalized lib function ASM"
+       depends on OPT_LIB_FUNCTION && (XILINX_MICROBLAZE0_USE_BARREL = 1)
++      depends on CPU_BIG_ENDIAN
+       default n
+       help
+         Allows turn on optimalized library function (memcpy and memmove).
+--- a/arch/microblaze/lib/fastcopy.S
++++ b/arch/microblaze/lib/fastcopy.S
+@@ -29,10 +29,6 @@
+  *    between mem locations with size of xfer spec'd in bytes
+  */
+-#ifdef __MICROBLAZEEL__
+-#error Microblaze LE not support ASM optimized lib func. Disable OPT_LIB_ASM.
+-#endif
+-
+ #include <linux/linkage.h>
+       .text
+       .globl  memcpy
index 2488212d46bbc2939d015e825bfb37d84c0e1c5e..c3da8bd329277d6d198984569fc4c3d886614d2b 100644 (file)
@@ -58,3 +58,4 @@ s390-report-spectre-mitigation-via-syslog.patch
 s390-add-sysfs-attributes-for-spectre.patch
 s390-correct-nospec-auto-detection-init-order.patch
 s390-correct-module-section-names-for-expoline-code-revert.patch
+microblaze-setup-dependencies-for-asm-optimized-lib-functions.patch