From nobody Sun Oct 01 16:25:23 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 4Rz8Zh0Yhwz4vW8r for ; Sun, 1 Oct 2023 16:25:32 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rz8Zg11pzz3PZt for ; Sun, 1 Oct 2023 16:25:30 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net; dmarc=none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 391GPO9U068859 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 1 Oct 2023 09:25:24 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 391GPNax068858; Sun, 1 Oct 2023 09:25:23 -0700 (PDT) (envelope-from fbsd) Date: Sun, 1 Oct 2023 09:25:23 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Cc: bob prohaska Subject: Re: Shutdown -r under -current hangs on RPi3 Message-ID: References: <0AADDACB-ABA3-47FF-B3A7-05B313F5326C@yahoo.com> <9D29DD48-1572-4C04-AD88-8436AC8DDDCC@yahoo.com> <88F77A9A-F3BB-4FEA-8330-EC5992D7B36B@yahoo.com> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: - X-Spamd-Result: default: False [-1.05 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.954]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[zefox.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4Rz8Zg11pzz3PZt On Sun, Sep 24, 2023 at 08:17:54AM -0700, bob prohaska wrote: > > It appears that setting > debug.bootverbose=1 > suppresses the otherwise-persistent > Khelp module "ertt" can't unload until its refcount drops from 1 to 0. > message during shutdown. No new output either, apart from the swap > removal notice. > > So far, the few shutdown -r experiments tried have not gotten stuck, > even after an OS build/install cycle. Another shutdown hang has been observed with -current on a Pi3. This time bootverbose was on, as was ucom debug. This machine has an FTDI usb-serial adaper. The serial console reported: *** FINAL System shutdown message from bob@pelorus.zefox.org *** System going down IMMEDIATELY Oct 1 08:21:26 pelorus shutdown[78571]: reboot by bob: Stopping sshd. Waiting for PIDS: 1063. Stopping cron. Waiting for PIDS: 1073. Stopping powerd. Waiting for PIDS: 1002. Stopping devd. Waiting for PIDS: 752. Writing entropy file: . Writing early boot entropy file: . . Terminated ucom_inwakeup: tp=0xffffa00021cc1c00 ucom_ioctl: cmd = 0x2000740e ucom_inwakeup: tp=0xffffa00021cc1c00 ucom_inwakeup: tp=0xffffa00021cc1c00 ucom_close: tp=0xffffa00021cc1c00 ucom_shutdown: ucom_dtr: onoff = 0 ucom_line_state: on=0x00, off=0x01 ucom_rts: onoff = 1 ucom_line_state: on=0x02, off=0x00 Oct 1 08:21:32 pelorus ucom_cfg_close: syslogd: exiting on signal 15 Waiting (max 60 seconds) for system process `vnlru' to stop... done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining... 0 0 0 done All buffers synced. Swap device da0s2b removed. Uptime: 3d0h14m47s Resetting system ... Both Ethernet LEDs turned off, if that's significant. After about half an hour, I pulled the plug. The machine came up hands-off. Thanks for reading, bob prohaska