scm-mpu.txt 916 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Introduction
  2. ============
  3. The scm-mpu driver allows enabling xpu protection of arbitrary physical memory
  4. addresses as a debug mechanism.
  5. Software description
  6. ====================
  7. Several methods of controlling this feature are provided.
  8. * CONFIG_KERNEL_TEXT_MPU_PROT - Enables protection of the kernel code and
  9. read-only sections by default.
  10. * kernel command line
  11. scm_mpu.mpu_start=0x0
  12. scm_mpu.mpu_size=0x1000
  13. * /sys/module/scm_mpu/parameters
  14. echo 0x0 > mpu_start
  15. echo 0x1000 > mpu_size
  16. echo 0x11 > mpu_enable
  17. The sysfs interface may also be used to unlock previously defined regions.
  18. echo 0x0 > mpu_start
  19. echo 0x1000 > mpu_size
  20. echo 0x10 > mpu_enable
  21. Limitations
  22. ===========
  23. The number of distinct regions allowed is limited by available resources.
  24. No provisions are made for "carving out" or otherwise removing xpu protected
  25. regions from the linux memory map.
  26. XPU protection currently uses 4K alignment.