Re: powerpc/mm/nohash: do not flush the entire mm when range is a single page

2018-01-28 Thread Michael Ellerman
On Tue, 2018-01-23 at 13:22:50 UTC, Christophe Leroy wrote: > Most of the time, flush_tlb_range() is called on single pages. > At the time being, flush_tlb_range() inconditionnaly calls > flush_tlb_mm() which flushes at least the entire PID pages and on > older CPUs like 4xx or 8xx it flushes the e

[PATCH] powerpc/mm/nohash: do not flush the entire mm when range is a single page

2018-01-23 Thread Christophe Leroy
Most of the time, flush_tlb_range() is called on single pages. At the time being, flush_tlb_range() inconditionnaly calls flush_tlb_mm() which flushes at least the entire PID pages and on older CPUs like 4xx or 8xx it flushes the entire TLB table. This patch calls flush_tlb_page() instead of flush