NetBSD Problem Report #59705
From www@netbsd.org Mon Oct 13 03:57:26 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 98ADB1A923A
for <gnats-bugs@gnats.NetBSD.org>; Mon, 13 Oct 2025 03:57:26 +0000 (UTC)
Message-Id: <20251013035725.4CF6D1A923C@mollari.NetBSD.org>
Date: Mon, 13 Oct 2025 03:57:25 +0000 (UTC)
From: mrg@eterna23.net
Reply-To: mrg@eterna23.net
To: gnats-bugs@NetBSD.org
Subject: fusbtc crashes during boot trying to take sleeping lock from interrupt context
X-Send-Pr-Version: www-1.0
>Number: 59705
>Category: kern
>Synopsis: fusbtc crashes during boot trying to take sleeping lock from interrupt context
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 13 04:00:00 +0000 2025
>Originator: matthew green
>Release: -current
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
rockpro64
>Description:
booting -current kernel which has this device enabled now gives me:
[ 1.0000040] relevant cpu : 0 last held: 0
[ 1.0000040] relevant lwp : 0xffffc00000d49200 last held: 000000000000000000
[ 1.0000040] last locked : netbsd:iic_acquire_bus+0x88
[ 1.0000040] unlocked* : netbsd:fusbtc_write_reg+0x58
[ 1.0000040] owner field : 0xffffc00000d49200 wait/spin: 0/0
[ 1.0000040] Turnstile: no active turnstile for this lock.
[ 1.0000040] panic: LOCKDEBUG: Mutex error: mutex_tryenter,898: acquiring sleep lock from interrupt context
[ 1.0000040] cpu0: Begin traceback...
[ 1.0000040] trace fp ffffc00000fe6730
[ 1.0000040] fp ffffc00000fe6760 vpanic() at ffffc000005e1750 netbsd:vpanic+0x1c0
[ 1.0000040] fp ffffc00000fe67c0 panic() at ffffc000005e1814 netbsd:panic+0x44
[ 1.0000040] fp ffffc00000fe6850 lockdebug_abort1() at ffffc000005d3be4 netbsd:lockdebug_abort1+0xe4
[ 1.0000040] fp ffffc00000fe6890 mutex_tryenter() at ffffc0000058a8bc netbsd:mutex_tryenter+0x1ac
[ 1.0000040] fp ffffc00000fe68d0 iic_acquire_bus() at ffffc000003b6bd4 netbsd:iic_acquire_bus+0x84
[ 1.0000040] fp ffffc00000fe6900 fusbtc_read_reg() at ffffc000003c7b10 netbsd:fusbtc_read_reg+0x20
[ 1.0000040] fp ffffc00000fe6940 fusbtc_intr() at ffffc000003c8700 netbsd:fusbtc_intr+0x30
[ 1.0000040] fp ffffc00000fe6990 rk_gpio_intr() at ffffc000000486f0 netbsd:rk_gpio_intr+0xd0
[ 1.0000040] fp ffffc00000fe69d0 gicv3_fdt_intr() at ffffc00000077fac netbsd:gicv3_fdt_intr+0x1c
[ 1.0000040] fp ffffc00000fe6a00 pic_dispatch() at ffffc0000000288c netbsd:pic_dispatch+0x4c
[ 1.0000040] fp ffffc00000fe6a50 gicv3_irq_handler() at ffffc00000006fd0 netbsd:gicv3_irq_handler+0x130
[ 1.0000040] fp ffffc00000fe6ab0 cpu_irq() at ffffc000000c09a4 netbsd:cpu_irq+0x44
[ 1.0000040] tf ffffc00000fe6ad0 el1_trap() at ffffc000000c2f84 netbsd:el1_vectors+0x784
>How-To-Repeat:
boot -current on a rockpro64.
>Fix:
don't do iic_acquire_bus() from a hw interrupt?
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.