arm: mach-omap2: cache: Explicitly enable I cache
Subsystems (3)
PATCH 1/1 arm: mach-omap2: cache: Explicitly enable I cache
omap-common cache enabling sequence relies on cpu_init_cp15() (inside start.S) for enabling I-caches. But cpu_init_cp15() can be skipped if CONFIG_SKIP_LOWLEVEL_INIT is defined. So enable I-caches if not enabled already.
--- arch/arm/mach-omap2/omap-cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm/mach-omap2/omap-cache.c +5 -1
@@ -44,7 +44,11 @@ DECLARE_GLOBAL_DATA_PTR;void enable_caches (void ) { -/* Enable D-cache. I-cache is already enabled in start.S */ + +/* Enable I cache if not enabled */ +if (!icache_status ()) +icache_enable (); +dcache_enable (); }
Signature · 1 line
2.17.0
PATCH 1/1 arm: mach-omap2: cache: Explicitly enable I cache
Quoted 19 lines · Lokesh Vutla
omap-common cache enabling sequence relies on
cpu_init_cp15()(insidestart.S) for enabling I-caches. Butcpu_init_cp15()can be skipped ifCONFIG_SKIP_LOWLEVEL_INITis defined. So enable I-caches if not enabled already.Debugged-by Jean-Jacques Hiblot <[email protected]>Tested-by Steve Kipisz <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>--- arch/arm/mach-omap2/omap-cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)arch/arm/mach-omap2/omap-cache.c +0
-0@@ -44,7 +44,11 @@ DECLARE_GLOBAL_DATA_PTR;void enable_caches (void )
arch/arm/mach-omap2/omap-cache.c DECLARE_GLOBAL_DATA_PTR; · line 54
Quoted 10 lines
arch/arm/mach-omap2/omap-cache.c +5
-1{ -/* Enable D-cache. I-cache is already enabled in start.S */ + +/* Enable I cache if not enabled */ +if (!icache_status ()) +icache_enable (); +dcache_enable (); }
PATCH 1/1 arm: mach-omap2: cache: Explicitly enable I cache
In reply to Lokesh VutlaQuoted 8 lines · Lokesh Vutla
omap-common cache enabling sequence relies on
cpu_init_cp15()(insidestart.S) for enabling I-caches. Butcpu_init_cp15()can be skipped ifCONFIG_SKIP_LOWLEVEL_INITis defined. So enable I-caches if not enabled already.Debugged-by Jean-Jacques Hiblot <[email protected]>Tested-by Steve Kipisz <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180503/d252beec/attachment.sig>
Quoted 10 lines · Lokesh Vutla
omap-common cache enabling sequence relies on
cpu_init_cp15()(insidestart.S) for enabling I-caches. Butcpu_init_cp15()can be skipped ifCONFIG_SKIP_LOWLEVEL_INITis defined. So enable I-caches if not enabled already.Debugged-by Jean-Jacques Hiblot <[email protected]>Tested-by Steve Kipisz <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>Tested-by Jean-Jacques Hiblot <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180506/c2b1c12b/attachment.sig>