From owner-freebsd-arm@freebsd.org Sun Mar 15 04:49:04 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 79DFA277B7F for ; Sun, 15 Mar 2020 04:49:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (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 48g6Qj6XC9z3HXC for ; Sun, 15 Mar 2020 04:49:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: snDxkswVM1mkhO4hwAQG.djw85eMfbKPiDTENJJUFqGkR15SmTehzfkvZIyp4tB G8WPwMmzAeix6NNlu3Z8xQacliPk7nDrQT5Q.A_ZSvV2n4uUETAVSkPjty_irm1U4G3Q0VKZ6Jq4 0k8qkeW9nE0Z7TfB9.OvlhZzcjjjooixEac.hgT1xDmRZ_Szq3gAML_aGC.LRgPPncPtkuIpqDbx EKP8KV.0p0OxRnjypg.mirBSKdonMC75rA1llxcaC8aKClPkJxN41J3VMewj4fOqxtaXh3LplV.0 h7ZTnb7nokodXWeO39OB92Lef_aYz.h30pe0EO0E.Yi_kphU1DcfeVG7UbYei9Jmfh1.X1GcxyVk pcznevRDj19qhL2G5rJI3W5HdwG6S9F3f7aVB0blFJSSjD.I4ZFNgY9qIgksseirFJvERf3nqZzh iUbZeQC9E_R5QdUeDK.SYBChD8E.Jv2gaoYkWPukfrclpaJw.zPmTvkl9rPj.aGlL3gqaLClOUDv OBycULWD_aWl82uYVg9RjsD8geU9RFk20GhMUnbb4U_WvpVf6o71dn4AuHyABiBVJHUPJfHfDALg a0iYw9I9Gf1XAAHHa7OTpKlumVmH8cyKNjm0CHuRrPiU5Ffo3K3DXi0ZZf.fcYBZNIy4Kl26P9V8 rgPe4ireKgR8y6x7CNzp5gjpgnn7cFyebHg7FC8esK2jrhVxf05EEDW7Lo47inH6ylcvz0XZfYG2 3pwJKTKgPuaY5Tl8nM38Z7YhwEq7wxethxqrFDRDZjg5vlL5_lRuz.fDYNuJ3qsB3bAyUC3WBUHv fptpzt5qJIRYVJF7WadIgRfQTlwdK8KBjFZ5tzUy.Uyf.onvKvZD28ATP9BtxmkC9zEB8wzrcPVM pKk5k8OJrQvBq_eaPwdVr3dhAlvUFhQBmB2IzQTga_clZxgFdew6lTxq1vOaj9lTWoYKo30xdRjp BbDsoR1w7tBIbv_X1BTM6gjjccuGWWuBzNrlnJKBrV71ZmbWcLQjfTo4JKt.EHJeLlCELNLn3Ohg 3ZEuPoE0r13esFqElrNEwwDz7oQAXdTGoYNw5W48gy0zZvfPcD8VILj61hdZuqJP.g2wD.G0HuDM _B6xHeEob9d06Zk0lgvCRmWF02_Wk7iJ1O7VHYVSVT6.lCGq9zkc9YZ4Exo4O_G_mIe0txRYE5sg 6tiUeSpeAUsczt5ZWrsII2kv0_13i7gCoeF7xrlOBeMlbI_r2_dOc3Gt1a.Oog0pM3B9n54n59Si DmTLFg5Li3msx_y36AuBHoKM0sC0Qo3Os7Dgt_x_EF.pV6t3xib2Y_jhnA8Mhq_rByO48FImzek4 PpZe_US.CkqKiy4B3DskzFZlIsq7FKJVnlj2pWsn1mDn1vtWP9oHDgEpyDyaZJ9xQfeUGRq.hmC9 qxb6Fl4s1pqeIlWIEeQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sun, 15 Mar 2020 04:48:59 +0000 Received: by smtp413.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0bf8fef92781438009d629d9b19ade3b; Sun, 15 Mar 2020 04:48:54 +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: Panic on Rpi3 at r358976 From: Mark Millard In-Reply-To: <20200315041203.GA55605@www.zefox.net> Date: Sat, 14 Mar 2020 21:48:52 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8B479A0D-AEBB-4D83-9CE1-D68AFDA568A8@yahoo.com> References: <20200315041203.GA55605@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48g6Qj6XC9z3HXC X-Spamd-Bar: + X-Spamd-Result: default: False [1.22 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.81)[0.806,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[147.66.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.92)[0.919,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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)[]; IP_SCORE(0.00)[ip: (5.17), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] 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: Sun, 15 Mar 2020 04:49:04 -0000 On 2020-Mar-14, at 21:12, bob prohaska wrote: > Tried to boot a kernel built from r358976 on a Pi3 and got a panic: >=20 >=20 > Copyright (c) 1992-2020 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, = 1994 > The Regents of the University of California. All rights = reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 13.0-CURRENT #4 r358976: Sat Mar 14 17:00:27 PDT 2020 > bob@www.zefox.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 > FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git = llvmorg-10.0.0-rc3-1-gc290cb61fdc) > WARNING: WITNESS option enabled, expect reduced performance. > VT(efifb): resolution 1920x1200 > module firmware already present! > KLD file umodem.ko is missing dependencies > Starting CPU 1 (1) > panic: Failed to start CPU 1 (1) >=20 > cpuid =3D 0 > time =3D 1 > KDB: stack backtrace: > db_trace_self() at db_trace_self_wrapper+0x28 > pc =3D 0xffff00000075a214 lr =3D 0xffff000000108928 > sp =3D 0xffff0000000105a0 fp =3D 0xffff0000000107a0 >=20 > db_trace_self_wrapper() at vpanic+0x194 > pc =3D 0xffff000000108928 lr =3D 0xffff000000414578 > sp =3D 0xffff0000000107b0 fp =3D 0xffff000000010800 >=20 > vpanic() at panic+0x44 > pc =3D 0xffff000000414578 lr =3D 0xffff000000414320 > sp =3D 0xffff000000010810 fp =3D 0xffff0000000108c0 >=20 > panic() at start_cpu+0x1b0 > pc =3D 0xffff000000414320 lr =3D 0xffff00000076845c > sp =3D 0xffff0000000108d0 fp =3D 0xffff0000000108d0 >=20 > start_cpu() at cpu_init_fdt+0x34 > pc =3D 0xffff00000076845c lr =3D 0xffff000000767854 > sp =3D 0xffff0000000108e0 fp =3D 0xffff000000010930 >=20 > cpu_init_fdt() at ofw_cpu_early_foreach+0x180 > pc =3D 0xffff000000767854 lr =3D 0xffff00000020bb2c > sp =3D 0xffff000000010940 fp =3D 0xffff000000010990 >=20 > ofw_cpu_early_foreach() at mp_start+0x8c > pc =3D 0xffff00000020bb2c lr =3D 0xffff00000046f8dc > sp =3D 0xffff0000000109a0 fp =3D 0xffff0000000109f0 >=20 > mp_start() at mi_startup+0x12c > pc =3D 0xffff00000046f8dc lr =3D 0xffff0000003a88a0 > sp =3D 0xffff000000010a00 fp =3D 0xffff000000010a20 >=20 > mi_startup() at virtdone+0x5c > pc =3D 0xffff0000003a88a0 lr =3D 0xffff00000000108c > sp =3D 0xffff000000010a30 fp =3D 0x0000000000000000 >=20 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at 0 > db> reboot > cpu_reset failed >=20 > The Pi3 started at r351836, src was updated to r358976 and > only the kernel-toolchain and kernel were built/installed.=20 >=20 > If this is worth a bug report please let me know. Have you done something to deal with the kernel not being told to avoid touching memory that holds armstub8.bin ? You do not mention such. I'm not aware of any changes to sysutils/u-boot-rpi3 or to sysutils/rpi-firmware ( via its armstub8.bin ) or to FreeBSD for the issue. You would be doing your own patching and building as far as I know. (For the rpi4, I kept my investigatory sysutils/u-boot-rpi4 patch that I used, providing a hackish workaround for now.) Anything after head -r356767 ( such as -r356776 ) is going to show garbage-in/garbage-out behavior that need not be uniform from version to version. Otherwise, I suggest sticking to -r356767 or earlier, which happens to work by accident, even though the FreeBSD kernel was not told the right memory region to avoid. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)