Re: tlbi va, vaa vs. val, vaal

2015-03-02 Thread Mario Smarduch
On 03/02/2015 08:23 AM, Catalin Marinas wrote: > On Fri, Feb 27, 2015 at 01:15:57PM -0800, Mario Smarduch wrote: >> On 02/27/2015 02:24 AM, Will Deacon wrote: >>> On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of

Re: tlbi va, vaa vs. val, vaal

2015-03-02 Thread Catalin Marinas
On Fri, Feb 27, 2015 at 01:15:57PM -0800, Mario Smarduch wrote: > On 02/27/2015 02:24 AM, Will Deacon wrote: > > On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: > >> I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of > >> val, vaal ones. Reading the manual D.5.7.2 it

Re: tlbi va, vaa vs. val, vaal

2015-02-27 Thread Mario Smarduch
On 02/27/2015 02:24 AM, Will Deacon wrote: > On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: >> I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of >> val, vaal ones. Reading the manual D.5.7.2 it appears that >> va*, vaa* versions invalidate intermediate caching of >

Re: tlbi va, vaa vs. val, vaal

2015-02-27 Thread Marc Zyngier
On 27/02/15 10:33, Will Deacon wrote: > On Fri, Feb 27, 2015 at 10:29:06AM +, Marc Zyngier wrote: >> On 27/02/15 10:24, Will Deacon wrote: >>> On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of val, vaal o

Re: tlbi va, vaa vs. val, vaal

2015-02-27 Thread Will Deacon
On Fri, Feb 27, 2015 at 10:29:06AM +, Marc Zyngier wrote: > On 27/02/15 10:24, Will Deacon wrote: > > On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: > >> I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of > >> val, vaal ones. Reading the manual D.5.7.2 it appear

Re: tlbi va, vaa vs. val, vaal

2015-02-27 Thread Marc Zyngier
On 27/02/15 10:24, Will Deacon wrote: > On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: >> I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of >> val, vaal ones. Reading the manual D.5.7.2 it appears that >> va*, vaa* versions invalidate intermediate caching of >> tra

Re: tlbi va, vaa vs. val, vaal

2015-02-27 Thread Will Deacon
On Fri, Feb 27, 2015 at 12:12:32AM +, Mario Smarduch wrote: > I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of > val, vaal ones. Reading the manual D.5.7.2 it appears that > va*, vaa* versions invalidate intermediate caching of > translation structures. > > With stage2 enable

tlbi va, vaa vs. val, vaal

2015-02-26 Thread Mario Smarduch
I noticed kernel tlbflush.h use tlbi va*, vaa* variants instead of val, vaal ones. Reading the manual D.5.7.2 it appears that va*, vaa* versions invalidate intermediate caching of translation structures. With stage2 enabled that may result in 20+ memory lookups for a 4 level page table walk. That'