On Mon, Feb 19, 2018 at 01:49:48PM +0100, Mark Kettenis wrote:
> The diff below attempts to make the arm64 pmap "mpsafe" and enables MP
> support.  This diff survived a full build on my Firefly-RK3399 board.
> It also seems to work on the Overdrive 1000.  It might even work on
> the Raspberry Pi 3.  I'd appreciate it if people could play with this
> on the Raspberry Pi and other arm64 hardware they have.

On rpi3 with the dtb from raspberrypi-firmware-1.20171029

cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
...
cpu1 at mainbus0 mpidr 1: failed to spin up
cpu2 at mainbus0 mpidr 2: failed to spin up
cpu3 at mainbus0 mpidr 3: failed to spin up

hw.ncpu=1
hw.ncpufound=4

As there is no 'enable-method' or 'cpu-release-addr' on cpu nodes.

There is no newer release but with the repository as of
445b6a86faec72eaddb8c4386b87e385e1c338ac 'kernel: Bump to 4.14.18'
these are now present.

    Node 0x3e60
        name: 'cpus'
        #address-cells: 00000001
        #size-cells: 00000000
        enable-method: 'brcm,bcm2836-smp'
        phandle: 00000073

        Node 0x3ebc
            name: 'cpu'
            clock-frequency: 47868c00
            device_type: 'cpu'
            compatible: 'arm,cortex-a53'
            reg: 00000000
            enable-method: 'spin-table'
            cpu-release-addr: 00000000.000000d8
            phandle: 0000002a

cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
...
cpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4
cpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4
cpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4

hw.ncpu=4
hw.ncpufound=4

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/raspberrypi-firmware/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    18 Nov 2017 03:54:11 -0000      1.6
+++ Makefile    19 Feb 2018 13:37:21 -0000
@@ -3,8 +3,10 @@
 COMMENT=       Raspberry Pi firmware
 GH_ACCOUNT=    raspberrypi
 GH_PROJECT=    firmware
-GH_TAGNAME=    1.20171029
-DISTNAME=      ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}
+V=             1.20180210
+GH_COMMIT=     445b6a86faec72eaddb8c4386b87e385e1c338ac
+#DISTNAME=     ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}
+DISTNAME=      ${GH_ACCOUNT}-${GH_PROJECT}-${V}
 
 CATEGORIES=    sysutils
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/raspberrypi-firmware/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo    18 Nov 2017 03:54:11 -0000      1.6
+++ distinfo    19 Feb 2018 13:40:17 -0000
@@ -1,2 +1,2 @@
-SHA256 (raspberrypi-firmware-1.20171029.tar.gz) = 
Rs4oyNh+8ivcxXrBg2yj8E0exvRlgP9aML92s8CCIRc=
-SIZE (raspberrypi-firmware-1.20171029.tar.gz) = 120793811
+SHA256 (raspberrypi-firmware-1.20180210-445b6a86.tar.gz) = 
h5uHJz5R+O57YTPZ367uFXds9FH+S1L41gknjK/MnFY=
+SIZE (raspberrypi-firmware-1.20180210-445b6a86.tar.gz) = 121878108
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/raspberrypi-firmware/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST   18 Aug 2017 02:58:53 -0000      1.5
+++ pkg/PLIST   19 Feb 2018 13:40:36 -0000
@@ -29,6 +29,7 @@ share/raspberrypi-firmware/boot/overlays
 share/raspberrypi-firmware/boot/overlays/allo-digione.dtbo
 share/raspberrypi-firmware/boot/overlays/allo-piano-dac-pcm512x-audio.dtbo
 share/raspberrypi-firmware/boot/overlays/allo-piano-dac-plus-pcm512x-audio.dtbo
+share/raspberrypi-firmware/boot/overlays/applepi-dac.dtbo
 share/raspberrypi-firmware/boot/overlays/at86rf233.dtbo
 share/raspberrypi-firmware/boot/overlays/audioinjector-addons.dtbo
 share/raspberrypi-firmware/boot/overlays/audioinjector-wm8731-audio.dtbo
