From owner-freebsd-arm@freebsd.org Sat Feb 8 02:46:36 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8C174235A08 for ; Sat, 8 Feb 2020 02:46:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-8.consmr.mail.gq1.yahoo.com (sonic308-8.consmr.mail.gq1.yahoo.com [98.137.68.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48DxQ25s8Fz4J7l for ; Sat, 8 Feb 2020 02:46:34 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: UfSazVEVM1m55y36u2IrJWKnkHxdvHL_gKK2tOmQvKrSzFtalZs9NCN0t5CIP2D ZBnWrBGPAIttIzopsyZg2AaIVy7.bMUyOeBiy3mpLn_.d2HKCZVpKg_Eo7zHF1NqC_CLX4Rf.3.C ypZ9GCZRuUqqV18xpS5e73ZoiIK64MqM8my775HJ7h0tXSqayo7cO3IMK9boe9E.bwBB_Jbn9oem iRVyldnOSACAXImZ7nrg3BysDqkPvdtYn4mRRiqPIe9bBCWbvBL3AYijK0mJmF6zQ8g1BwWeH_pZ PQgoUlH.8x6y2Ld9nrXhW3Ig0QANypya7v4Vhu20PMA1U8VU0Kxc1lKVNochJFptz8KtegagGY5d PdM4RVVOKQZK83AEyL9WO5xEUY2Ze8eWzhDynZGeCaJ3fCCNQeEdbrENdXseJJdAjo9U4840Ugu_ oyajd.xTvsCJbgL.rKEd_NlIMrlej0HYDImA4WBQQW.9shHlg3I6BBlPRU4QNjR8.mzZMPE5T4.7 aC6Qd6acvPIMu2IIu3uAqMNtkd4C7PreTeJrAanL8_SH736CIxNC1e56vCjzNKVkdN.H4AP758oD PUCWTSpHGBLjyMyv7Y0GRd4.B4u6JMYeNllKS79cF8P3qOdfkyYQCp62J_T4Z1sQ3wvO.W7pa8a3 rl8tO3vTjGAYjUALC59iKLWhW4vWZOzfstfVxZoDbbKaqCzWQD96yj74EOGKN9_2f9ZrgxHlIze3 oUYjTlOVyrkTFjZI7oLX8vRd5n6kWBWAOcZx_309lW6eESh7C0CLjuQoWvf55GCAMeqz4LK8cx50 KikeV_vbWZGiNz7WlVlAfzace2rZJHKZO8jFh3S6rhmimtFbzA6OD26u.fkFHfce.6IOacW6JFgw LlfKukYG_gsUlAOCHhgm60NyZ5ZpWx0rhS_Q8V7bzYm6cuxe.DuFv_1BIkwTNQLPc9pEx_shS894 aUrgDpJkeqCaAFqiUqKUvwS6kQkWnxKXnXgrsSVMnjzy7AKjc.YbN3k77uLxMUff.soHbSjK3R5b NpqooBfXjK08iuz098jUjvZP4R61il1D9qQIcWdFIPvuaoa9cH9uqIhZDhbr3kYNcQngYwdEO1G_ cwSPrzhMKE8BcJAAAe8dRI0nybted_rOx17K71TiTKuv75ZHzW1dRlzZ8Fto_MDJFOg4nqm03SKS 3no7zuFYPQRA7U_TzVMQBnRYht3QWczZJWaOcAzYFvtgTull1dEXjojeMZp54wtQNba2efwg.Q9D SPybCW7cf_2XTFQLsluU9q0iZDoCYUXoPiDQCMBsuPjSafyFX.jYtZ3xe3hxGpuIKSCGMsmcVBcD islu62YOSWqTlAxYd_5BlURPej33K.M4ZuzwUnbUQ0FfhwVKi884ejKHUsFsk_zrPfkpWb_i1KQ. NBayBPrBRImRs6Gtw41D3loNcvzezHFdC Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Sat, 8 Feb 2020 02:46:32 +0000 Received: by smtp420.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9d915fb3a757c8d812e2d17b66ea1f77; Sat, 08 Feb 2020 02:46:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RPi3 not using SMP? From: Mark Millard In-Reply-To: <20200208011940.GA8570@www.zefox.net> Date: Fri, 7 Feb 2020 18:46:27 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <6B6CCB8F-B56A-4758-BEEC-6418718C95CB@yahoo.com> References: <20200208011940.GA8570@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48DxQ25s8Fz4J7l X-Spamd-Bar: - X-Spamd-Result: default: False [-1.26 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.81)[-0.814,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.947,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (0.81), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[32.68.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2020 02:46:36 -0000 On 2020-Feb-7, at 17:19, bob prohaska wrote: > For some weeks now an RPi3 running -current has seemed rather slow.... >=20 > On looking at the early part of the boot message the processor > attributes seem rather scant: >=20 > ...... > elease APs...APs not started > CPU 0: ARM Cortex-A53 r0p4 affinity: 0 > Instruction Set Attributes 0 =3D > Instruction Set Attributes 1 =3D <> > Processor Features 0 =3D > Processor Features 1 =3D <> > Memory Model Features 0 =3D > Memory Model Features 1 =3D <8bit VMID> > Memory Model Features 2 =3D <32bit CCIDX,48bit VA> > Debug Features 0 =3D <2 CTX BKPTs,4 Watchpoints,6 = Breakpoints,PMUv3,Debugv8> > Debug Features 1 =3D <> > Auxiliary Features 0 =3D <> > Auxiliary Features 1 =3D <> > CPU 1: (null) (null) r0p0 affinity: 0 > CPU 2: (null) (null) r0p0 affinity: 0 > CPU 3: (null) (null) r0p0 affinity: 0 > ............ > In a top window, STATE is reported as RUN, rather than the > former CPUn. >=20 > Is a software switch now required to enable multiprocessing? >=20 > Or, could it be related to the lines: > psci0: PSCI version number mismatched with DT=20 > as pointed out by Mark M in reference to the cpu_reset failed > problem, which is still manifest?=20 >=20 > The kernel is at r357644. Head -r356767's kernel does not have this problem for RPi3/4 used as aarch64 FreeBSD. Head -r356776 and later all have this problem for both RPi3 and RPi4. Note: There are no head versions between those. The console log shows evidence of the problem much earlier. Instead of saying: psci0: on ofwbus0 psci0: PSCI version 0.2 compatible (once) it says: psci0: on ofwbus0 psci0: PSCI version number 0 mismatched with DT, default 2 device_attach: psci0 attach returned 6 (and those 3 lines repeat in various places) for which none of them show up for -r356767 . Without identifying and using PSCI, the extra cores will not start and the cpu(s) will not reset. (PSCI is the ARM interface for doing such things.) I've no clue why, but the version number it gets in my RPi4 experiments is 0. My only guess is that at some point memory important to ARM's PSCI operation has been touched and is no longer valid for the PSCI operation. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)