[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yx7fCL3rMgT4Uh96@curiosity>
Date: Mon, 12 Sep 2022 10:26:00 +0300
From: Sergey Matyukevich <geomatsi@...il.com>
To: Jinyu Tang <tjytimi@....com>
Cc: anup@...infault.org, paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, alexandre.ghiti@...onical.com,
guoren@...nel.org, heiko@...ech.de, akpm@...ux-foundation.org,
panqinglin2020@...as.ac.cn, tongtiangen@...wei.com,
sunnanyong@...wei.com, anshuman.khandual@....com,
atishp@...osinc.com, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, falcon@...ylab.org
Subject: Re: [PATCH v2] riscv: make update_mmu_cache to support asid
Hi Jinyu,
> The `update_mmu_cache` function in riscv flush tlb cache without asid
> information now, which will flush tlbs in other tasks' address space
> even if processor supports asid. So add a new function
> `flush_tlb_local_one_page` to flush local one page whether processor
> supports asid or not,for cases that need to flush local one page like
> function `update_mmu_cache`.
>
> Signed-off-by: Jinyu Tang <tjytimi@....com>
> ---
> RFC V1 -> V2 :
> 1.Rebased on PATCH9 of IPI imporvement series as Anup Patel
> suggestion.
> 2.Make commit log more clear.
>
> arch/riscv/include/asm/pgtable.h | 2 +-
> arch/riscv/include/asm/tlbflush.h | 2 ++
> arch/riscv/mm/tlbflush.c | 11 +++++++++++
> 3 files changed, 14 insertions(+), 1 deletion(-)
Just FYI: I have been looking into the same function w.r.t. to its
ASID/SMP handling. In addition to what your patch is doing with ASID,
I posted experimental change following flush_icache_mm approach. That
patch takes into account other concurrently running harts as well as
possible migration to other harts later on, see:
https://lore.kernel.org/linux-riscv/20220829205219.283543-1-geomatsi@gmail.com/
Regards,
Sergey
Powered by blists - more mailing lists