@@ -43,10 +44,13 @@ share/raspberrypi-firmware/boot/overlays
 share/raspberrypi-firmware/boot/overlays/dwc2.dtbo
 share/raspberrypi-firmware/boot/overlays/enc28j60-spi2.dtbo
 share/raspberrypi-firmware/boot/overlays/enc28j60.dtbo
+share/raspberrypi-firmware/boot/overlays/exc3000.dtbo
 share/raspberrypi-firmware/boot/overlays/fe-pi-audio.dtbo
 share/raspberrypi-firmware/boot/overlays/goodix.dtbo
 share/raspberrypi-firmware/boot/overlays/googlevoicehat-soundcard.dtbo
+share/raspberrypi-firmware/boot/overlays/gpio-ir-tx.dtbo
 share/raspberrypi-firmware/boot/overlays/gpio-ir.dtbo
+share/raspberrypi-firmware/boot/overlays/gpio-key.dtbo
 share/raspberrypi-firmware/boot/overlays/gpio-poweroff.dtbo
 share/raspberrypi-firmware/boot/overlays/gpio-shutdown.dtbo
 share/raspberrypi-firmware/boot/overlays/hifiberry-amp.dtbo
@@ -72,11 +76,14 @@ share/raspberrypi-firmware/boot/overlays
 share/raspberrypi-firmware/boot/overlays/justboom-dac.dtbo
 share/raspberrypi-firmware/boot/overlays/justboom-digi.dtbo
 share/raspberrypi-firmware/boot/overlays/lirc-rpi.dtbo
+share/raspberrypi-firmware/boot/overlays/mbed-dac.dtbo
 share/raspberrypi-firmware/boot/overlays/mcp23017.dtbo
 share/raspberrypi-firmware/boot/overlays/mcp23s17.dtbo
 share/raspberrypi-firmware/boot/overlays/mcp2515-can0.dtbo
 share/raspberrypi-firmware/boot/overlays/mcp2515-can1.dtbo
 share/raspberrypi-firmware/boot/overlays/mcp3008.dtbo
+share/raspberrypi-firmware/boot/overlays/mcp3202.dtbo
+share/raspberrypi-firmware/boot/overlays/media-center.dtbo
 share/raspberrypi-firmware/boot/overlays/midi-uart0.dtbo
 share/raspberrypi-firmware/boot/overlays/midi-uart1.dtbo
 share/raspberrypi-firmware/boot/overlays/mmc.dtbo
@@ -96,6 +103,7 @@ share/raspberrypi-firmware/boot/overlays
 share/raspberrypi-firmware/boot/overlays/pitft35-resistive.dtbo
 share/raspberrypi-firmware/boot/overlays/pps-gpio.dtbo
 share/raspberrypi-firmware/boot/overlays/pwm-2chan.dtbo
+share/raspberrypi-firmware/boot/overlays/pwm-ir-tx.dtbo
 share/raspberrypi-firmware/boot/overlays/pwm.dtbo
 share/raspberrypi-firmware/boot/overlays/qca7000.dtbo
 share/raspberrypi-firmware/boot/overlays/raspidac3.dtbo
@@ -129,6 +137,7 @@ share/raspberrypi-firmware/boot/overlays
 share/raspberrypi-firmware/boot/overlays/spi2-2cs.dtbo
 share/raspberrypi-firmware/boot/overlays/spi2-3cs.dtbo
 share/raspberrypi-firmware/boot/overlays/tinylcd35.dtbo
+share/raspberrypi-firmware/boot/overlays/uart0.dtbo
 share/raspberrypi-firmware/boot/overlays/uart1.dtbo
 share/raspberrypi-firmware/boot/overlays/vc4-fkms-v3d.dtbo
 share/raspberrypi-firmware/boot/overlays/vc4-kms-v3d.dtbo

Reply via email to