Re: [RESEND PATCH v5 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-07-10 Thread Catalin Marinas
On Fri, Jul 10, 2020 at 09:20:59AM +0800, Zhenyu Ye wrote: > On 2020/7/10 0:48, Catalin Marinas wrote: > > On Thu, Jun 25, 2020 at 04:03:11PM +0800, Zhenyu Ye wrote: > >> @@ -189,8 +195,9 @@ static inline void flush_tlb_page_nosync(struct > >> vm_area_struct *vma, > >>unsigned long addr = __TL

Re: [RESEND PATCH v5 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-07-09 Thread Zhenyu Ye
Hi Catalin, On 2020/7/10 0:48, Catalin Marinas wrote: > On Thu, Jun 25, 2020 at 04:03:11PM +0800, Zhenyu Ye wrote: >> @@ -189,8 +195,9 @@ static inline void flush_tlb_page_nosync(struct >> vm_area_struct *vma, >> unsigned long addr = __TLBI_VADDR(uaddr, ASID(vma->vm_mm)); >> >> dsb(is

Re: [RESEND PATCH v5 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-07-09 Thread Catalin Marinas
On Thu, Jun 25, 2020 at 04:03:11PM +0800, Zhenyu Ye wrote: > @@ -189,8 +195,9 @@ static inline void flush_tlb_page_nosync(struct > vm_area_struct *vma, > unsigned long addr = __TLBI_VADDR(uaddr, ASID(vma->vm_mm)); > > dsb(ishst); > - __tlbi(vale1is, addr); > - __tlbi_user(val

[RESEND PATCH v5 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-06-25 Thread Zhenyu Ye
Add a level-hinted parameter to __tlbi_user, which only gets used if ARMv8.4-TTL gets detected. ARMv8.4-TTL provides the TTL field in tlbi instruction to indicate the level of translation table walk holding the leaf entry for the address that is being invalidated. This patch set the default level