[PATCH v3 6/6] ARM: mm: Change the order of TLB/cache maintenance operations.
Santosh Shilimkar
santosh.shilimkar at ti.com
Fri Oct 4 09:19:36 EDT 2013
On Friday 04 October 2013 09:14 AM, Nicolas Pitre wrote:
> On Fri, 4 Oct 2013, Russell King - ARM Linux wrote:
>
>> On Thu, Oct 03, 2013 at 05:18:00PM -0400, Santosh Shilimkar wrote:
>>> From: Sricharan R <r.sricharan at ti.com>
>>>
>>> As per the arm ARMv7 manual, the sequence of TLB maintenance
>>> operations after making changes to the translation table is
>>> to clean the dcache first, then invalidate the TLB. With
>>> the current sequence we see cache corruption when the
>>> flush_cache_all is called after tlb_flush_all.
>>
>> This needs testing on ARMv4 CPUs which don't have a way to flush the
>> cache except by reading memory - hence they need the new page table
>> entries to be visible to the MMU before calling flush_cache_all().
>
> I suspect you might be one of the few individuals still having the
> ability to test new kernels on ARMv4 CPUs.
>
At least I don't have any ARMv4 based system to validate it.
Regards,
Santosh
More information about the linux-arm-kernel
mailing list