]> www.infradead.org Git - users/willy/pagecache.git/commit
loongarch: Implement the new page table range API
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 13 Feb 2023 19:12:22 +0000 (14:12 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Aug 2023 19:14:17 +0000 (15:14 -0400)
commitff328823ef4a2b71f3dde070b1e477273ab1ffe0
tree15b3000724a0902e801f63621c3cca866899748b
parent510c6f91f940c3f9b46b7193c69790880d82b11a
loongarch: Implement the new page table range API

Add update_mmu_cache_range() and change _PFN_SHIFT to PFN_PTE_SHIFT.
It would probably be more efficient to implement __update_tlb() by
flushing the entire folio instead of calling __update_tlb() N times,
but I'll leave that for someone who understands the architecture better.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: WANG Xuerui <kernel@xen0n.name>
Cc: loongarch@lists.linux.dev
arch/loongarch/include/asm/cacheflush.h
arch/loongarch/include/asm/pgtable-bits.h
arch/loongarch/include/asm/pgtable.h
arch/loongarch/mm/pgtable.c
arch/loongarch/mm/tlb.c