arm: cache_v7: fix dcache invalidation
RFC PATCH 1/1 arm: cache_v7: fix dcache invalidation
From: Markus Niebel <[email protected]>
according to
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka14802.html
and the clarification given by Marc Rutland of ARM
data cache invalidation should go from outer to inner cache. This patch corrects the order in
flush_dcache_rangeflush_dcache_all
--- arch/arm/cpu/armv7/cache_v7.c | 8 ++++---- include/configs/tqma6.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/cpu/armv7/cache_v7.c +4 -4
@@ -235,9 +235,9 @@ static void v7_inval_tlb(void)void invalidate_dcache_all (void ) { -v7_maint_dcache_all (ARMV7_DCACHE_INVAL_ALL ); -v7_outer_cache_inval_all (); + +v7_maint_dcache_all (ARMV7_DCACHE_INVAL_ALL ); }/*
@@ -257,9 +257,9 @@ void flush_dcache_all(void)*/ void invalidate_dcache_range (unsigned long start,unsigned long stop) { -v7_dcache_maint_range (start, stop,ARMV7_DCACHE_INVAL_RANGE ); -v7_outer_cache_inval_range (start, stop); + +v7_dcache_maint_range (start, stop,ARMV7_DCACHE_INVAL_RANGE ); }/*
include/configs/tqma6.h +2 -1
@@ -111,10 +111,11 @@#define CONFIG_ARP_TIMEOUT 200UL/* Network config - Allow larger/faster download for TFTP/NFS */ +/* #define CONFIG_IP_DEFRAG #define CONFIG_TFTP_BLOCKSIZE 4096 #define CONFIG_NFS_READ_SIZE 4096 - +*/ /* Command definition */ #define CONFIG_CMD_BMODE
Signature · 1 line
2.3.0
RFC PATCH 1/1 arm: cache_v7: fix dcache invalidation
Hi Markus,
Quoted 8 lines · Markus Niebel
/*
include/configs/tqma6.h +0
-0@@ -111,10 +111,11 @@
include/configs/tqma6.h line 120
Quoted 10 lines
include/configs/tqma6.h +2
-1#define CONFIG_ARP_TIMEOUT 200UL/* Network config - Allow larger/faster download for TFTP/NFS */ +/* #define CONFIG_IP_DEFRAG #define CONFIG_TFTP_BLOCKSIZE 4096 #define CONFIG_NFS_READ_SIZE 4096 - +*/ /* Command definition */ #define CONFIG_CMD_BMODE
Is this change some mistake ?
If not, please separate it from your first patch.
best regards,
Hannes
RFC PATCH 1/1 arm: cache_v7: fix dcache invalidation
Am 28.08.2015 um 15:37 schrieb Hannes Schmelzer:
Quoted 12 lines
Hi Markus,
Quoted 9 lines · Markus Niebel
/*include/configs/tqma6.h +1
-0@@ -111,10 +111,11 @@#define CONFIG_ARP_TIMEOUT 200UL/* Network config - Allow larger/faster download for TFTP/NFS */ +/*
Quoted 8 lines
include/configs/tqma6.h line 120
Quoted 7 lines
include/configs/tqma6.h +1
-1#define CONFIG_IP_DEFRAG #define CONFIG_TFTP_BLOCKSIZE 4096 #define CONFIG_NFS_READ_SIZE 4096 - +*/ /* Command definition */ #define CONFIG_CMD_BMODE Is this change some mistake ?
You are right. Should not be here - sorry.
Quoted 5 lines
If not, please separate it from your first patch.
best regards,
Hannes