]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: mm: Suppress TLB uniquification on EHINV hardware
authorMaciej W. Rozycki <macro@orcam.me.uk>
Fri, 27 Mar 2026 18:57:23 +0000 (18:57 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 1 Apr 2026 19:54:10 +0000 (21:54 +0200)
commit74283cfe216392c7b776ebf6045b5b15ed9dffcd
treed446a63ae0b2e21d8705f92457e605462a9b998b
parent8374c2cb83b95b3c92f129fd56527225c20a058c
MIPS: mm: Suppress TLB uniquification on EHINV hardware

Hardware that supports the EHINV feature, mandatory for R6 ISA and FTLB
implementation, lets software mark TLB entries invalid, which eliminates
the need to ensure no duplicate matching entries are ever created.  This
feature is already used by local_flush_tlb_all(), via the UNIQUE_ENTRYHI
macro, making the preceding call to r4k_tlb_uniquify() superfluous.

The next change will also modify uniquification code such that it'll
become incompatible with the FTLB and MMID features, as well as MIPSr6
CPUs that do not implement 4KiB pages.

Therefore prevent r4k_tlb_uniquify() from being used on EHINV hardware,
as denoted by `cpu_has_tlbinv'.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mm/tlb-r4k.c