[RFC PATCH v2 0/7] ARM: NOMMU: MPU updates
From: Szemző András <hidden>
Date: 2017-05-22 10:05:05
Hi,
On 2017. May 19., at 11:46, Vladimir Murzin [off-list ref] wrote: Hi, This is an update of the existent MPU code which consist set of clean-ups and enhancements. The most significant changes are in the way how MPU settings sync-up for secondaries (PATCH 3/7) and more flexible layout for memory (PATCH 7/7). Since there is no in-tree user of MPU, support for M-class has been added (PATCH 6/7). Thanks! Changelog: RFC -> RFC v2 - fixed MPU enable for v7m (PATCH 6/7) Vladimir Murzin (7): ARM: NOMMU: Move out MPU setup in separate module ARM: NOMMU: Update MPU accessors to use cp15 helpers ARM: NOMMU: Rework MPU to be mostly done in C ARM: NOMMU: Disallow MPU for XIP ARM: Kconfig: Kill CONFIG_VECTORS_BASE ARM: V7M: Add support for MPU to M-class ARM: NOMMU: Use more MPU regions to cover memory
I?ve tested these patches on my custom Atmel SAME70 armv7m board, along with the "ARM: Fix dma_alloc_coherent() and friends for NOMMU" patches. Both series works fine for me. These MPU patches introduce a nice feature that it simplifies the bootloader: do not need to setup the MPU, for example for coherent DMA region, which is described in device-tree too. So you can add my Tested-by. Booting Linux on physical CPU 0x0 Linux version 4.12.0-rc1 (root at devel) (gcc version 4.9.2 ( 4.9.2-10) ) #1 Fri May 19 06:26:34 EDT 2017 CPU: ARMv7-M [410fc271] revision 1 (ARMv7M), cr=00000000 CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache OF: fdt: Machine model: SAME70-sampione board bootconsole [earlycon0] enabled Reserved memory: created DMA memory pool at 0x73e00000, size 2 MiB OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool Using ARMv7 PMSA Compliant MPU. Region independence: No, Used 4 of 16 regions ? Thanks for the patches! Regards, Andras