From nobody Sun Feb 06 20:08:40 2022 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 974FA19AD063 for ; Sun, 6 Feb 2022 20:08:43 +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 4JsL223P6Wz3LD5 for ; Sun, 6 Feb 2022 20:08:42 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 216K8eHb095840 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 6 Feb 2022 12:08:41 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 216K8eN9095839; Sun, 6 Feb 2022 12:08:40 -0800 (PST) (envelope-from fbsd) Date: Sun, 6 Feb 2022 12:08:40 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Cc: bob prohaska Subject: Rpi3, -current, panic: data abort with spinlock held Message-ID: <20220206200840.GA95801@www.zefox.net> 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 X-Rspamd-Queue-Id: 4JsL223P6Wz3LD5 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=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 X-Spamd-Result: default: False [2.52 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.985]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.941]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.58)[0.578]; MLMMJ_DEST(0.00)[freebsd-arm]; R_SPF_NA(0.00)[no SPF record]; 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]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N [repost, apologies if duplicate] While running -current on a Pi3, up to date as of a few days ago, an invocation of stress2 triggered the following panic: 20220205 10:25:26 all (7/809): arp.sh panic: data abort with spinlock held cpuid = 0 time = 1644085599 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x30 vpanic() at vpanic+0x174 panic() at panic+0x44 data_abort() at data_abort+0x2a0 handle_el1h_sync() at handle_el1h_sync+0x10 --- exception, esr 0x96000007 generic_bs_rr_4() at generic_bs_rr_4+0xc dwc_otg_interrupt_poll_locked() at dwc_otg_interrupt_poll_locked+0x69c dwc_otg_filter_interrupt() at dwc_otg_filter_interrupt+0x130 intr_event_handle() at intr_event_handle+0xf0 intr_isrc_dispatch() at intr_isrc_dispatch+0x74 bcm2835_intc_intr() at bcm2835_intc_intr+0xa4 intr_event_handle() at intr_event_handle+0xf0 intr_isrc_dispatch() at intr_isrc_dispatch+0x74 bcm_lintc_intr() at bcm_lintc_intr+0x1d8 intr_irq_handler() at intr_irq_handler+0x80 handle_el1h_irq() at handle_el1h_irq+0xc --- interrupt pcpu_cache_drain_safe() at pcpu_cache_drain_safe+0x2dc uma_reclaim_domain() at uma_reclaim_domain+0x1e4 uma_reclaim_worker() at uma_reclaim_worker+0x68 fork_exit() at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x14 KDB: enter: panic [ thread pid 6 tid 100076 ] Stopped at kdb_enter+0x44: undefined f901c11f db> bt Tracing pid 6 tid 100076 td 0xffffa000012dc000 db_trace_self() at db_trace_self db_stack_trace() at db_stack_trace+0x11c db_command() at db_command+0x368 db_command_loop() at db_command_loop+0x54 db_trap() at db_trap+0xf8 kdb_trap() at kdb_trap+0x1cc handle_el1h_sync() at handle_el1h_sync+0x10 --- exception, esr 0xf2000000 kdb_enter() at kdb_enter+0x44 vpanic() at vpanic+0x1b0 panic() at panic+0x44 data_abort() at data_abort+0x2a0 handle_el1h_sync() at handle_el1h_sync+0x10 --- exception, esr 0x96000007 generic_bs_rr_4() at generic_bs_rr_4+0xc dwc_otg_interrupt_poll_locked() at dwc_otg_interrupt_poll_locked+0x69c dwc_otg_filter_interrupt() at dwc_otg_filter_interrupt+0x130 intr_event_handle() at intr_event_handle+0xf0 intr_isrc_dispatch() at intr_isrc_dispatch+0x74 bcm2835_intc_intr() at bcm2835_intc_intr+0xa4 intr_event_handle() at intr_event_handle+0xf0 intr_isrc_dispatch() at intr_isrc_dispatch+0x74 bcm_lintc_intr() at bcm_lintc_intr+0x1d8 intr_irq_handler() at intr_irq_handler+0x80 handle_el1h_irq() at handle_el1h_irq+0xc --- interrupt pcpu_cache_drain_safe() at pcpu_cache_drain_safe+0x2dc uma_reclaim_domain() at uma_reclaim_domain+0x1e4 uma_reclaim_worker() at uma_reclaim_worker+0x68 fork_exit() at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x14 db> Thanks for reading, if more details are wanted I'll try to supply them. I have tried to update and rebuild, but the builds stop with: /usr/src/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp:38:6: error: expected '(' for function-style cast or type construction void X86ATTInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const { ~~~ ^ bob prohaska ----- End forwarded message -----