]> www.infradead.org Git - users/dwmw2/linux.git/commit
riscv: mm: update T-Head memory type definitions
authorJisheng Zhang <jszhang@kernel.org>
Tue, 12 Sep 2023 07:25:10 +0000 (15:25 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 5 Nov 2023 22:17:32 +0000 (14:17 -0800)
commitdbfbda3bd6bfb5189e05b9eab8dfaad2d1d23f62
tree6e060bdb361e53e90fa4048eadb038e8dcf260bf
parent7f00a975005f5656ee2bf656bab1c1657c587e2b
riscv: mm: update T-Head memory type definitions

Update T-Head memory type definitions according to C910 doc [1]
For NC and IO, SH property isn't configurable, hardcoded as SH,
so set SH for NOCACHE and IO.

And also set bit[61](Bufferable) for NOCACHE according to the
table 6.1 in the doc [1].

Link: https://github.com/T-head-Semi/openc910
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Guo Ren <guoren@kernel.org>
Tested-by: Drew Fustini <dfustini@baylibre.com>
Link: https://lore.kernel.org/r/20230912072510.2510-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable-64.h