Message ID | 20230920035522.3180558-3-peterlin@andestech.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v3,1/3] riscv: Improve PTDUMP to show RSW with non-zero value | expand |
Context | Check | Description |
---|---|---|
conchuod/cover_letter | warning | Series does not have a cover letter |
conchuod/tree_selection | success | Guessed tree name to be for-next at HEAD 0bb80ecc33a8 |
conchuod/fixes_present | success | Fixes tag not required for -next series |
conchuod/maintainers_pattern | success | MAINTAINERS pattern errors before the patch: 5 and now 5 |
conchuod/verify_signedoff | success | Signed-off-by tag matches author and committer |
conchuod/kdoc | success | Errors and warnings before: 0 this patch: 0 |
conchuod/build_rv64_clang_allmodconfig | success | Errors and warnings before: 9 this patch: 9 |
conchuod/module_param | success | Was 0 now: 0 |
conchuod/build_rv64_gcc_allmodconfig | success | Errors and warnings before: 9 this patch: 9 |
conchuod/build_rv32_defconfig | success | Build OK |
conchuod/dtb_warn_rv64 | success | Errors and warnings before: 29 this patch: 29 |
conchuod/header_inline | success | No static functions without inline keyword in header files |
conchuod/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 10 lines checked |
conchuod/build_rv64_nommu_k210_defconfig | success | Build OK |
conchuod/verify_fixes | success | No Fixes tag |
conchuod/build_rv64_nommu_virt_defconfig | success | Build OK |
On 20/09/2023 05:55, Yu Chien Peter Lin wrote: > This patch introduces the NAPOT field to PTDUMP, allowing it > to display the letter "N" for pages that have the 63rd bit set. > > Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> > --- > Changes v1 -> v3 > - no change > --- > arch/riscv/mm/ptdump.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c > index 13997cf3fe36..b71f08b91e53 100644 > --- a/arch/riscv/mm/ptdump.c > +++ b/arch/riscv/mm/ptdump.c > @@ -136,6 +136,10 @@ struct prot_bits { > static const struct prot_bits pte_bits[] = { > { > #ifdef CONFIG_64BIT > + .mask = _PAGE_NAPOT, > + .set = "N", > + .clear = ".", > + }, { > .mask = _PAGE_MTMASK_SVPBMT, > .set = "MT(%s)", > .clear = " .. ", Nice to see that we actually transparently use napot mappings: ---[ PCI I/O start ]--- 0xffff8d7fff000000-0xffff8d7fff010000 0x0000000003000000 64K PTE N .. .. D A G . . W R V You can add: Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com> Thanks for the series, really appreciated! Alex
diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c index 13997cf3fe36..b71f08b91e53 100644 --- a/arch/riscv/mm/ptdump.c +++ b/arch/riscv/mm/ptdump.c @@ -136,6 +136,10 @@ struct prot_bits { static const struct prot_bits pte_bits[] = { { #ifdef CONFIG_64BIT + .mask = _PAGE_NAPOT, + .set = "N", + .clear = ".", + }, { .mask = _PAGE_MTMASK_SVPBMT, .set = "MT(%s)", .clear = " .. ",
This patch introduces the NAPOT field to PTDUMP, allowing it to display the letter "N" for pages that have the 63rd bit set. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> --- Changes v1 -> v3 - no change --- arch/riscv/mm/ptdump.c | 4 ++++ 1 file changed, 4 insertions(+)