]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Reduce TLB flushes during hugepte changes
authorNitin Gupta <nitin.m.gupta@oracle.com>
Thu, 26 May 2016 21:56:19 +0000 (14:56 -0700)
committerAllen Pais <allen.pais@oracle.com>
Thu, 15 Sep 2016 06:35:28 +0000 (12:05 +0530)
commitaab75e36279f2b011d43b47784720af2e49aece5
tree64e13b747fefcffeb4555fa922bc5256d84ef992
parent199085e7e27afdd156bd137f60b354c61c34bba8
sparc64: Reduce TLB flushes during hugepte changes

During hugepage map/unmap, TSB and TLB flushes are currently
issued at every PAGE_SIZE'd boundary which is unnecessary.
We now issue the flush at REAL_HPAGE_SIZE boundaries only.

Without this patch workloads which unmap a large hugepage
backed VMA region get CPU lockups due to excessive TLB
flush calls.

Orabug: 23071722

Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
(cherry picked from commit b42a694198cca38e8cdb3f601266bf591ba3291d)
(cherry picked from commit fdc7f39ae632a9ec0114c59090131d2db7dd7682)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/pgtable_64.h
arch/sparc/include/asm/tlbflush_64.h
arch/sparc/mm/hugetlbpage.c
arch/sparc/mm/init_64.c
arch/sparc/mm/tlb.c
arch/sparc/mm/tsb.c