mbox series

[0/2] Add STRICT_DEVMEM support on RISC-V

Message ID cover.1592292685.git.zong.li@sifive.com (mailing list archive)
Headers show
Series Add STRICT_DEVMEM support on RISC-V | expand

Message

Zong Li June 16, 2020, 7:45 a.m. UTC
This patchset include two parts, the first one is that register System
RAM as iomem resources, it is needed for page_is_ram API which checks
the specified address whether registered as System RAM in iomem_resource
list. The second patch is that add devmem_is_allowed to support
STRICT_DEVMEM, and it would invoke page_is_ram to check the addresses.

Zong Li (2):
  riscv: Register System RAM as iomem resources
  riscv: Support CONFIG_STRICT_DEVMEM

 arch/riscv/Kconfig          |  1 +
 arch/riscv/include/asm/io.h |  2 ++
 arch/riscv/mm/init.c        | 41 +++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)