diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-18 09:25:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-18 09:25:27 +0000 |
commit | dc9e6416e7d60accd5974583540042d29e70f7b4 (patch) | |
tree | 47afa6a57b580bee608d723c888f5c365a9c7edc /target/linux/generic/patches-3.14/010-MIPS-Allow-MIPS_CPU_SCACHE-to-be-used-with-different.patch | |
parent | 9c995cf6d4126ce8031ca0804097c7d1f9c5fbb6 (diff) | |
download | master-187ad058-dc9e6416e7d60accd5974583540042d29e70f7b4.tar.gz master-187ad058-dc9e6416e7d60accd5974583540042d29e70f7b4.tar.bz2 master-187ad058-dc9e6416e7d60accd5974583540042d29e70f7b4.zip |
kernel: backport upstream commit to fix MIPS cache shift with secondary cache enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44024 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.14/010-MIPS-Allow-MIPS_CPU_SCACHE-to-be-used-with-different.patch')
-rw-r--r-- | target/linux/generic/patches-3.14/010-MIPS-Allow-MIPS_CPU_SCACHE-to-be-used-with-different.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.14/010-MIPS-Allow-MIPS_CPU_SCACHE-to-be-used-with-different.patch b/target/linux/generic/patches-3.14/010-MIPS-Allow-MIPS_CPU_SCACHE-to-be-used-with-different.patch new file mode 100644 index 0000000000..f5cdc6d77d --- /dev/null +++ b/target/linux/generic/patches-3.14/010-MIPS-Allow-MIPS_CPU_SCACHE-to-be-used-with-different.patch @@ -0,0 +1,42 @@ +From a7ef1eaddbf4bd50bfee92d9dfbecadc61467bbf Mon Sep 17 00:00:00 2001 +From: Kevin Cernekee <cernekee@gmail.com> +Date: Mon, 20 Oct 2014 21:27:57 -0700 +Subject: [PATCH] MIPS: Allow MIPS_CPU_SCACHE to be used with different line + sizes + +CONFIG_MIPS_CPU_SCACHE determines whether to build sc-mips.c. However, +it is currently hardwired to use an L1_SHIFT of 6 (64 bytes). Move the +L1_SHIFT selection into the CPU or SoC section so that other SoCs can +select different values. + +Signed-off-by: Kevin Cernekee <cernekee@gmail.com> +Cc: f.fainelli@gmail.com +Cc: mbizon@freebox.fr +Cc: jogo@openwrt.org +Cc: jfraser@broadcom.com +Cc: linux-mips@linux-mips.org +Cc: devicetree@vger.kernel.org +Patchwork: https://patchwork.linux-mips.org/patch/8162/ +Signed-off-by: Ralf Baechle <ralf@linux-mips.org> +--- + arch/mips/Kconfig | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/mips/Kconfig ++++ b/arch/mips/Kconfig +@@ -315,6 +315,7 @@ config MIPS_MALTA + select I8259 + select MIPS_BONITO64 + select MIPS_CPU_SCACHE ++ select MIPS_L1_CACHE_SHIFT_6 + select PCI_GT64XXX_PCI0 + select MIPS_MSC + select SWAP_IO_SPACE +@@ -1820,7 +1821,6 @@ config IP22_CPU_SCACHE + config MIPS_CPU_SCACHE + bool + select BOARD_SCACHE +- select MIPS_L1_CACHE_SHIFT_6 + + config R5000_CPU_SCACHE + bool |