]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
config: Update envs for trats and trats2 - Disable L2 cache
authorŁukasz Majewski <l.majewski@samsung.com>
Tue, 14 Jan 2014 07:02:26 +0000 (08:02 +0100)
committerTom Rini <trini@ti.com>
Fri, 17 Jan 2014 13:04:28 +0000 (08:04 -0500)
Disable L2 caches for Trats and Trats2 devices.

It turns out that for data downloading with thordown command L2 cache
disablement brings a significant speed improvement.

rootfs - 400 MiB:
- L2 cache enabled: 2.69 MiB/s
- L2 cache disabled:  5.56 MiB/s

Such improvement is possible due to reduction of the need to invalidate
redundant data, which resides in L2 cache.

Since the sent USB request size at once is 512B (L1 - 32 KiB in total) -
one can be quite confident that it is already available in L1 and L2 can
be disabled.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
include/configs/trats.h
include/configs/trats2.h

index 0bdfe86477af382d6a56493680392dad9592b1dd..fdd8b460b0d69bff6ba2a07dbb865392b86eaf0b 100644 (file)
@@ -27,6 +27,7 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_SYS_L2CACHE_OFF
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
 #define CONFIG_SYS_PL310_BASE  0x10502000
index f335280c0df8b43ce1e0ce53f7f2a78729d14235..892dd8e889ec44c05ab0d455ebf497b49cca03b3 100644 (file)
@@ -30,6 +30,7 @@
 
 #define CONFIG_SYS_CACHELINE_SIZE      32
 
+#define CONFIG_SYS_L2CACHE_OFF
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
 #define CONFIG_SYS_PL310_BASE  0x10502000