riscv: Implement missing huge_ptep_get
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 28 Apr 2023 12:01:20 +0000 (14:01 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 2 Jun 2023 01:15:37 +0000 (18:15 -0700)
commit6966d7988c4fb6af3e395868e9800c07f9e98a30
tree2293c2710a82671789b062a21b366eb30f687837
parent835e5ac3f98e78eca5c512bd48bd1880b90c4eb1
riscv: Implement missing huge_ptep_get

huge_ptep_get must be reimplemented in order to go through all the PTEs
of a NAPOT region: this is needed because the HW can update the A/D bits
of any of the PTE that constitutes the NAPOT region.

Fixes: 82a1a1f3bfb6 ("riscv: mm: support Svnapot in hugetlb page")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20230428120120.21620-2-alexghiti@rivosinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hugetlb.h
arch/riscv/mm/hugetlbpage.c