On 05/02/2020 07:37, Nick Hudson wrote:
Module Name: src Committed By: skrll Date: Wed Feb 5 07:37:36 UTC 2020Modified Files: src/sys/arch/arm/arm: cpufunc.c src/sys/arch/arm/arm32: armv7_generic_space.c pmap.c src/sys/arch/arm/conf: Makefile.arm src/sys/arch/arm/include/arm32: pmap.h Log Message: Fix the armv[67] memory attributes for uncached memory. Previously it was mapped as strongly-ordered which meant that unaligned accesses would fault. armv7_generic_bs_map now maps pages with PMAP_DEV which is treated as SO bus_dma continues to use PMAP_NOCACHE as appropriate, but this now get mapped to the correct memory attribute bits for armv[67] DEVMAP_ENTRY usees a new flag PTE_DEV. The workaround for the unaligned access faults is now removed. XXX Other armv[67] boards bus_space implementations should be checked. XXX There is scope to reduce the difference to aarch64
I should have added... Thanks to Rin Okuyama for doing a lot of testing of this. Nick
