Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-07-10 Thread Christophe Leroy
Le 10/07/2023 à 22:24, Matthew Wilcox a écrit : > On Sat, Mar 18, 2023 at 09:19:04AM +, Christophe Leroy wrote: >> void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, >> pte_t pte, unsigned int nr) >> { >> pgprot_t prot; >> unsigned long pfn; >>

Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-07-10 Thread Matthew Wilcox
On Sat, Mar 18, 2023 at 09:19:04AM +, Christophe Leroy wrote: > void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, > pte_t pte, unsigned int nr) > { > pgprot_t prot; > unsigned long pfn; > /* >* Make sure hardware valid bit is not set.

Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-03-18 Thread Christophe Leroy
Le 17/03/2023 à 04:47, Matthew Wilcox a écrit : > On Wed, Mar 15, 2023 at 10:18:22AM +, Christophe Leroy wrote: >> I investigated a bit further and can confirm now that the above won't >> always work, see comment >>

Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-03-16 Thread Matthew Wilcox
On Wed, Mar 15, 2023 at 10:18:22AM +, Christophe Leroy wrote: > I investigated a bit further and can confirm now that the above won't > always work, see comment > https://elixir.bootlin.com/linux/v6.3-rc2/source/arch/powerpc/include/asm/nohash/32/pgtable.h#L147 > > And then you see >

Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-03-15 Thread Christophe Leroy
Le 15/03/2023 à 10:43, Christophe Leroy a écrit : > > > Le 15/03/2023 à 06:14, Matthew Wilcox (Oracle) a écrit : >> Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). >> Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to >> per-folio. >> >> Signed-off-by:

Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-03-15 Thread Mike Rapoport
On Wed, Mar 15, 2023 at 05:14:28AM +, Matthew Wilcox (Oracle) wrote: > Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). > Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to > per-folio. > > Signed-off-by: Matthew Wilcox (Oracle) > Cc: Michael Ellerman >

Re: [PATCH v4 20/36] powerpc: Implement the new page table range API

2023-03-15 Thread Christophe Leroy
Le 15/03/2023 à 06:14, Matthew Wilcox (Oracle) a écrit : > Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). > Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to > per-folio. > > Signed-off-by: Matthew Wilcox (Oracle) > Cc: Michael Ellerman > Cc: Nicholas

[PATCH v4 20/36] powerpc: Implement the new page table range API

2023-03-14 Thread Matthew Wilcox (Oracle)
Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to per-folio. Signed-off-by: Matthew Wilcox (Oracle) Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org ---