NetBSD Problem Report #53079

From www@NetBSD.org  Thu Mar  8 01:12:39 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B81837A103
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  8 Mar 2018 01:12:39 +0000 (UTC)
Message-Id: <20180308011238.400337A221@mollari.NetBSD.org>
Date: Thu,  8 Mar 2018 01:12:38 +0000 (UTC)
From: arun.taylor@gmail.com
Reply-To: arun.taylor@gmail.com
To: gnats-bugs@NetBSD.org
Subject: On BananaPI M3 only one cpu is recognized out of eight cpus.
X-Send-Pr-Version: www-1.0

>Number:         53079
>Category:       port-arm32
>Synopsis:       On BananaPI M3 only one cpu is recognized out of eight cpus.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm32-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 01:15:00 +0000 2018
>Closed-Date:    Wed Nov 06 14:31:19 +0000 2019
>Last-Modified:  Wed Nov 06 14:31:19 +0000 2019
>Originator:     Arun
>Release:        NetBSD 8.99.12 (SUNXI) #0: Mon Mar 5 12:42:28 UTC 2018
>Organization:
Accord Software, Inc.
>Environment:
>Description:

All cpus are not recognized. See output below.

-----------------------------------------------------------------------
NetBSD 8.99.12 (SUNXI) #0: Mon Mar  5 12:42:28 UTC 2018
        mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/SUNXI
total memory = 2048 MB
avail memory = 2019 MB
armfdt0 (root)
fdt0 at armfdt0: Banana Pi BPI-M3
fdt1 at fdt0
fdt2 at fdt0
fdt3 at fdt0
cpus0 at fdt0
cpu0 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu1 at cpus0: disabled (unresponsive)
cpu2 at cpus0: disabled (unresponsive)
cpu3 at cpus0: disabled (unresponsive)
/cpus/cpu@100 at cpus0 not configured
/cpus/cpu@101 at cpus0 not configured
/cpus/cpu@102 at cpus0 not configured
/cpus/cpu@103 at cpus0 not configured
gic0 at fdt1: GIC


Is the kernel not configured to recognize all cpus?
-----------------------------------------------------------------------

When running Ubuntu on the same bpi m3, all cpus are shown to be activated.

Ubuntu 16.04.3 LTS bpi-iot-ros-ai ttyS0

bpi-iot-ros-ai login: root
Password:
Last login: Mon Jan 15 21:55:47 CST 2018 on tty1
root@bpi-iot-ros-ai:~# dmesg | grep cpu
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] [mcpm_smp_init_cpus] ncores=8
[    0.000000] PERCPU: Embedded 8 pages/cpu @c21e4000 s12160 r8192 d12416 u32768
[    0.000000] pcpu-alloc: s12160 r8192 d12416 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[    0.003278] Initializing cgroup subsys cpuacct
[    0.050315] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.010000] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.010000] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.010000] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.010000] CPU4: thread -1, cpu 0, socket 1, mpidr 80000100
[    0.010000] CPU5: thread -1, cpu 1, socket 1, mpidr 80000101
[    0.010000] CPU6: thread -1, cpu 2, socket 1, mpidr 80000102
[    0.010000] CPU7: thread -1, cpu 3, socket 1, mpidr 80000103
[   23.362412] dhd_dpc_thread: set dpc_cpucore 0 from config.txt
root@bpi-iot-ros-ai:~#
-----------------------------------------------------------------------

>How-To-Repeat:
Do a install.

Also, there is no output to the hdmi monitor.  Have to use serial console.
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Wed, 06 Nov 2019 14:31:19 +0000
State-Changed-Why:
All 8 CPUs on Allwinner A83T are supported now.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.