From nobody Thu Apr 04 18:42:26 2024 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 4V9Vq134vvz5FmkN for ; Thu, 4 Apr 2024 18:42:37 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (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 4V9Vq02qFpz4t78 for ; Thu, 4 Apr 2024 18:42:36 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net 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 2313A8D4A235 for ; Thu, 4 Apr 2024 18:42:27 +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 893582D029D8 for ; Thu, 4 Apr 2024 18:42:27 +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 pzAlqit19SPN for ; Thu, 4 Apr 2024 18:42:26 +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 723572D029D2 for ; Thu, 4 Apr 2024 18:42:26 +0000 (UTC) Date: Thu, 4 Apr 2024 18:42:26 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-arm@freebsd.org Subject: Re: panic: Assertion pcb->pcb_fpusaved == NULL failed at /usr/src/sys/arm64/arm64/vfp.c:209 In-Reply-To: <1143p485-6896-68pr-r515-7r67os0qr9q4@SerrOFQ.bet> Message-ID: References: <1143p485-6896-68pr-r515-7r67os0qr9q4@SerrOFQ.bet> 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: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[zabbadoz.net]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4V9Vq02qFpz4t78 On Wed, 3 Apr 2024, Bjoern A. Zeeb wrote: > Hi, > > I had a hang hard-er hang when loading a LinuxKPI based wireless driver for a > card probably in D3 state. Probing as running through three times (but > there's > a lot more PCIe cards ther, I didn't say the card being detectede). > > ^T would not work at this point. > > I could break into the debugger thoug, did so and typed cont waiting a bit > longer > and upon trying to get into debugger again this happened: Ok, I also just go this when manually trying to enter ddb. The unhelpful bis is that I do not have KDB_UNATTENDED set but yet it goes into automatic reboot. After reboot I did check: # sysctl debug.debugger_on_panic debug.debugger_on_panic: 1 Should I file a PR for this? > KDB: enter: Break to debugger > timeout stopping cpus > [ thread pid 9 tid 100240 ] > Stopped at kdb_alt_break_internal+0x180: str xzr, [x19, #1408] > db> timeout stopping cpus > panic: Assertion pcb->pcb_fpusaved == NULL failed at > /usr/src/sys/arm64/arm64/vfp.c:209 > cpuid = 0 > time = 1712167778 > KDB: stack backtrace: > db_trace_self() at db_trace_self > db_trace_self_wrapper() at db_trace_self_wrapper+0x38 > vpanic() at vpanic+0x1a4 > panic() at panic+0x48 > vfp_save_state_savectx() at vfp_save_state_savectx+0x48 > savectx() at savectx+0x38 > arm_gic_v3_intr() at arm_gic_v3_intr+0xe4 > intr_irq_handler() at intr_irq_handler+0x88 > handle_el1h_irq() at handle_el1h_irq+0x14 > --- interrupt > lock_delay() at lock_delay+0x18 > __mtx_lock_sleep() at __mtx_lock_sleep+0xdc > __mtx_lock_flags() at __mtx_lock_flags+0x138 > softclock_call_cc() at softclock_call_cc+0xd0 > softclock_thread() at softclock_thread+0xb8 > fork_exit() at fork_exit+0x78 > fork_trampoline() at fork_trampoline+0x18 > Uptime: 16m57s > Automatic reboot in 15 seconds - press a key on the console to abort > > > > > -- Bjoern A. Zeeb r15:7