ar71xx: fix lzma loader performance issues
authorJulien Dusser <julien.dusser@free.fr>
Wed, 19 Jul 2017 12:52:35 +0000 (14:52 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Oct 2017 11:24:04 +0000 (13:24 +0200)
commit8c5702f2a07cebfbee6f9e628b63d88b8806ca1b
treedb2ce879a3a0a19d441362f1dc681dc8e742b6dd
parent06e41056aab12f5fb6c35789d0bde71bcf1dc90e
ar71xx: fix lzma loader performance issues

Some bootloaders set a cache cohenrency to a very slow mode. Use code from
Linux kernel to set it to "Cacheable, noncoherent, write-back, write
allocate".

Perfomance impact is significant on TP-Link EAP245 board, kernel
decompression time fall from 33 seconds to less than 1.

Signed-off-by: Julien Dusser <julien.dusser@free.fr>
target/linux/ar71xx/image/lzma-loader/src/head.S