Thread (24 messages) flat view 24 messages, 4 authors, 2017-10-17
STALE3259d

Revision v3 of 17 in this series.

Revisions (17)
  1. rfc [diff vs current]
  2. v2 [diff vs current]
  3. v2 [diff vs current]
  4. v1 [diff vs current]
  5. v1 [diff vs current]
  6. v1 [diff vs current]
  7. v1 [diff vs current]
  8. v2 [diff vs current]
  9. v1 [diff vs current]
  10. v2 [diff vs current]
  11. v3 [diff vs current]
  12. v3 [diff vs current]
  13. v3 [diff vs current]
  14. v3 current
  15. v3 [diff vs current]
  16. v3 [diff vs current]
  17. v3 [diff vs current]

[PATCH v3 0/8] ARM: NOMMU: MPU updates

From: Vladimir Murzin <hidden>
Date: 2017-10-13 09:40:39

On 13/10/17 10:24, Russell King - ARM Linux wrote:
Sorry, but I have no working MPS3 platform since it killed its uSD card
with all the FPGA bitstreams on.  I'm waiting (since end of September)
for a replacement from ARM Ltd but there hasn't yet been any progress.

Sure, I can replace the uSD card myself, but the problem is the contents
of the card.
Thanks for prompt reply!

I should say that board won't help you with testing this series since it
implements different MPU model (I have patches for that too but they are
on top of this series).

I've been working closely with Alex and Andr?s (since they needed this for
their Cortex-M7 platform) to make sure it works as expected. It was also
tested with R-class FastModels.

I intentionally kept CONFIG_ARM_MPU disabled by default for M-class
(PATCH 6/8), so it won't interfere with existing bootloaders.

I'd be glad if you can review the series and give it a chance to sit in
linux-next (I can provide a branch on top of yours for-next).

Cheers
Vladimir

On Fri, Oct 13, 2017 at 10:17:00AM +0100, Vladimir Murzin wrote:
quoted
Gentle ping...

On 09/10/17 10:20, Vladimir Murzin wrote:
quoted
Russell, do you have concerns on this series?

Thanks
Vladimir

On 25/09/17 10:05, Vladimir Murzin wrote:
quoted
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/8), more
flexible layout for memory (PATCH 7/8) and support for XIP (PATCH
8/8). Since there is no in-tree user of MPU, support for M-class has
been added (PATCH 6/8).

There is also practical benefit of patch set:

"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." Andr?s Szemz?

Changelog:
           v2 -> v3
              - fixed support for XIP (PATCH 8/8)
	      - rebased on 4.14-rc2

           v1 -> v2
              - support for XIP (PATCH 8/8)
	      - rebased on 4.13-rc1

        RFC v2 -> v1
               - dropped RFC tag
	       - Tested-by from Andr?s
	       - rebased on 4.12-rc5

           RFC -> RFC v2
	       - fixed MPU enable for v7m (PATCH 6/7)

Thanks!

Vladimir Murzin (8):
  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
  ARM: NOMMU: Support MPU in XIP configuration

 arch/arm/Kconfig                  |   9 -
 arch/arm/Kconfig-nommu            |   4 +-
 arch/arm/include/asm/cputype.h    |  10 +
 arch/arm/include/asm/mpu.h        |  26 +-
 arch/arm/include/asm/smp.h        |   2 +-
 arch/arm/include/asm/v7m.h        |  10 +
 arch/arm/kernel/asm-offsets.c     |  11 +
 arch/arm/kernel/head-nommu.S      | 148 +++++++++---
 arch/arm/kernel/smp.c             |   2 +-
 arch/arm/kernel/vmlinux-xip.lds.S |  23 ++
 arch/arm/mm/Makefile              |   1 +
 arch/arm/mm/nommu.c               | 254 +-------------------
 arch/arm/mm/pmsa-v7.c             | 484 ++++++++++++++++++++++++++++++++++++++
 13 files changed, 682 insertions(+), 302 deletions(-)
 create mode 100644 arch/arm/mm/pmsa-v7.c

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help