Re: [PATCH V2 2/4] csky: Add new asid lib code from arm

2019-06-21 Thread Guo Ren
Sorry, I forgot delete arm's. It's mistake, no change arm64 file. On Fri, Jun 21, 2019 at 6:10 PM Julien Grall wrote: > > Hi, > > On 21/06/2019 10:39, guo...@kernel.org wrote: > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Cc: Julien Grall > > --- > > arch/arm64/lib/asid.c| 9

Re: [PATCH V2 2/4] csky: Add new asid lib code from arm

2019-06-21 Thread Julien Grall
Hi, On 21/06/2019 10:39, guo...@kernel.org wrote: Signed-off-by: Guo Ren Cc: Arnd Bergmann Cc: Julien Grall --- arch/arm64/lib/asid.c| 9 ++- This change should be in a separate e-mail with the Arm64 maintainers in CC. But you seem to have a copy of the allocator in csky now. So

[PATCH V2 2/4] csky: Add new asid lib code from arm

2019-06-21 Thread guoren
From: Guo Ren This patch only contains asid help code from arm for next patch to use. The asid allocator use five level check to reduce the cost of switch_mm. 1. Check if the asid version is the same (it's general) 2. Check reserved_asid which is set in rollover flush_context() and key po