Date: Sun, 8 Jan 2023 23:28:53 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Mitchell Horne <mhorne@freebsd.org> Cc: freebsd-arm@freebsd.org Subject: Re: (RPi) db> reboot -> cpu_reset failed Message-ID: <8q86s05q-1s10-s85s-7qpp-84oq5q79114n@yvfgf.mnoonqbm.arg> In-Reply-To: <e8dd18bf-df8b-5c62-4860-a2bc946e1d00@freebsd.org> References: <29q7q878-091-r17n-8r3n-o3n68p3646@mnoonqbm.arg> <F4435E57-1F90-454D-8E75-01DF50DD37DA@googlemail.com> <np4qps4-2o34-3n9n-q4s4-4931p4s7p13@yvfgf.mnoonqbm.arg> <38B92299-2776-476D-A81F-7C8EB4D59A13@googlemail.com> <8o4s9914-sq84-90pq-no3o-59r18n5on14@yvfgf.mnoonqbm.arg> <e8dd18bf-df8b-5c62-4860-a2bc946e1d00@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8q86s05q-1s10-s85s-7qpp-84oq5q79114n>