Messages in this thread Patch in this message | | | From | guoren@kernel ... | Subject | [PATCH 1/3] riscv: Fixup _PAGE_GLOBAL in _PAGE_KERNEL | Date | Mon, 24 May 2021 06:51:06 +0000 |
| |
From: Guo Ren <guoren@linux.alibaba.com>
Kernel virtual address translation should avoid care asid or it'll cause more TLB-miss and TLB-refill. Because the current asid in satp belongs to the current process, but the target kernel va TLB entry's asid still belongs to the previous process.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Anup Patel <anup.patel@wdc.com> Cc: Palmer Dabbelt <palmerdabbelt@google.com> --- arch/riscv/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index 78f2323..017da15 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -135,6 +135,7 @@ | _PAGE_PRESENT \ | _PAGE_ACCESSED \ | _PAGE_DIRTY \ + | _PAGE_GLOBAL \ | _PAGE_CACHE) #define PAGE_KERNEL __pgprot(_PAGE_KERNEL) -- 2.7.4
| |