Message ID | 20230110080419.931185-1-guoren@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 6be1ff430dab9fc047762b10b2c9669399ea1f37 |
Delegated to: | Palmer Dabbelt |
Headers | show |
Series | riscv: pgtable: Fixup comment for KERN_VIRT_SIZE | expand |
Context | Check | Description |
---|---|---|
conchuod/patch_count | success | Link |
conchuod/cover_letter | success | Single patches do not need cover letters |
conchuod/tree_selection | success | Guessed tree name to be fixes |
conchuod/fixes_present | success | Fixes tag present in non-next series |
conchuod/maintainers_pattern | success | MAINTAINERS pattern errors before the patch: 13 and now 13 |
conchuod/verify_signedoff | success | Signed-off-by tag matches author and committer |
conchuod/kdoc | success | Errors and warnings before: 0 this patch: 0 |
conchuod/module_param | success | Was 0 now: 0 |
conchuod/alphanumeric_selects | success | Out of order selects before the patch: 57 and now 57 |
conchuod/build_rv32_defconfig | success | Build OK |
conchuod/build_warn_rv64 | success | Errors and warnings before: 2054 this patch: 2054 |
conchuod/dtb_warn_rv64 | success | Errors and warnings before: 4 this patch: 4 |
conchuod/header_inline | success | No static functions without inline keyword in header files |
conchuod/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
conchuod/source_inline | success | Was 0 now: 0 |
conchuod/build_rv64_nommu_k210_defconfig | success | Build OK |
conchuod/verify_fixes | success | Fixes tag looks correct |
conchuod/build_rv64_nommu_virt_defconfig | success | Build OK |
Hi Guo, On 1/10/23 09:04, guoren@kernel.org wrote: > From: Guo Ren <guoren@linux.alibaba.com> > > KERN_VIRT_SIZE is 1/4 of the entries of the page global directory, > not half. > > Fixes: f7ae02333d13 ("riscv: Move KASAN mapping next to the kernel mapping") > Signed-off-by: Guo Ren <guoren@linux.alibaba.com> > Signed-off-by: Guo Ren <guoren@kernel.org> > Cc: Alexandre Ghiti <alexandre.ghiti@canonical.com> > --- > arch/riscv/include/asm/pgtable.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h > index 4eba9a98d0e3..2a88362dffa5 100644 > --- a/arch/riscv/include/asm/pgtable.h > +++ b/arch/riscv/include/asm/pgtable.h > @@ -31,7 +31,7 @@ > #define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) > > /* > - * Half of the kernel address space (half of the entries of the page global > + * Half of the kernel address space (1/4 of the entries of the page global Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Thanks, Alex > * directory) is for the direct mapping. > */ > #define KERN_VIRT_SIZE ((PTRS_PER_PGD / 2 * PGDIR_SIZE) / 2)
On Tue, 10 Jan 2023 03:04:19 -0500, guoren@kernel.org wrote: > From: Guo Ren <guoren@linux.alibaba.com> > > KERN_VIRT_SIZE is 1/4 of the entries of the page global directory, > not half. > > Applied, thanks! [1/1] riscv: pgtable: Fixup comment for KERN_VIRT_SIZE https://git.kernel.org/palmer/c/6be1ff430dab Best regards,
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <palmer@rivosinc.com>: On Tue, 10 Jan 2023 03:04:19 -0500 you wrote: > From: Guo Ren <guoren@linux.alibaba.com> > > KERN_VIRT_SIZE is 1/4 of the entries of the page global directory, > not half. > > Fixes: f7ae02333d13 ("riscv: Move KASAN mapping next to the kernel mapping") > Signed-off-by: Guo Ren <guoren@linux.alibaba.com> > Signed-off-by: Guo Ren <guoren@kernel.org> > Cc: Alexandre Ghiti <alexandre.ghiti@canonical.com> > > [...] Here is the summary with links: - riscv: pgtable: Fixup comment for KERN_VIRT_SIZE https://git.kernel.org/riscv/c/6be1ff430dab You are awesome, thank you!
diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index 4eba9a98d0e3..2a88362dffa5 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -31,7 +31,7 @@ #define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) /* - * Half of the kernel address space (half of the entries of the page global + * Half of the kernel address space (1/4 of the entries of the page global * directory) is for the direct mapping. */ #define KERN_VIRT_SIZE ((PTRS_PER_PGD / 2 * PGDIR_SIZE) / 2)