Re: [PATCH v2 2/4] powerpc/mm/radix: Improve TLB/PWC flushes

2017-07-19 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > At the moment we have to rather sub-optimal flushing behaviours: > > - flush_tlb_mm() will flush the PWC which is unnecessary (for example >when doing a fork) > > - A large unmap will call flush_tlb_pwc() multiple times causing us

[PATCH v2 2/4] powerpc/mm/radix: Improve TLB/PWC flushes

2017-07-18 Thread Benjamin Herrenschmidt
At the moment we have to rather sub-optimal flushing behaviours: - flush_tlb_mm() will flush the PWC which is unnecessary (for example when doing a fork) - A large unmap will call flush_tlb_pwc() multiple times causing us to perform that fairly expensive operation repeatedly. This