From nobody Thu Jun 02 14:54:45 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B45C11B67DA1 for ; Thu, 2 Jun 2022 14:54:55 +0000 (UTC) (envelope-from SRS0=Sll2=WJ=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LDTZQ4FsBz4nfW for ; Thu, 2 Jun 2022 14:54:54 +0000 (UTC) (envelope-from SRS0=Sll2=WJ=klop.ws=ronald-lists@realworks.nl) Date: Thu, 2 Jun 2022 16:54:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1654181686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XV5PtZT1H9xdVdUZBN5qYkxQ5X43mpsdzqzkNdaSg9o=; b=PtpgRxrIsn57XTDtWHQBwlssRVr+ti9HHNWvpqOLaXv5v+n2xOCa5XKrATNy1+UZLY24Ks zUNEdPRdV/w4vO8+B4ACLn6dYxxl4xq0/w/uf/+71v/M+QPaLmXo9J1A8Qi1tfdlPYTBGH okpb80yKfGZeRXGoMAeJ3ENmp4fYyWM8G5zpzEgD8yzlN7PX0UtkvLv+IyjflyKOdww5p0 gdePynSwCze5S5wkN8Ss3TEZcdfBPP921fnf0jh2qnV4hYNAh4HWSHjEBvxy0ZFTnPnRhc +iRZrW8GCaP/MOW0XiomwDZsyAMJlN/vOJUjnzhr+Z3Uux9J7fs7Amu0TrvyEQ== From: Ronald Klop To: Otacilio Cc: freebsd-arm@freebsd.org Message-ID: <1047394639.643.1654181685742@localhost> In-Reply-To: <8fcbebf4-60c3-0ccb-259b-3324b123245c@bsd.com.br> References: <8fcbebf4-60c3-0ccb-259b-3324b123245c@bsd.com.br> Subject: Re: Wrong number of CPUs detected on RPI3 and FreeBSD 13.1 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_642_1273730850.1654181685718" X-Mailer: Realworks (609.136.d556cd5) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4LDTZQ4FsBz4nfW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=PtpgRxrI; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=Sll2=WJ=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=Sll2=WJ=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-3.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.99)[-0.991]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; MLMMJ_DEST(0.00)[freebsd-arm]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=Sll2=WJ=klop.ws=ronald-lists@realworks.nl]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=Sll2=WJ=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_642_1273730850.1654181685718 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit No solution, just a data point. My RPI3B+ works fine. $ cat /var/run/dmesg.boot | grep CPU Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 armv8crypto0: CPU lacks AES instructions CPU 0: ARM Cortex-A53 r0p4 affinity: 0 CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 $ uname -a FreeBSD rpi3 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64 $ sysctl hw.model hw.model: ARM Cortex-A53 r0p4 # ofwdump -a -P model | head -n5 Node 0x48: model: 52 61 73 70 62 65 72 72 79 20 50 69 20 33 20 4d 6f 64 65 6c 20 42 20 50 6c 75 73 20 52 65 76 20 31 2e 33 00 'Raspberry Pi 3 Model B Plus Rev 1.3' I don't know how to help further, but maybe this gives a difference to dive into. Regards, Ronald. Van: Otacilio Datum: donderdag, 2 juni 2022 14:04 Aan: freebsd-arm@freebsd.org Onderwerp: Wrong number of CPUs detected on RPI3 and FreeBSD 13.1 > > Dears > > > Yesterday I have finished a upgrade from source code of a FreeBSD 12.2 to FreeBSD 13.1 running on RPI3. After upgrade, this machine only one CPU is detected. > > RPI3 with problem > > [ota@azul ~]$ cat /var/run/dmesg.boot | grep CPU > Starting CPU 1 (1) > Starting CPU 1 (2) > Starting CPU 1 (3) > FreeBSD/SMP: Multiprocessor System Detected: 1 CPUs > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > armv8crypto0: CPU lacks AES instructions > CPU 0: ARM Cortex-A53 r0p4 affinity: 0 > [ota@azul ~]$ uname -a > FreeBSD azul 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64 > > Another system running on a rpi4 the CPUs detected and initialized are ok: > > RPI4 running OK > > [ota@verde ~]$ cat /var/run/dmesg.boot | grep CPU > Starting CPU 1 (1) > Starting CPU 2 (2) > Starting CPU 3 (3) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > armv8crypto0: CPU lacks AES instructions > CPU 0: ARM Cortex-A72 r0p3 affinity: 0 > CPU 1: ARM Cortex-A72 r0p3 affinity: 1 > CPU 2: ARM Cortex-A72 r0p3 affinity: 2 > CPU 3: ARM Cortex-A72 r0p3 affinity: 3 > [ota@verde ~]$ uname -a > FreeBSD verde 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64 > > > Someone can give-me a hint about how to solve this? > > > Thanks a lot > > > > > ------=_Part_642_1273730850.1654181685718 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit No solution, just a data point. My RPI3B+ works fine.

$ cat /var/run/dmesg.boot  | grep CPU
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu2: <Open Firmware CPU> on cpulist0
cpu3: <Open Firmware CPU> on cpulist0
armv8crypto0: CPU lacks AES instructions
CPU  0: ARM Cortex-A53 r0p4 affinity:  0
CPU  1: ARM Cortex-A53 r0p4 affinity:  1
CPU  2: ARM Cortex-A53 r0p4 affinity:  2
CPU  3: ARM Cortex-A53 r0p4 affinity:  3

$ uname -a
FreeBSD rpi3 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64

$ sysctl hw.model
hw.model: ARM Cortex-A53 r0p4

# ofwdump -a -P model  | head -n5
Node 0x48:
  model:
    52 61 73 70 62 65 72 72 79 20 50 69 20 33 20 4d 6f 64 65 6c
    20 42 20 50 6c 75 73 20 52 65 76 20 31 2e 33 00
    'Raspberry Pi 3 Model B Plus Rev 1.3'

I don't know how to help further, but maybe this gives a difference to dive into.

Regards,
Ronald.

 

Van: Otacilio <otacilio.neto@bsd.com.br>
Datum: donderdag, 2 juni 2022 14:04
Aan: freebsd-arm@freebsd.org
Onderwerp: Wrong number of CPUs detected on RPI3 and FreeBSD 13.1

Dears


Yesterday I have finished a upgrade from source code of a FreeBSD 12.2 to FreeBSD 13.1 running on RPI3. After upgrade, this machine only one CPU is detected.

RPI3 with problem

[ota@azul ~]$ cat /var/run/dmesg.boot  | grep CPU
Starting CPU 1 (1)
Starting CPU 1 (2)
Starting CPU 1 (3)
FreeBSD/SMP: Multiprocessor System Detected: 1 CPUs
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu2: <Open Firmware CPU> on cpulist0
cpu3: <Open Firmware CPU> on cpulist0
armv8crypto0: CPU lacks AES instructions
CPU  0: ARM Cortex-A53 r0p4 affinity:  0
[ota@azul ~]$ uname -a
FreeBSD azul 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64

Another system running on a rpi4 the CPUs detected and initialized are ok:

RPI4 running OK

[ota@verde ~]$ cat /var/run/dmesg.boot  | grep CPU
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu2: <Open Firmware CPU> on cpulist0
cpu3: <Open Firmware CPU> on cpulist0
armv8crypto0: CPU lacks AES instructions
CPU  0: ARM Cortex-A72 r0p3 affinity:  0
CPU  1: ARM Cortex-A72 r0p3 affinity:  1
CPU  2: ARM Cortex-A72 r0p3 affinity:  2
CPU  3: ARM Cortex-A72 r0p3 affinity:  3
[ota@verde ~]$ uname -a
FreeBSD verde 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64


Someone can give-me a hint about how to solve this?


Thanks a lot

 

------=_Part_642_1273730850.1654181685718--