mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-06 12:53:21 +09:00
![]() We were not disabling external caches before jumping to kernel. We were flushing all caches including external caches and disabling caches globally in CP15 System Control register. Apparently this is not enough. The bootstrap loader in Linux kernel that does decompression enables data-caches again, flush them after use and disable them before jumping to kernel proper. However, it's not aware of the external caches. Since we have left external cache enabled, external cache will get used once caches are enabled globally, but it's not flushed because decompressor is not aware of external caches. When it jumps to kernel with caches disabled globally, we have stale data in the external cache and a coherency problem. This was breaking the boot for OMAP4 with latest mainline kernel. The solution is to disable external caches in cleanup_before_linux(). With this fix kernel is booting again. Cc: Albert Aribaud <albert.u.boot@aribaud.net> Signed-off-by: Aneesh V <aneesh@ti.com> |
||
---|---|---|
.. | ||
am33xx | ||
highbank | ||
mx5 | ||
omap3 | ||
omap4 | ||
omap5 | ||
omap-common | ||
s5p-common | ||
s5pc1xx | ||
s5pc2xx | ||
tegra2 | ||
u8500 | ||
cache_v7.c | ||
config.mk | ||
cpu.c | ||
Makefile | ||
start.S | ||
syslib.c | ||
u-boot.lds |