Skip to contentSkip to conversation

powerpc/mm/radix: Add missing tlb flush

PATCH In review Aneesh Kumar K.V 2 participants 2 messages May 11, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/mm/radix: Add missing tlb flush

This should not have any impact on hash, because hash does tlb invalidate with every pte update and we don't implement flush_tlb_* functions for hash. With radix we should make an explicit call to flush tlb outside pte update.

---
 arch/powerpc/mm/pgtable-book3s64.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/powerpc/mm/pgtable-book3s64.c +1 -4
index eb4451144746..670318766545 100644
@@ -33,10 +33,7 @@ int pmdp_set_access_flags(struct vm_area_struct *vma, unsigned long address,
 	changed = !pmd_same(*(pmdp), entry);
 	if (changed) {
 		__ptep_set_access_flags(pmdp_ptep(pmdp), pmd_pte(entry));
-		/*
-		 * Since we are not supporting SW TLB systems, we don't
-		 * have any thing similar to flush_tlb_page_nohash()
-		 */
+		flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
 	}
 	return changed;
 }
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw

arch/powerpc/mm/pgtable-book3s64.c int pmdp_set_access_flags(struct vm_area_struct *vma, unsigned long address, · line 36

Quoted 7 lines · Aneesh Kumar K.V

This should not have any impact on hash, because hash does tlb invalidate with every pte update and we don't implement flush_tlb_* functions for hash. With radix we should make an explicit call to flush tlb outside pte update.

arch/powerpc/mm/pgtable-book3s64.c +1 -0
+		flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);