From owner-freebsd-arm@freebsd.org Mon Mar 16 01:54:13 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 BCC6227E801 for ; Mon, 16 Mar 2020 01:54:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (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 48gfVV3bJTz461w for ; Mon, 16 Mar 2020 01:54:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 3Jht7IwVM1k5U15UCJBWV8Jm9ct8c0vEEZyRY9a2SFes.9YecpkuTLFt5GM0PIl tCReE8ZNK2GSpZANA65Mz9iXDu6J6pyUiF77sf9LmABKUU42fJT0IGdKbyo1VtOUO2J2ZyMATve9 LTv8nKM7YQ9TR6Y1P8Iq_Hbnnpxah5L7v23M5hrFPP6YhG300svdWJBL32yCitBTCzhxXSqmH0Jy dxb_jE4GdJQiHUpX2LUk1GSecpULFUkZ6ZfHRuTJnmOZUvlfh1RtJ4ACp1U6kOovVeCnZsAV5lTU m2lD_ZzQlom6rGs_0FQnPM51MhdoXfhPmo3e2gsZvBkW7YWyrW22a.efUNOcmBLoBTl1fNm9IN.k vCmxM9QMjp95uFCoZZB9KW2j.VgvmQg27UtnOgy9GZNIqBPo_SvC4Uuzqu3OyXOeG9Crx.cs5B98 N8ndFjGtpX2PwjRfLRukHhc7X3prtrNLPFyllcJCCjilRkhqfsc5TRuE0SUPgk9TlLkVWaEL2zjV 7Mh_fCvTzjyJM00zpGO4.6zylGAVSQoylYkOCCxtPbQ4XGe8hf6xYhnCjJIvDeSYZPIYX1RS7L0M TOasWXFPodawpf68JtxI.o.tIyxUG_n3IucUmAoE6C.jlUHc6UKMRplRSUkAWKJfY4eh0oWJCAt4 8QVQ5LdzXlqECXBPDgr2v1V2n8pkFqf2N4VkcbId_arab2jeTf5hInw1B4vpQ31niqa2VYmOKFoR Bi1Hcksc5sm5lfG1l72Nbx5GbfoCjk3O6HTtFHOmEVur7_vtw6DSrgDH4qsfokWhTFKSjRk_C1Fd zE_qs7PHp49f4L0w4Dt4iXuiEhs9CjekzQaIWBqEay5orHQL_DbskOFTWpGu_o1CXE_AN6TEajrN 2BVkGUaUn.sr2eVkjF.jiO.V8gvxwjJx1IFuztWP4XN4U5he6ESFmUxsXYZwToW8kyp2405YoOhd H8SkV8lEH8tsuVUjJeAb1k.weLZmnK0NV3UuHDki7MXlqIRoFu0BP640s9IYYCo8gp.jC3TH3ua8 .QG3QqXuYyxmaBuKE0LV1zfi32TrXXjTP0iXSkGiQUiFjdl4g6C.vnal4mzVZZDmkgGwBgBZv8dD wTUabzEDXUU7.myKm0CA2XrQrWm1Xf0lfr1t.LS2PAGExSwRmQzBiecgkA_ODQk92p9SU2sYA7Ut zG0MgSYX2o.hV0fUQP9c4FdBjyofOIiLInSfc8mI_zeNli.KfyC2dFgqOAqz__xh_hQj.dEA_cE7 dP5bvhHpduqzyQorhm5pmgN_K3DGXG0J1E0jyiVJ8wzC9hJqddz5kiUAyUsyXmPfNXh9W6efzEzu .sBue5Fkj7GYXszy79.IiAt1GbbAvNup8mHakkDLj2Bp17CtB7d_1ijLr8UyjrUckpBXdcUuymWx VkdGRWAERC4Tsah3Z.SE- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Mon, 16 Mar 2020 01:54:07 +0000 Received: by smtp424.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e99eac56932ba7be0d6ebaaab124d941; Mon, 16 Mar 2020 01:54:02 +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: Date: Sun, 15 Mar 2020 18:54:00 -0700 Cc: bob prohaska , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <90DE70B3-F3A5-4EFE-832C-7C412744D974@yahoo.com> References: <20200315041203.GA55605@www.zefox.net> To: Kyle Evans X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48gfVV3bJTz461w X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.01 / 15.00]; TO_DN_EQ_ADDR_SOME(0.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:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.54)[-0.537,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.97)[-0.974,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (-1.10), 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)[206.69.137.98.list.dnswl.org : 127.0.5.0]; 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: Mon, 16 Mar 2020 01:54:13 -0000 On 2020-Mar-15, at 17:33, Kyle Evans wrote: > On Sat, Mar 14, 2020 at 11:12 PM bob prohaska = wrote: >>=20 >> Tried to boot a kernel built from r358976 on a Pi3 and got a panic: >>=20 >> [... snip ...] >=20 > Hi, >=20 > I've got a patch against sysutils/u-boot-rpi{3,4} based on what I've > submitted upstream that I'm test-building again and will soon be > submitting to Phabricator; please give it a shot and confirm if it > makes life happier or not: > https://people.freebsd.org/~kevans/rpi-psci.diff I grep'd in the area that holds where I did the investigative patch that enabled the RPi4 to boot and such without the armstub8-gic.bin memory being slamed. (I've not done any clean-out of the materials in that area.) The result is not suggestive of CONFIG_RPI_EFI_NR_SPIN_PAGES making a difference: # grep -r CONFIG_RPI_EFI_NR_SPIN_PAGES = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/ # (I.e., nothing found.) The same was true for grep'ing in the wider area: /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/ By contrast, for CONFIG_ENV_FAT_DEVICE_AND_PART : # grep -r CONFIG_ENV_FAT_DEVICE_AND_PART = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/ = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/configs/am65x_= evm_r5_defconfig:CONFIG_ENV_FAT_DEVICE_AND_PART=3D"1:1" . . . (I'll not show the other 33 lines of matches) . . . I will show .h and .c source lines using CONFIG_ENV_FAT_DEVICE_AND_PART : wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/env/fat.c: = CONFIG_ENV_FAT_DEVICE_AND_PART, /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/env/fat.c: = CONFIG_ENV_FAT_DEVICE_AND_PART, = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/include/config= s/sama5d27_som1_ek.h:#define CONFIG_BOOTCOMMAND "fatload mmc " = CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d27_som1_ek.dtb; " = \ = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/include/config= s/sama5d27_som1_ek.h: "fatload mmc " = CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \ = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/include/config= s/sama5d2_xplained.h:#define CONFIG_BOOTCOMMAND "fatload mmc " = CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d2_xplained.dtb; " = \ = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/include/config= s/sama5d2_xplained.h: "fatload mmc " = CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \ A file that lists the potential CONFG_* names seems to be: = /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2019.10/u-boot.cfg.con= figs and it does not have CONFIG_RPI_EFI_NR_SPIN_PAGES . I've no evidence that 2019.10 would make any use of a CONFIG_RPI_EFI_NR_SPIN_PAGES definition. Still, I can try it later if desired. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)