[PATCH 1/1] arm64: TLB maintainance: Implement flush_kern_tlb_page

Ritesh Harjani ritesh.harjani at gmail.com
Mon May 19 04:07:07 PDT 2014


On Mon, May 19, 2014 at 4:31 PM, Catalin Marinas
<catalin.marinas at arm.com> wrote:
> On Mon, May 19, 2014 at 11:54:31AM +0100, Ritesh Harjani wrote:
>> On Mon, May 19, 2014 at 4:16 PM, Catalin Marinas
>> <catalin.marinas at arm.com> wrote:
>> > On Mon, May 19, 2014 at 11:34:25AM +0100, ritesh.harjani at gmail.com wrote:
>> >> From: Ritesh Harjani <ritesh.harjani at gmail.com>
>> >>
>> >> Implement flush_kern_tlb_page mentioned in the header
>> >> comment of arch/arm64/include/asm/tlbflush.h
>> >
>> > Alternatively, clean-up the comment.
>>
>> You mean this function is of no use ? Or there are other plans which
>> might require clean up of this file ?
>
> Since we don't have it and the kernel builds fine, I guess we don't need
> it.
Ok.

>
>> Also, could you please confirm whether the implementation of the
>> function is correct ?
>>
>> >> +       asm("tlbi       vae1is, %0" : : "r" (addr));
>>
>> Should following instruction be more appropriate instead of above:
>> asm("tlbi       vaae1is, %0" : : "r" (addr));
>
> You should use the vaae1is variant for all ASIDs since it's a global
> mapping (see flush_tlb_kernel_range()).

Yes!!, ok thanks!!.

>
> --
> Catalin


Thanks
Ritesh



More information about the linux-arm-kernel mailing list