Re: [PATCH 2/2] powerpc: thp: invalidate old 64K based hash page mapping before insert

2014-07-22 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Tue, 2014-07-15 at 20:22 +0530, Aneesh Kumar K.V wrote: >> If we changed base page size of the segment, either via sub_page_protect >> or via remap_4k_pfn, we do a demote_segment which doesn't flush the hash >> table entries. We do that when inserting a new has

Re: [PATCH 2/2] powerpc: thp: invalidate old 64K based hash page mapping before insert

2014-07-21 Thread Benjamin Herrenschmidt
On Tue, 2014-07-15 at 20:22 +0530, Aneesh Kumar K.V wrote: > If we changed base page size of the segment, either via sub_page_protect > or via remap_4k_pfn, we do a demote_segment which doesn't flush the hash > table entries. We do that when inserting a new hash pte by checking the > _PAGE_COMBO fl

[PATCH 2/2] powerpc: thp: invalidate old 64K based hash page mapping before insert

2014-07-15 Thread Aneesh Kumar K.V
If we changed base page size of the segment, either via sub_page_protect or via remap_4k_pfn, we do a demote_segment which doesn't flush the hash table entries. We do that when inserting a new hash pte by checking the _PAGE_COMBO flag. We missed to do that when inserting hash for a new 16MB page. A