From nobody Sat Apr 09 02:46:57 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 BEB211A87740 for ; Sat, 9 Apr 2022 02:47:07 +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.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZzzZ2Xqgz3DxV for ; Sat, 9 Apr 2022 02:47:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649472419; bh=3u4IVfUs9PYxut25tqMYCBWFP3trprhlTeM51v2gKrg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=quspTgObEoqLYcYVQjOD/Mm1R4TLHLDi8LQaOLSUWu2GbKtzPw1K0shK2GvBHazUiEjXxXkJ62QU0VXsfEwudGtjL2YzIlOmUAqxgmAubl8yus+nAs7Uv0LN+rbuP398NbMgWIt6QUMXQt0bdI6PRv4KOZfCXpQBFTFPsWZZj5O4zxPVM3Qc39wmF6F4XX3RLAd+I3xVlqOosXcbYlYc1iuMn7sePcXcG1fm7snqL6XBA4hKOvmVvOLbGVOHkCalVDZN8HOcig3g0mh4dIuG28w+cQ3tIGETjOaEaC44DUnDSa7YBBqR6RQVHZEC/TXa9FnhdoE6BMnv8OK5BfeTZQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649472419; bh=oHB5gal4WIZEnUq7JHUvYKvwML6/DznGASca4dRWgm1=; h=X-Sonic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.T7EtQX9LN9ei5Ua9GCwLtiqwuD0m_KqEMORn1IUyjRB2QfNvot6sJkwu.bW C.81HmRGsLVbr0q2bjHBgoHHe63c6f.i8Yv8_QxiNl4XGaME63U49xjXHJBbcxCKg7IOAtEr_zCT ddk64wfDhPCVM78pf3nAzb_H5dT3DZ.WrK08c5bbjOpuwKKI2Roz3hSwVmav.MPISY9PgNKjb8vL D0IjyvIQdRwyQKOKQk843fIlbqLjv9YsbCDAaudqwg8kW0ATXZX1F_9WsH2TVmL3hfhTY.46ajwN gjKQEWPuPsiNJvneZQwqiurd1K.R0y21vfo1LXZKskZRbzx0qnd7ejg.Cy9iePGo9DyQOpQzjsBo i5rLdNlpyRFLdlwqLbL8890zIjeZhT_zHpO237PXcmYV.qDM.0nXnn3fMgv0o3l3w5dKiD6eY_P0 RSA9W9Fx5._JLTTNRHPKmBVtgFG0mf__1P3GrKe2Bu7bGeAolMv7Z1Ti4x3kUiKAA4drTYcAJ0qR oq0Vnm3cnGPipousSdZ2pCPS5Tw4AbpXghW.6G8e7QmroLpnHVX5l9zbkZRUDNQmZBuV7Pqjh3Fp UXwX75T7TOWUQkfD6Yi1aGCsAIoTv4dsQoJ1HOw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sat, 9 Apr 2022 02:46:59 +0000 Received: by kubenode551.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d032b447dca464c02ae5fd2faa42a776; Sat, 09 Apr 2022 02:46:57 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: RPI4 panic on boot with -current From: Mark Millard In-Reply-To: <20220409015321.GA52002@www.zefox.net> Date: Fri, 8 Apr 2022 19:46:57 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220409015321.GA52002@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4KZzzZ2Xqgz3DxV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=quspTgOb; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-2.36 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; 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)[]; 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/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.14)[0.139]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.147:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.147:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 2022-Apr-8, at 18:53, bob prohaska wrote: > Might this be related to "RPi4B's got a PMIC replacement,..." reported = 4/3 ? No: See the later note about the RPi4B Revision. > A Pi4 (mechanical disk only, no microsd) trying to boot a fresh build = of=20 > -current reports: >=20 > Resetting system ...=20 >=20 > U-Boot 2020.10 (Mar 04 2021 - 04:32:31 +0000) This is an old U-Boot compared to sysutils/u-boot-* . There may well be good reasons for using it, for all I know. sysutils/u-boot-* got 2021.04 on 2021-Apr-06. sysutils/u-boot-* got 2021.07 on 2021-Jul-07. sysutils/u-boot-* got a patch to fix MMC ordering because 2021.07 had changed something the port depended on for the ordering, if I udnerstand right. This update was on 2021-Nov-09. I do not know if any of the more up to date vintages would be more appropriate or not. I can not tell which of the following is in use: sysutils/u-boot-rpi-arm64 vs. sysutils/u-boot-rpi-rpi4 The 2021-Nov-09 patching changed both to explicitly have: U_BOOT_SLAVE_PORTREVISION_2021.07=3D 1 in addition to the extra patch. > DRAM: 7.9 GiB > RPI 4 Model B (0xd03114) An RPi4B with the new PMIC would jave the 0x... end in 15, instead of 14. This is a RPi4B Rev 1.4 (the 14). [The d is the 8 GiByte indication.] A RPi4B with the new PMIC would be Rev. 1.5 at this point (15). > MMC: mmc@7e300000: 1, emmc2@7e340000: 0 > Loading Environment from FAT... sdhci_set_clock: Timeout to wait cmd & = data inhibit > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_send_command: MMC: 1 busy timeout increasing to: 200 ms. > sdhci_send_command: MMC: 1 busy timeout increasing to: 400 ms. > sdhci_send_command: MMC: 1 busy timeout increasing to: 800 ms. > sdhci_send_command: MMC: 1 busy timeout increasing to: 1600 ms. > sdhci_send_command: MMC: 1 busy timeout increasing to: 3200 ms. > sdhci_send_command: MMC: 1 busy timeout. I've no clue about the above lines --or related material below. > In: serial > Out: vidconsole > Err: vidconsole > Net: eth0: ethernet@7d580000 > PCIe BRCM: link up, 5.0 Gbps x1 (SSC) > starting USB... > Bus xhci_pci: Register 5000420 NbrPorts 5 > Starting the controller > USB XHCI 1.00 > scanning bus xhci_pci for devices... 6 USB Device(s) found > scanning usb for storage devices... 1 Storage Device(s) found > Hit any key to stop autoboot: 0=20 > Card did not respond to voltage select! > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_send_command: MMC: 1 busy timeout. >=20 > Device 0: Vendor: SABRENT Rev: 0204 Prod:=20 > Type: Hard Disk > Capacity: 953869.7 MB =3D 931.5 GB (1953525168 x 512) > ... is now current device > Scanning usb 0:1... > Found EFI removable media binary efi/boot/bootaa64.efi > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_set_clock: Timeout to wait cmd & data inhibit > sdhci_send_command: MMC: 1 busy timeout. > Scanning disk mmc@7e300000.blk... > Disk mmc@7e300000.blk not ready > Card did not respond to voltage select! > Scanning disk emmc2@7e340000.blk... > Disk emmc2@7e340000.blk not ready > Scanning disk usb_mass_storage.lun0... > ** Unrecognized filesystem type ** > Found 3 disks > No EFI system partition > BootOrder not defined > EFI boot manager: Cannot load any image > 1259292 bytes read in 5 ms (240.2 MiB/s) > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Booting /efi\boot\bootaa64.efi >=20 > [whitespace trimmed] >=20 > Consoles: EFI console =20 > Reading loader env vars from /efi/freebsd/loader.env > Setting currdev to disk0p1: > FreeBSD/arm64 EFI loader, Revision 1.1 > (Thu Mar 4 07:32:03 UTC 2021 root@releng1.nyi.freebsd.org) >=20 > Command line arguments: loader.efi > Image base: 0x39cfc000 > EFI version: 2.80 > EFI Firmware: Das U-Boot (rev 8224.4096) > Console: comconsole (0) > Load Path: /efi\boot\bootaa64.efi > Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)= /UsbClass(0x152d,0x1561,0x0,0x0,0x0)/HD(1,0x01,0,0x81f,0x18fa8) > Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)= /UsbClass(0x152d,0x1561,0x0,0x0,0x0)/HD(1,0x01,0,0x81f,0x18fa8) > Setting currdev to disk0p1: > Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)= /UsbClass(0x152d,0x1561,0x0,0x0,0x0)/HD(2,0x01,0,0x197c7,0x746ed5e9) > Setting currdev to disk0p2: > / > Loading /boot/defaults/loader.conf > Loading /boot/defaults/loader.conf > Loading /boot/device.hints > Loading /boot/loader.conf > Loading /boot/loader.conf.local > Loading kernel... > /boot/kernel/kernel text=3D0x2a8 text=3D0x851220 text=3D0x24be84 = data=3D0x1b9ba8 data=3D0x0+0x34f000 syms=3D[0x8+0x134028+0x8+0x15b5e1] > Loading configured modules... > /boot/kernel/filemon.ko text=3D0x1867 text=3D0x2558 data=3D0x510+0x20 = syms=3D[0x8+0xd08+0x8+0x7c9] > /boot/kernel/umodem.ko text=3D0x2100 text=3D0x13a0 data=3D0x6d8+0x10 = syms=3D[0x8+0xf18+0x8+0xb5c] > loading required module 'ucom' > /boot/kernel/ucom.ko text=3D0x2590 text=3D0x2f00 data=3D0x8e0+0x858 = syms=3D[0x8+0x1290+0x8+0xbd5] > /boot/entropy size=3D0x1000 > /etc/hostid size=3D0x25 >=20 > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... =20 > Using DTB provided by EFI at 0x7ef0000. > EFI framebuffer information: > addr, size 0x3e22c000, 0x8ca000 > dimensions 1920 x 1200 > stride 1920 > masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 > ---<>--- > GDB: debug ports: uart > GDB: current port: uart > KDB: debugger backends: ddb gdb > KDB: current backend: ddb > WARNING: Cannot find freebsd,dts-version property, cannot check DTB = compliance > Copyright (c) 1992-2022 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 14.0-CURRENT #40 main-aa597d4049-dirty: Fri Apr 8 11:44:42 = PDT 2022 > bob@nemesis.zefox.com:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm64 > FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git = llvmorg-13.0.0-0-gd7b669b3a303) > WARNING: WITNESS option enabled, expect reduced performance. > VT(efifb): resolution 1920x1200 > module firmware already present! > real memory =3D 8441835520 (8050 MB) > avail memory =3D 8206352384 (7826 MB) > Starting CPU 1 (1) > Starting CPU 2 (2) > Starting CPU 3 (3) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: unblocking device. > random: entropy device external interface > Fatal data abort: > x0: ffffa0003b25dad0 > x1: 8 > x2: ffff00000088db8d (do_execve.fexecv_proc_title + 7674) > x3: 78a > x4: 0 > x5: 69 > x6: 40a7152f > x7: f2db3c10 > x8: ffffa0003b25dad0 > x9: 200000000 > x10: ffffa00000000000 > x11: 3b25dad0 > x12: 725f696665006966 > x13: 100000102ff0001 > x14: ffff000000b07300 (lock_class_mtx_sleep + 0) > x15: 0 > x16: 8 > x17: f4b3707d > x18: ffff000000fa79b0 (initstack + 39b0) > x19: ffffa000008db380 > x20: ffff000000ab4810 (efirt_moddata + 0) > x21: ffff000000911163 (console_pausestr + 13a59) > x22: ffff000000c6d000 (db_watch_table + b88) > x23: ffff000000ba1000 (compiler_version + 20) > x24: ffff000000dfb000 (gdb_tx_u + aa0) > x25: 0 > x26: ffff0000008a1723 (do_execve.fexecv_proc_title + 1b20a) > x27: 3100000 > x28: ffff000000dfb000 (gdb_tx_u + aa0) > x29: ffff000000fa79c0 (initstack + 39c0) > sp: ffff000000fa79b0 > lr: ffff000000157ac4 (efirt_modevents + 78) > elr: ffff000000157ad0 (efirt_modevents + 84) > spsr: 200000c5 > far: ffffa0003b25dad0 > esr: 96000007 > panic: vm_fault failed: ffff000000157ad0 error 1 > cpuid =3D 0 > time =3D 1 > KDB: stack backtrace: > db_trace_self() at db_trace_self > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > vpanic() at vpanic+0x174 > panic() at panic+0x44 > data_abort() at data_abort+0x2f0 > handle_el1h_sync() at handle_el1h_sync+0x10 > --- exception, esr 0x96000007 > efirt_modevents() at efirt_modevents+0x84 > module_register_init() at module_register_init+0xc4 > mi_startup() at mi_startup+0x130 > virtdone() at virtdone+0x7c > KDB: enter: panic > [ thread pid 0 tid 100000 ] > Stopped at kdb_enter+0x44: undefined f902011f > db> bt > Tracing pid 0 tid 100000 td 0xffff000000dfc0e0 > db_trace_self() at db_trace_self > db_stack_trace() at db_stack_trace+0x11c > db_command() at db_command+0x368 > db_command_loop() at db_command_loop+0x54 > db_trap() at db_trap+0xf8 > kdb_trap() at kdb_trap+0x1cc > handle_el1h_sync() at handle_el1h_sync+0x10 > --- exception, esr 0xf2000000 > kdb_enter() at kdb_enter+0x44 > vpanic() at vpanic+0x1b0 > panic() at panic+0x44 > data_abort() at data_abort+0x2f0 > handle_el1h_sync() at handle_el1h_sync+0x10 > --- exception, esr 0x96000007 > efirt_modevents() at efirt_modevents+0x84 > module_register_init() at module_register_init+0xc4 > mi_startup() at mi_startup+0x130 > virtdone() at virtdone+0x7c > db>=20 >=20 > followed by >=20 > db> reboot > cpu_reset failed >=20 > After power cycle the machine rebooted to > FreeBSD 14.0-CURRENT #34 main-79c4c4be96-dirty: Tue Apr 5 09:26:19 = PDT 2022 > without obvious problems. "Dirty" is in reference to /usr/src/tests, = I've > refrained from tampering with the sources. =3D=3D=3D Mark Millard marklmi at yahoo.com