]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: enable HAVE_IOREMAP_PROT
authorYufeng Wang <wangyufeng@kylinos.cn>
Sat, 4 Apr 2026 01:28:47 +0000 (19:28 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 5 Apr 2026 00:42:44 +0000 (18:42 -0600)
commitd1f014012571323f3857873d94c2abf9343ef62d
tree4388b201af9afb5938f0c4bc7b81d6993e3beb66
parentb0217d97eeeaca199eff23102b3fa72ea8c4ddea
riscv: enable HAVE_IOREMAP_PROT

RISC-V has implemented pte_pgprot() and selects GENERIC_IOREMAP,
which provides a generic ioremap_prot() implementation. Enable
HAVE_IOREMAP_PROT to activate generic_access_phys() support, which
is useful for debugging (e.g., accessing /dev/mem via gdb).

Also update the architecture support documentation accordingly.

Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
Link: https://patch.msgid.link/20260306112734.108186-1-r4o5m6e8o@163.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Documentation/features/vm/ioremap_prot/arch-support.txt
arch/riscv/Kconfig