linux-stable/arch
Christian Marangi 6c0f6ccd93 mips: bmips: BCM6358: make sure CBR is correctly set
[ Upstream commit ce5cdd3b05 ]

It was discovered that some device have CBR address set to 0 causing
kernel panic when arch_sync_dma_for_cpu_all is called.

This was notice in situation where the system is booted from TP1 and
BMIPS_GET_CBR() returns 0 instead of a valid address and
!!(read_c0_brcm_cmt_local() & (1 << 31)); not failing.

The current check whether RAC flush should be disabled or not are not
enough hence lets check if CBR is a valid address or not.

Fixes: ab327f8acd ("mips: bmips: BCM6358: disable RAC flush for TP1")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-27 13:46:18 +02:00
..
alpha rtc: Add support for configuring the UIP timeout for RTC reads 2024-01-31 16:17:01 -08:00
arc ARC: [plat-hsdk]: Remove misplaced interrupt-cells property 2024-05-02 16:29:23 +02:00
arm ARM: configs: sunxi: Enable DRM_DW_HDMI 2024-06-12 11:03:06 +02:00
arm64 arm64: dts: qcom: sa8155p-adp: fix SDHC2 CD pin configuration 2024-06-21 14:35:39 +02:00
csky work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:12:28 +01:00
hexagon hexagon: vmlinux.lds.S: handle attributes section 2024-04-03 15:19:48 +02:00
ia64
loongarch LoongArch: Fix callchain parse error with kernel tracepoint events again 2024-06-12 11:03:43 +02:00
m68k m68k: mac: Fix reboot hang on Mac IIci 2024-06-12 11:03:17 +02:00
microblaze microblaze: Remove early printk call from cpuinfo-static.c 2024-06-12 11:03:39 +02:00
mips mips: bmips: BCM6358: make sure CBR is correctly set 2024-06-27 13:46:18 +02:00
nios2
openrisc
parisc parisc: Define sigset_t in parisc uapi header 2024-06-16 13:41:41 +02:00
powerpc powerpc/io: Avoid clang null pointer arithmetic warnings 2024-06-27 13:46:16 +02:00
riscv riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context 2024-06-21 14:35:57 +02:00
s390 s390/cpacf: Make use of invalid opcode produce a link error 2024-06-16 13:41:41 +02:00
sh Revert "sh: Handle calling csum_partial with misaligned data" 2024-06-12 11:03:15 +02:00
sparc sparc: move struct termio to asm/termios.h 2024-06-16 13:41:40 +02:00
um um: Fix the declaration of kasan_map_memory 2024-06-12 11:03:48 +02:00
x86 x86/amd_nb: Check for invalid SMN reads 2024-06-21 14:35:54 +02:00
xtensa xtensa: fix MAKE_PC_FROM_RA second argument 2024-06-21 14:35:39 +02:00
.gitignore
Kconfig cpu: Re-enable CPU mitigations by default for !X86 architectures 2024-05-02 16:29:28 +02:00