mirror-linux/arch/mips
Masami Hiramatsu (Google) a494d3c8d5 ring-buffer: Flush and stop persistent ring buffer on panic
On real hardware, panic and machine reboot may not flush hardware cache
to memory. This means the persistent ring buffer, which relies on a
coherent state of memory, may not have its events written to the buffer
and they may be lost. Moreover, there may be inconsistency with the
counters which are used for validation of the integrity of the
persistent ring buffer which may cause all data to be discarded.

To avoid this issue, stop recording of the ring buffer on panic and
flush the cache of the ring buffer's memory.

Fixes: e645535a95 ("tracing: Add option to use memmapped memory for trace boot instance")
Cc: stable@vger.kernel.org
Cc: Will Deacon <will@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Ian Rogers <irogers@google.com>
Link: https://patch.msgid.link/177751969602.2136606.12031934362587643488.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2026-05-21 08:20:58 -04:00
..
alchemy Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ath25 MIPS: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
ath79
bcm47xx Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bcm63xx treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
bmips
boot MIPS: Add Mobileye EyeQ6Lplus evaluation board dts 2026-04-13 15:31:41 +02:00
cavium-octeon Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cobalt
configs Delete some obsolete networking code 2026-04-24 09:41:58 -07:00
crypto lib/crypto: mips/md5: Migrate optimized code into library 2025-08-26 12:52:28 -04:00
dec MIPS: DEC: Rate-limit memory errors for non-KN01 parity systems 2026-04-06 14:02:24 +02:00
econet mips: dts: Add PCIe to EcoNet EN751221 2026-04-06 14:05:02 +02:00
fw MIPS: arc: Replace deprecated strcpy() with memcpy() 2025-08-29 22:34:30 +02:00
generic MIPS: generic: Replace deprecated strcpy() in ocelot_detect() 2025-08-29 22:34:30 +02:00
include ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
ingenic
jazz MIPS/jazzdma: Provide physical address directly 2025-10-29 10:27:30 +01:00
kernel Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
kvm KVM generic changes for 7.0 2026-03-11 18:01:55 +01:00
lantiq Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lib MIPS: Fix the GCC version check for `__multi3' workaround 2026-04-01 21:53:18 +02:00
loongson2ef MIPS: Loongson2ef: Use pcibios_align_resource() to block io range 2026-02-05 10:00:37 +01:00
loongson32 MIPS: loongson32: Switch to generic core 2025-08-29 22:34:31 +02:00
loongson64 Updates for the interrupt chip driver subsystem: 2026-04-14 10:18:10 -07:00
math-emu mips: math-emu: replace deprecated strcpy() in me-debugfs 2025-09-12 11:56:06 +02:00
mm mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
mobileye MIPS: Add Mobileye EyeQ6Lplus support 2026-04-13 15:31:40 +02:00
mti-malta MIPS: Malta: Fix !EVA SOC-it PCI MMIO 2025-11-11 12:58:49 +01:00
n64
net bpf: Pass bpf_verifier_env to JIT 2026-04-16 07:03:40 -07:00
pci Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
pic32 irqchip/irq-pic32-evic: Allow driver to be compiled with COMPILE_TEST 2026-02-24 08:15:44 +01:00
power
ralink mips: ralink: update CPU clock index 2026-04-01 21:51:02 +02:00
rb532 MIPS/mtd: Handle READY GPIO in generic NAND platform data 2026-04-13 15:41:56 +02:00
sgi-ip22 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sgi-ip27 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sgi-ip30 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sgi-ip32 MIPS: sgi-ip32: Replace deprecated strcpy() in plat_mem_setup() 2025-08-29 22:34:30 +02:00
sibyte
sni MIPS: sni: Replace deprecated strcpy() in sni_console_setup() 2025-08-29 22:34:30 +02:00
tools
txx9 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vdso MIPS: vdso: Provide getres_time64() for 32-bit ABIs 2026-01-13 14:42:23 +01:00
Kbuild
Kbuild.platforms mips: Add EcoNet MIPS platform support 2025-05-20 08:46:58 +02:00
Kconfig MIPS: Don't select CLOCKSOURCE_WATCHDOG 2026-03-12 12:23:26 +01:00
Kconfig.debug
Makefile checksyscalls: move instance functionality into generic code 2026-04-05 09:21:32 +02:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00