From nobody Sun Jan 08 18:32:34 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 4Nqm052H52z2qpnN for ; Sun, 8 Jan 2023 18:32:37 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nqm051dv3z4J60; Sun, 8 Jan 2023 18:32:37 +0000 (UTC) (envelope-from mhorne@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673202757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=svzMYw3KTncTx9wUrpb187KQX5+g5UqV6loGVBcggnY=; b=NXcGwkfmTKx90w4oG7CW61KC5tjGZ/zN8s2av7r83LISsaoli+5imcjVXe8Ia/fOcH3d3d bEYC6DEUOGwVL21R9qsm79fbGwmcI3Li4+Ay88kMaY38aCw88W2prJe2C9m7JMejhO3EEY Z+tBVFCnHMR6dqYLbG8KBiUkBYZmnGw0evHCvEdpUCCVgVodKZGmiJN9Ywzke5t3VugDpF ud+MQWnB8f2xI/wfCt2RLIPKnhEqlLjk8yY6xO0mzr+7vOXbX4vd5u5n3ogeKakElABq84 emAmdy0et2wXMfuAQIXVQ2X2mNcRQU3ySMAqwACf9VW3Dvp6PhE/fg55PMJZMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673202757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=svzMYw3KTncTx9wUrpb187KQX5+g5UqV6loGVBcggnY=; b=NEYNhlvf9DEE/xwb1Wxm+pelxeJZhEb1UVnUyhPxep/QCoCqSftk78yZXqumDVHGU+K/0V FfUNAjdq5JGsK256hLOv4A8gfZWxUeceqRgbDw2XwxO3FaZB8KltXI06BT2OK07DPUQsJ3 U9oQnjNl1ZZF51RCeVoiSG03geLBGJkZjRzFXBuZAM5wI+ut0nQETacWO/FH87me8Lid5a s4NlYgPM0EfOdcNlwoEmJL3R4iF+WubPAkdcdpYyQPMuCFoIrk1GBz5nQq0F9AdL+dLXIq b2IQM7pRdBCu9CoPftsAhfaglnmmhNi9uCWIS7QGPrX9jD+sLwk+71tPNZXvSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673202757; a=rsa-sha256; cv=none; b=Zfvrpk5tjm/8RgG55/FSf7226FodKyIgGtsDwpP702ReTj+0wqT9Zn7qTTGoW7XSx28Db0 5t5y7yuz6aWeRcXVcV1sEdRmQo5Imnm8J34Ma+NJRJi+aAOwCXXWOr700sHdYDa0FFvoFO 4pDtQtVMNJaOPfdwur2hkWh54od0OK/2DSEwA2lG+nksSEPypsFKnf3YzuRhGKJ74ytFJw 3GQraEfiDeQSwOzry7qZ49Ymc6GnjX7jR9rTYbfbJAg09EyhShNM4Dvq/wW/4mHI8xFC/e NbJK06H4eG1g3qPWyFchoXLEnxjhNbZKR40DSMw4MzmU/1piT/xuJCimlusdAA== Received: from [192.168.1.151] (host-173-212-76-127.public.eastlink.ca [173.212.76.127]) (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) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Nqm046lPxz19Kr; Sun, 8 Jan 2023 18:32:36 +0000 (UTC) (envelope-from mhorne@freebsd.org) Message-ID: Date: Sun, 8 Jan 2023 14:32:34 -0400 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: (RPi) db> reboot -> cpu_reset failed Content-Language: en-CA To: "Bjoern A. Zeeb" Cc: freebsd-arm@freebsd.org References: <29q7q878-091-r17n-8r3n-o3n68p3646@mnoonqbm.arg> <38B92299-2776-476D-A81F-7C8EB4D59A13@googlemail.com> <8o4s9914-sq84-90pq-no3o-59r18n5on14@yvfgf.mnoonqbm.arg> From: Mitchell Horne In-Reply-To: <8o4s9914-sq84-90pq-no3o-59r18n5on14@yvfgf.mnoonqbm.arg> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N 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. 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 Cheers, Mitchell