From nobody Mon Jan 09 16:21:09 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 4NrK2J3QS2z2sQKr for ; Mon, 9 Jan 2023 16:21:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-54.consmr.mail.gq1.yahoo.com (sonic316-54.consmr.mail.gq1.yahoo.com [98.137.69.30]) (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 4NrK2J0xfBz435L for ; Mon, 9 Jan 2023 16:21:28 +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=1673281285; bh=QDvebZ/mMh96afztYXHm9nfrVqX84MR6QtDG3ohnIB4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ls1e6l/hot3fsarywRc766lyrChr34zY5BNYnB/n1rwYmaPr848N7j/dlMRCzwnTuu2h3iSipOsa5jRZzLTHy9NThyEA9aR20QUu9RRrZXUdotCdgSP0LpAfRuWDqouGMYSi7GIdDZIyK68Y3w20YTIV4D1QMp0okThsYx9aFO1NZnkTqr+ApD7pYfN/cdWdiE/jiHvz3qvuZX4Bs/Ji0fG9jXa+6LGetDldlySIR7lljzYM6Z1aSRo5UTw3ZeYYbvcW1rQPv5gzD8CajjLBg77pVGNsKSb9OB1uVXc40c/nUoSygTBs7y19F3g6EU2wLu0esv0fxY+FiIYy/kgICg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1673281285; bh=nvgps5zpwVG+g0g10thHgU5mkFlkJvIUb7mxajZaNT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8Xv xpLUecwMmDceaZf6nOumPDlK1JIAca3y.Cq2AWECkij2AP611VAdoiER1i6AySlU7L_XP6AqbEgC mjb0fsNBbUIFy1pGkdHwJLapjHWoPqk1i6jrr0eseHq7Cin2s80KgJdSWuKljvo3aMvY8HqI44ik 4IIW3F_DKtXRXqgGc_HYKRQMhq8djVGyEHZjpFn3cXQavCejZY6vhG34bkk29cNOef6C5kcAUqb5 Ph1M8JTgbY0BeShrVoMf.sVO_WvzCpNidbp_1vTGRGRUOwdiJ1aGpT7PVX8Wbg_5D9LPAcvEMFaH EBFVGEsxXjCW5RqFAYHYj3XPJWn66IQ05LOuAblgynQFZxLaKqTmbGsa3fYFnGNYn2EwncH92oBy BMpA1jWatk28A2EYpphPFHez8n62Vjlny7LKdmgcqSKOQ6cOkUBv_XXS0CIuXJtmdxGJQtwVOB_Y IDQVWUKrcZUDTO1ZzRuC2Xk5bNzvXHkNXzzk6gDI.BRFRC9ljEA3EOa5BbLOzG7nq2gv4UZEdB_. dgXqSKg.XsPMzrJlSTaT62ByUqL4dEmxruUSZv1Gbxftfh3bgQLYuUPH0r.P3X00kk1XTIgu7FZA - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Mon, 9 Jan 2023 16:21:25 +0000 Received: by hermes--production-ne1-7b69748c4d-brw6v (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d8fc4c0787d97eca99379cb4cfe63579; Mon, 09 Jan 2023 16:21:20 +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 From: Mark Millard In-Reply-To: <5A57DF73-FEC0-41C9-96D2-A4EED7695EEF@googlemail.com> Date: Mon, 9 Jan 2023 08:21:09 -0800 Cc: Mitchell Horne , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2EAD00FA-22AE-4BE8-98B1-BEBB3848C486@yahoo.com> References: <29q7q878-091-r17n-8r3n-o3n68p3646@mnoonqbm.arg> <38B92299-2776-476D-A81F-7C8EB4D59A13@googlemail.com> <8o4s9914-sq84-90pq-no3o-59r18n5on14@yvfgf.mnoonqbm.arg> <5A57DF73-FEC0-41C9-96D2-A4EED7695EEF@googlemail.com> To: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4NrK2J0xfBz435L 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 9, 2023, at 00:15, Klaus K=C3=BCchemann = wrote: > `ve tested D37981 on a Pi4b,=20 > sorry but it had no effect, > not on the booted machine and not when intentionally provoked crashing = in early boot up( no changed behavior in reset) . >=20 > I never see : > <> > (except, of course when entering directly by : sysctl = debug.kdb.enter=3D1) I think you misinterpreted: QUOTE We get some new console output with this change: debug.kdb.enter: 0KDB: enter: sysctl debug.kdb.enter [ thread pid 812 tid 100118 ] Stopped at kdb_trap+0x448: sd zero,0(s1) db> reset Waiting (max 60 seconds) for system process `vnlru' to stop... done Uptime: 1m51s END QUOTE I expect the new output text was only the text after the "reset" command: QUOTE Waiting (max 60 seconds) for system process `vnlru' to stop... done Uptime: 1m51s END QUOTE I also expect that the text: QUOTE debug.kdb.enter: 0KDB: enter: sysctl debug.kdb.enter END QUOTE was just from how db> was entered to make the example and other ways of entering db> that historically did not put out such a line still would not put out such a line. > =46rom the booted system( so you see that the new tunable is compiled = in) : > =E2=80=94 > root@:~ # sysctl debug.ddb.full_reboot=3D1 > debug.ddb.full_reboot: 1 -> 1 > root@:~ # root@:~ # sysctl debug.kdb.panic=3D1 > =E2=80=A6. > KDB: enter: panic > [ thread pid 1056 tid 100128 ] > Stopped at kdb_enter+0x44: undefined f900827f > db>=20 > -- >=20 > root@:~ # sysctl debug.ddb.full_reboot=3D0 > debug.ddb.full_reboot: 1 -> 0 > root@:~ # sysctl debug.kdb.panic=3D1 > ... > KDB: enter: panic > [ thread pid 1057 tid 100092 ] > Stopped at kdb_enter+0x44: undefined f900827f > db>=20 > =E2=80=94 > Am 08.01.2023 um 19:32 schrieb Mitchell Horne : >=20 > =E2=80=A6=E2=80=A6. >=20 > 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. >=20 > 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 >=20 > Cheers, > Mitchell >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com