Don't take shortcuts cleaning/invalidating the caches. The Cortex-A7 and most
authorkettenis <kettenis@openbsd.org>
Mon, 15 Aug 2016 21:08:56 +0000 (21:08 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 15 Aug 2016 21:08:56 +0000 (21:08 +0000)
commit25a1f99f42476b1ae531367557ac5fe9efd31779
tree706a2959dcecb4076297477e1e295ce3c84746d0
parent4ad296a89635e5c99e55048c3c3def266da95154
Don't take shortcuts cleaning/invalidating the caches.  The Cortex-A7 and most
other ARMv7 CPUs have a L2 cache that is larger than 32KB.  And some of those
even have L1 caches larger than that.  So bailing out after 32KB will leave
the cache partially dirty.

Fixes the SATA problems on Allwinner A20 based boards.

ok patrick@
sys/arch/arm/arm/cpufunc_asm_armv7.S