summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-common/arch_checks.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-05-27 22:46:46 +0000
committerMike Frysinger <vapier@gentoo.org>2010-08-06 12:55:47 -0400
commit74181295fbc6e65047e85529aa74457d82355ffc (patch)
treebf218b8d35999e531643d060ac1a8987b71e2259 /arch/blackfin/mach-common/arch_checks.c
parentdc7101bbaed644e61aa0056ff572b8d7a58e1ef0 (diff)
downloadlinux-74181295fbc6e65047e85529aa74457d82355ffc.tar.gz
linux-74181295fbc6e65047e85529aa74457d82355ffc.tar.bz2
linux-74181295fbc6e65047e85529aa74457d82355ffc.zip
Blackfin: allow cache funcs to be in L1 for IFLUSH Anomaly 05000491
Anomaly 05000491 says that IFLUSH cannot have certain types of memory stalls triggered before it has completed in order to function correctly. One such condition is that it be in L1 instruction. So add a config option to move it there, default it to on, and throw up a warning when it is turned off and this anomaly exists. Since the anomaly should be worked around, we can drop the older method of calling IFLUSH multiple times. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'arch/blackfin/mach-common/arch_checks.c')
-rw-r--r--arch/blackfin/mach-common/arch_checks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/arch_checks.c b/arch/blackfin/mach-common/arch_checks.c
index 77d1c320d7e6..bceb98126c21 100644
--- a/arch/blackfin/mach-common/arch_checks.c
+++ b/arch/blackfin/mach-common/arch_checks.c
@@ -60,3 +60,7 @@
(defined(CONFIG_BFIN_EXTMEM_WRITEBACK) || defined(CONFIG_BFIN_L2_WRITEBACK))
# error "Anomaly 05000220 does not allow you to use Write Back cache with L2 or External Memory"
#endif
+
+#if ANOMALY_05000491 && !defined(CONFIG_CACHE_FLUSH_L1)
+# error You need IFLUSH in L1 inst while Anomaly 05000491 applies
+#endif