From nobody Thu Jan 05 20:43:58 2023 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 4Nnz3M2LGDz2p98f for ; Thu, 5 Jan 2023 20:44:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nnz3L5Gygz3PgP for ; Thu, 5 Jan 2023 20:44:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672951452; bh=waY3RqVNY5WXEIRqqK2OKPyCDzQjgBymhE4E4rmPJ/s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=n263ZLOyQvTJvPwRRFV//MMYPQ6hy9Ib2HX/FpiDvYtcgb6DlulYSxwFvgK1I5WprbzymofINgjamMCVv60iBRlIk99iTv4hnk28P5ujmzuk7gdg3hgbZyu4Nny1LNjCqgQEZqh07c58obJRXu8SC8d2C9lhepp91jjM9dXJvzh4rPRHr27HFPLxDAxuh3IoNySdh17blWMHV6w7ul5rPOiC5YphIj+h2OeAQ/MXNMJU+IjqOH7/fzbERDremngxKTbhNSmrzTYVDGHgv1uDbZJQh/ovabYf9qweejvZBTXBQ1jpbH2MHWXnarMmpnPsHncoCVXWU7i6jN7K56+axA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672951452; bh=q/rSudK5q+1bOCbc+kAqL3TXaGjPlweCA7EGyG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7ehe7oGY11O1L8WzVheIy10ntBD5aIWtOwTysxXUvp J_K3sT3Hm9e31v9ymSGuLoYpwTLj6hi7_AAjx6DJos5Vy9falUlJiO.6tUqgSVoZjSllw44Ktoxs rDVMHkSOYZSxrFL.i3S0SNFdqY3XhKIoijzX00VFiGIpwk_Ptc4Hg27XHYc.qSQ1zLelOB3WCYyC ceR0_4HG7SIw.zhCigsBTxariMq__N3YpoSfK_msbFbZA1IPvuoabAXVSMTaTcyLoGDeohcxCdQG t9dGM.oDbXJZY7JEovvAoJn1jw3XDow6ONu3eXFWA2pUkf589RPlDw.GzBA127tBLs57Mf6S8BwT HGbbHGYUm2UVWM19Tckbuv4pQrzSRfKLtcf.1GfkagOsrlx9qmZiuuySedkObO.tOtKnkFmbJc7B rdeu_yfYskoYBuUbzMA_591twWa7dz2MKvGVgFWRLOcT4Pi8tiR2gGSukv5bARgZJON.62TnpiG. n2hNHgD0ZcWrJUXLxnUQLO3SCEQArq4mjH4rUCKiXsUdrtRF1hNJ66kMi5_dmME_.A5FCGH3FxQ- - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Thu, 5 Jan 2023 20:44:12 +0000 Received: by hermes--production-gq1-d898c4779-ffgf5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID abc27045f60bc1f6004ae428f0076c36; Thu, 05 Jan 2023 20:44:08 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 16.0 \(3731.300.101.1.3\)) Subject: Re: (RPi) db> reboot -> cpu_reset failed [Klus's crash] From: Mark Millard In-Reply-To: <38B92299-2776-476D-A81F-7C8EB4D59A13@googlemail.com> Date: Thu, 5 Jan 2023 12:43:58 -0800 Cc: "Bjoern A. Zeeb" , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <894C0DAA-A199-434A-A5D7-C4BB1FBC5BEC@yahoo.com> References: <29q7q878-091-r17n-8r3n-o3n68p3646@mnoonqbm.arg> <38B92299-2776-476D-A81F-7C8EB4D59A13@googlemail.com> To: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4Nnz3L5Gygz3PgP X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Jan 5, 2023, at 11:32, Klaus K=C3=BCchemann = wrote: > Hi Bj=C3=B6rn, > ( ..I had a JTAG setup on the PI, but didn=E2=80=99t use it for some = time..) >=20 > yes that was a "live=E2=80=9C boot example from today of the cm4(on = orig. I/O-board), > it hangs while initializing sdhci, while the boot partition is living = on the emmc : > =E2=80=94 >=20 > sdhci_bcm0: mem 0x7e300000-0x7e3000ff = irq 24 on simplebus0 > Fatal data abort: > x0: ffffffff > x1: ffff00000092b404 > x2: 0 > x3: 6 > x4: ffff000000fdf77c > x5: ffff000000fdf72c > x6: 4000000 > x7: 4000000 > x8: ffff000000dfb6a0 > x9: 20 > x10: 0 > x11: 1 > x12: 300000000006e65 > x13: fefefefeff0100 > x14: 1d > x15: 0 > x16: 0 > x17: 0 > x18: ffff000000fdf7e0 > x19: ffffffff > x20: 0 > x21: ffff000000bad000 > x22: ffff000000bad000 > x23: ffffa00000f8f038 > x24: ffff00000091b5b2 > x25: ffff0000008dfc9c > x26: ffff0000009436b6 > x27: ffffa00000f8b140 > x28: 32000000 > x29: ffff000000fdf7e0 > sp: ffff000000fdf7e0 > lr: ffff000000868040 > elr: ffff0000008620d4 > spsr: a00000c5 > far: 20 > esr: 96000004 > panic: vm_fault failed: ffff0000008620d4 > cpuid =3D 0 > time =3D 1 > KDB: stack backtrace: > #0 0xffff000000516458 at kdb_backtrace+0x60 > #1 0xffff0000004c24ac at vpanic+0x174 > #2 0xffff0000004c2334 at panic+0x44 > #3 0xffff0000007f48c0 at data_abort+0x204 > #4 0xffff0000007d5010 at handle_el1h_sync+0x10 > #5 0xffff00000086803c at bcm_sdhci_attach+0x314 > #6 0xffff00000086803c at bcm_sdhci_attach+0x314 > #7 0xffff000000502428 at device_attach+0x3fc > #8 0xffff000000504514 at bus_generic_new_pass+0x120 > #9 0xffff0000005044a4 at bus_generic_new_pass+0xb0 > #10 0xffff0000005044a4 at bus_generic_new_pass+0xb0 > #11 0xffff0000005044a4 at bus_generic_new_pass+0xb0 > #12 0xffff0000005065f4 at root_bus_configure+0x40 > #13 0xffff000000439ee8 at mi_startup+0x11c > #14 0xffff0000000008b4 at virtdone+0x78 > Uptime: 1s >=20 You are using modern enough RPI* firmware that the FreeBSD kernel does not tolerate it. Same sort of backtrace as I reported back in 2022-Apr when I explored what RPi* firmware releases avoided kernel crashes on RPi4B's, such as: KDB: stack backtrace: #0 0xffff000000516268 at kdb_backtrace+0x60 #1 0xffff0000004c22bc at vpanic+0x174 #2 0xffff0000004c2144 at panic+0x44 #3 0xffff0000007f4928 at data_abort+0x204 #4 0xffff0000007d5010 at handle_el1h_sync+0x10 #5 0xffff00000086809c at bcm_sdhci_attach+0x314 #6 0xffff00000086809c at bcm_sdhci_attach+0x314 #7 0xffff000000502238 at device_attach+0x3fc #8 0xffff000000504324 at bus_generic_new_pass+0x120 #9 0xffff0000005042b4 at bus_generic_new_pass+0xb0 #10 0xffff0000005042b4 at bus_generic_new_pass+0xb0 #11 0xffff0000005042b4 at bus_generic_new_pass+0xb0 #12 0xffff000000506404 at root_bus_configure+0x40 #13 0xffff000000439cf8 at mi_startup+0x11c #14 0xffff0000000008b4 at virtdone+0x78 In: https://lists.freebsd.org/archives/freebsd-arm/2022-December/002115.html I reported what I'm experimenting with (2nd version) for 13.1 and main for allowing modern RPi* firmware. It basically leads to bcm_dma being set up earlier so it is available for reference in the bcm_sdhci_attach activity. If you build your own kernel with the type of patching that I report, the specific crash should disappear and booting with modern RPi* firmware seems to have worked for me so far on the machines I've done the experimenting on. Expect more messages caused by new things in the .dtb files that the kernel does not support but keeps rechecking during boot. Sort of a noisy form of otherwise-ignored. =3D=3D=3D Mark Millard marklmi at yahoo.com