powerpc/mm/radix: Add tlbflush routines
Core kernel doesn't track the page size of the VA range that we are invalidating. Hence we end up flushing TLB for the entire mm here. Later patches will improve this. We also don't flush page walk cache separetly instead use RIC=2 when flushing TLB, because we do a MMU gather flush after freeing page table. MMU_NO_CONTEXT is updated for hash. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
676012a66f
commit
1a472c9dba
@@ -72,6 +72,9 @@ void __flush_tlb_power8(unsigned int action)
|
||||
|
||||
void __flush_tlb_power9(unsigned int action)
|
||||
{
|
||||
if (radix_enabled())
|
||||
flush_tlb_206(POWER9_TLB_SETS_RADIX, action);
|
||||
|
||||
flush_tlb_206(POWER9_TLB_SETS_HASH, action);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user