[U-Boot] [PATCH 17/18] ARC: cache: don't invalidate SLC in invalidate_icache_all
Eugeniy Paltsev
Eugeniy.Paltsev at synopsys.com
Tue Feb 13 17:34:50 UTC 2018
We don't want to invalidate SLC in invalidate_icache_all as we
can lose some data from SLC (especially if L1 D$ is disabled)
because SLC is shared for data and instructions.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
---
arch/arc/lib/cache.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.c
index 4e93ab9..907e9e3 100644
--- a/arch/arc/lib/cache.c
+++ b/arch/arc/lib/cache.c
@@ -326,8 +326,11 @@ void invalidate_icache_all(void)
{
__ic_entire_invalidate();
- if (is_isa_arcv2())
- __slc_entire_op(OP_INV);
+ /*
+ * We don't to invalidate SLC here as we can lose some data from
+ * SLC (especially if L1 D$ is disabled) because SLC is shared for
+ * data and instructions.
+ */
}
int dcache_status(void)
--
2.9.3
More information about the U-Boot
mailing list