From 3064651bf75d3ca08cbfff916a14e8b3c4c246fb Mon Sep 17 00:00:00 2001
From: =?utf8?q?Daniel=20Gonz=C3=A1lez=20Cabanelas?= <dgcbueu@gmail.com>
Date: Fri, 13 Nov 2020 20:22:51 +0100
Subject: [PATCH] mvebu: LS421DE: fix low performance issue
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

The Buffalo Linkstation LS421DE isn't able to enable the Level 2 cache
(AKA Aurora cache). As of result of this, the throughput is about half of
the expected, e.g when doing network data transfers.

Fix it by adding the broken-idle property in the coherency fabric node.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
---
 .../files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts
index e80466579207..2a76649ec4fd 100644
--- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts
+++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts
@@ -209,6 +209,10 @@
 	};
 };
 
+&coherencyfab {
+	broken-idle;
+};
+
 &eth1 {
 	pinctrl-0 = <&ge1_rgmii_pins>;
 	pinctrl-names = "default";
-- 
2.30.2