riscv: support update_mmu_tlb() for riscv
PATCH v2 1/1 riscv: support update_mmu_tlb() for riscv
Add macro definition to support updata_mmu_tlb() for riscv, this function is from commit:7df676974359 ("mm/memory.c:Update local TLB if PTE entry exists").
---
v1 -> v2:
Change the format with the help from Andrew Jones and Conor Dooley.
arch/riscv/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+)
arch/riscv/include/asm/pgtable.h +3 -0
@@ -418,6 +418,9 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,local_flush_tlb_page (address); } +#define __HAVE_ARCH_UPDATE_MMU_TLB +#define update_mmu_tlb update_mmu_cache +static inline void update_mmu_cache_pmd (struct vm_area_struct *vma,unsigned long address,pmd_t *pmdp) {
Signature · 7 lines
2.30.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Hey Jinyu,
Firstly, the "for riscv" in the title is redundant and can be dropped.
Quoted 1 line · Jinyu Tang
Add macro definition to support
updata_mmu_tlb()for riscv,
^ s/updata/update/
Quoted 2 lines
this function is from commit:7df676974359 ("mm/memory.c:Update local TLB if PTE entry exists").
So, and this just may be may lack of knowledge showing, but I don't really understand _why_ we need this change. Your commit message should explain why you are making the change rather than just repeating what you are doing since that is obvious from the diff.
Only MIPS seems to have this define, so your commit message needs to explain what it is about RISC-V that means we need it when all bar one arch does not.
Thanks,
Conor.
Quoted 33 lines
Signed-off-by Jinyu Tang <[email protected]>Reviewed-by Andrew Jones <[email protected]>---
v1 -> v2:Change the format with the help from Andrew Jones and Conor Dooley.
arch/riscv/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+)arch/riscv/include/asm/pgtable.h +3
-0@@ -418,6 +418,9 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,local_flush_tlb_page (address); } +#define __HAVE_ARCH_UPDATE_MMU_TLB +#define update_mmu_tlb update_mmu_cache +static inline void update_mmu_cache_pmd (struct vm_area_struct *vma,unsigned long address,pmd_t *pmdp) {Signature · 7 lines
2.30.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv