From nobody Sun Jan 08 23:28:53 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 4NqtZ13Hjkz2p0s9 for ; Sun, 8 Jan 2023 23:28:57 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NqtZ12SNBz3nCf; Sun, 8 Jan 2023 23:28:57 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id F39678D4A17C; Sun, 8 Jan 2023 23:28:55 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 67E6E5C3A833; Sun, 8 Jan 2023 23:28:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id SLW7XBU0ZJ3u; Sun, 8 Jan 2023 23:28:54 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 19E9D5C3A830; Sun, 8 Jan 2023 23:28:54 +0000 (UTC) Date: Sun, 8 Jan 2023 23:28:53 +0000 (UTC) From: "Bjoern A. Zeeb" To: Mitchell Horne cc: freebsd-arm@freebsd.org Subject: Re: (RPi) db> reboot -> cpu_reset failed In-Reply-To: Message-ID: <8q86s05q-1s10-s85s-7qpp-84oq5q79114n@yvfgf.mnoonqbm.arg> References: <29q7q878-091-r17n-8r3n-o3n68p3646@mnoonqbm.arg> <38B92299-2776-476D-A81F-7C8EB4D59A13@googlemail.com> <8o4s9914-sq84-90pq-no3o-59r18n5on14@yvfgf.mnoonqbm.arg> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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 Content-Type: multipart/mixed; boundary="1098556516-10291134-1673220534=:27118" X-Rspamd-Queue-Id: 4NqtZ12SNBz3nCf X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1098556516-10291134-1673220534=:27118 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 8 Jan 2023, Mitchell Horne wrote: Hi Mitchell, > On 1/5/23 16:23, Bjoern A. Zeeb wrote: >> On Thu, 5 Jan 2023, Klaus Küchemann wrote: >> >>> Hi Björn, >>> ( ..I had a JTAG setup on the PI, but didn’t use it for some time..) >>> >>> yes that was a  "live“ 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 : >>> — >> >> Ok, I am just wondering given reboot works fine why reset in db> >> wouldn't.  Given you have JTAG setup you can probably debug a lot better >> than me but also you seem to have a different problem ...  too many >> problems too short time *sigh* >> >> > > The reason for the difference in behaviour here is that the ddb reset command > doesn't execute the full list of registered shutdown handlers, it just calls > cpu_reset() directly. For whatever reason your combination of RPI hw+fw > doesn't support the PSCI shutdown interface, so cpu_reset() fails. I am > guessing that it is the bcm2835_watchdog driver that handles the normal > reboot. Hmm interesting. > I think it should be just fine to execute such handlers from ddb reset, so > you can try my patch: https://reviews.freebsd.org/D37981 Thanks for that; I followed-up there. /bz -- Bjoern A. Zeeb r15:7 --1098556516-10291134-1673220534=:27118--