linux-yocto/arch
Jiaxun Yang d98b34c40d 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:09:08 +02:00
..
alpha alpha/elf: Fix misc/setarch test of util-linux by removing 32bit support 2025-03-22 12:50:41 -07:00
arc
arm crypto: arm/aes-neonbs - work around gcc-15 warning 2025-08-15 12:08:52 +02:00
arm64 arm64: dts: imx8mn-beacon: Fix HS400 USDHC clock speed 2025-08-15 12:08:43 +02:00
csky
hexagon hexagon: Fix unbalanced spinlock in die() 2025-02-08 09:52:34 +01:00
ia64
loongarch LoongArch: Fix panic caused by NULL-PMD in huge_pte_offset() 2025-06-27 11:08:58 +01:00
m68k m68k: Don't unregister boot console needlessly 2025-08-15 12:08:46 +02:00
microblaze
mips MIPS: mm: tlb-r4k: Uniquify TLB entries on init 2025-08-15 12:09:08 +02:00
nios2
openrisc
parisc parisc: fix building with gcc-15 2025-06-27 11:08:48 +01:00
powerpc PCI: pnv_php: Fix surprise plug detection and recovery 2025-08-15 12:09:01 +02:00
riscv RISC-V: KVM: Don't treat SBI HFENCE calls as NOPs 2025-06-27 11:09:04 +01:00
s390 s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again 2025-07-24 08:53:14 +02:00
sh sh: Do not use hyphen in exported variable name 2025-08-15 12:08:56 +02:00
sparc sparc/mm: avoid calling arch_enter/leave_lazy_mmu() in set_ptes 2025-04-25 10:45:30 +02:00
um um: rtc: Avoid shadowing err in uml_rtc_start() 2025-08-15 12:08:47 +02:00
x86 x86/fpu: Delay instruction pointer fixup until after warning 2025-08-15 12:09:08 +02:00
xtensa
.gitignore
Kconfig