Files
linux-stable-mirror/arch/mips/mm
Jiaxun Yang 1beca07bd9 MIPS: mm: tlb-r4k: Uniquify TLB entries on init
commit 35ad7e1815 upstream.

Hardware or bootloader will initialize TLB entries to any value, which
may collide with kernel's UNIQUE_ENTRYHI value. On MIPS microAptiv/M5150
family of cores this will trigger machine check exception and cause boot
failure. On M5150 simulation this could happen 7 times out of 1000 boots.

Replace local_flush_tlb_all() with r4k_tlb_uniquify() which probes each
TLB ENTRIHI unique value for collisions before it's written, and in case
of collision try a different ASID.

Cc: stable@kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-15 12:14:13 +02:00
..
2024-07-03 19:29:59 -07:00
2024-01-08 10:39:12 +01:00
2024-04-25 20:55:47 -07:00
2024-02-20 12:41:52 +01:00
2024-02-20 12:41:52 +01:00