[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220906144126.3enx6y2mhevrc4ur@kamzik>
Date: Tue, 6 Sep 2022 16:41:26 +0200
From: Andrew Jones <ajones@...tanamicro.com>
To: Jinyu Tang <tjytimi@....com>
Cc: paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, conor.dooley@...rochip.com,
anup@...infault.org, alexandre.ghiti@...onical.com,
guoren@...nel.org, akpm@...ux-foundation.org, heiko@...ech.de,
tongtiangen@...wei.com, sunnanyong@...wei.com,
linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
falcon@...ylab.org
Subject: Re: [PATCH v1] riscv : support update_mmu_tlb() for riscv
On Tue, Sep 06, 2022 at 08:19:21PM +0800, Jinyu Tang wrote:
> 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").
>
> Signed-off-by: Jinyu Tang <tjytimi@....com>
> ---
> arch/riscv/include/asm/pgtable.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
> index 7ec936910a96..84a791d54f95 100644
> --- a/arch/riscv/include/asm/pgtable.h
> +++ b/arch/riscv/include/asm/pgtable.h
> @@ -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
^ just a single space here, please, as all the other
'define __HAVE's in this file
> +#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)
> {
> --
> 2.30.2
This seems like the right thing to do, so
Reviewed-by: Andrew Jones <ajones@...tanamicro.com>
I'm curious if this patch is the result of debugging something? Or what
led you to post it?
Thanks,
drew
Powered by blists - more mailing lists