Re: [PATCH v4] RISC-V: Implement ASID allocator

2021-02-02 Thread Anup Patel
On Wed, Feb 3, 2021 at 7:58 AM Palmer Dabbelt wrote: > > On Thu, 21 Jan 2021 05:50:16 PST (-0800), Anup Patel wrote: > > Currently, we do local TLB flush on every MM switch. This is very harsh on > > performance because we are forcing page table walks after every MM switch. > > > > This patch impl

Re: [PATCH v4] RISC-V: Implement ASID allocator

2021-02-02 Thread Palmer Dabbelt
On Thu, 21 Jan 2021 05:50:16 PST (-0800), Anup Patel wrote: Currently, we do local TLB flush on every MM switch. This is very harsh on performance because we are forcing page table walks after every MM switch. This patch implements ASID allocator for assigning an ASID to a MM context. The number

[PATCH v4] RISC-V: Implement ASID allocator

2021-01-21 Thread Anup Patel
Currently, we do local TLB flush on every MM switch. This is very harsh on performance because we are forcing page table walks after every MM switch. This patch implements ASID allocator for assigning an ASID to a MM context. The number of ASIDs are limited in HW so we create a logical entity name