CVS commit: src/sys/arch/arm

"Izumi Tsutsui" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	tsutsui
Date:		Sun Apr 26 12:49:52 UTC 2026

Modified Files:
	src/sys/arch/arm/broadcom: bcm283x_platform.c
Added Files:
	src/sys/arch/arm/dts: bcm2711-cpus.dtsi bcm2711-rpi-4-b.dts
	    bcm2711-rpi-400.dts bcm2711-rpi-cm4-io.dts

Log Message:
bcm2711: patch cpus "enable-method" in dts and use it on initialization

The upstream bcm2711.dtsi returns "brcm,bcm2836-smp" as "enable-method" on
/cpus node but bcm2711 requires different addresses from bcm2836.

Fixes early panic on Raspberry Pi 4B with earmv7hf MULITIPROCESSOR kernel:

---
[   1.0000000] NetBSD/evbarm (fdt) booting ...
[   1.0000000] [ Kernel symbol table missing! ]
[   1.0000000] Fatal kernel mode prefetch abort at 0x00000000
[   1.0000000] trapframe: 0x80b73ee8, spsr=600001d3
[   1.0000000] r0 =00000000, r1 =f4000000, r2 =0000009c, r3 =01000380
[   1.0000000] r4 =00000000, r5 =807a0484, r6 =00000001, r7 =80a4b180
[   1.0000000] r8 =807a0470, r9 =805baab8, r10=807a0484, r11=80b73f54
[   1.0000000] r12=7f000000, ssp=80b73f38, slr=80011170, pc =00000000

Stopped in pid 0.0 (system) at  0:      address 0x0 is invalid
adchis  r3, r7, r4, lsr #26
db{0}>
---


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/arm/broadcom/bcm283x_platform.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/dts/bcm2711-cpus.dtsi \
    src/sys/arch/arm/dts/bcm2711-rpi-4-b.dts \
    src/sys/arch/arm/dts/bcm2711-rpi-400.dts \
    src/sys/arch/arm/dts/bcm2711-rpi-cm4-io.dts

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.