[RFC PATCH v3 0/2] riscv: pgtable: Add "PBMT" extension supported
guoren at kernel.org
guoren at kernel.org
Mon Jun 14 10:51:05 PDT 2021
From: Guo Ren <guoren at linux.alibaba.com>
These patches are a continuation of "riscv: Add DMA_COHERENT support for
Allwinner D1". Compared with the previous factory-defined hardware
implementation, it now follows the PBMT extension proposal.
V2: https://lore.kernel.org/linux-riscv/1622970249-50770-10-git-send-email-guoren@kernel.org/
V1: https://lore.kernel.org/linux-riscv/1621400656-25678-3-git-send-email-guoren@kernel.org/
Changes since v2:
- Change to PBMT extension proposal
- Add pbmt in dts
- Using img hdr for custom memory types moification
Changes since v1:
- Rebase on linux-5.13-rc4
- Support defconfig for different PTE attributes
Guo Ren (2):
riscv: pgtable: Add custom protection_map init
riscv: pgtable: Add "PBMT" extension supported
arch/riscv/Kconfig | 4 +++
arch/riscv/include/asm/image.h | 6 ++--
arch/riscv/include/asm/pgtable-64.h | 8 +++--
arch/riscv/include/asm/pgtable-bits.h | 55 ++++++++++++++++++++++++++--
arch/riscv/include/asm/pgtable.h | 17 ++++-----
arch/riscv/kernel/head.S | 6 ++++
arch/riscv/mm/init.c | 68 +++++++++++++++++++++++++++++++++++
mm/mmap.c | 4 +++
8 files changed, 149 insertions(+), 19 deletions(-)
--
2.7.4
More information about the linux-riscv
mailing list