Am 16.08.2016 um 03:03 schrieb Daniel Bolgheroni:
On Mon, Aug 15, 2016 at 09:56:09PM +0200, Mark Kettenis wrote:
The functions that clean/invalidate the caches by virtual address,
bail out after cleaning 32k worth of data. The 32k matches the L1
cache of most of the CPUs we current run on. But the Cortex-A7 has an
integrated L2 cache that is larger. And if you only flush it
partially you may get into trouble. And now that we actually use the
cache that matters. Many of the more recent ARMv7 CPUs include such a
L2 cache. And some of them even have L1 caches that are larger than
32k. So drop the shortcut and simply clean/invalidate what we were
asked to clean/invalidate. Most of the calls should be covering a
single page or less anyway.
This fixes the core dumps and illegal instructions that I see when
booting from a SATA disk.
Just saw this commited. It makes Cubieboard2 fully useable so far.
Kernel rebuild with fs on ahci:
Just did a complete system build on ahci on a cubieboard2 without any
issues:
335m47.17s real 266m37.66s user 54m34.81s system
Thank you very much!