From nobody Thu Nov 21 15:35:11 2024 X-Original-To: usb@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 4XvMkC11Czz5dFFk for ; Thu, 21 Nov 2024 15:35:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvMkB72yWz4DkV for ; Thu, 21 Nov 2024 15:35:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732203315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=myfkJpQxnhB8vlBwounwoqQ9PldhbSLTddyu9OSODUw=; b=THj6Ers9EWNKaoz1vQlOap+KYLcF2VDEldO3KB3GBbsM9NNweWkFr5NXV0dLsQY4ZlZfS4 AoN55GXl1lczjmLWmz44/QAeLlJghjIivrxdF35xUxv2WOjr9IpVm72v6LeVlyYDvVj3Do e6PW5fxRJmy/s7yL4A3cjZ9wTRmDD0oyZtVU8vxei+TfiiqqVwRiXWNEkzetSyNa098xp7 qpFr9CUPtkh4yPetCj1tg/ZrrmtKyFb5PVuVKTNAgjuda61uWeePAZ832sGJVg+3Sgrh59 +3Kh+uPMrajGK8Tuy2CiuoGywsT9/D1U+SKmZHoRSxscyaZLvKNm3Bnf4gO74Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732203315; a=rsa-sha256; cv=none; b=qFwa9FZ2GxUUvEIPIsOKgiG+3hsPVpW38yE72KplkxAGVRxiiJZDG8C9w+x4B04FVoEvt/ k1oDD56s7y44DSQ+kpuDkQ88NmjNcyVzOUMxX+4Bax8rclKFV4vbx1JIYwpfcffY7Jh/bJ iSEWRYixiudugPrrQxet6VYgHRy48jdlGkr50kSZtZM1ueDXB0trY7uHPJI9ifClA5uR3J /bU+hnCPk7+M9VTFWYLuABRVDHvpuW7VO4YlMiBQxrsSQ/Pd7Z11qPK9VygaR7OASXsMfu Hp4zz2CZiBGmOv2LUV4vXp+yDEgH2IRHmMLObSNXTWuYKwJ9RXGHgH2g8JS1MA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XvMkB6WhkzlR3 for ; Thu, 21 Nov 2024 15:35:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4ALFZEfc085245 for ; Thu, 21 Nov 2024 15:35:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ALFZEjh085244 for usb@FreeBSD.org; Thu, 21 Nov 2024 15:35:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 263783] USB MBIM: Support for LTE/4G USB modems (MBIM) Date: Thu, 21 Nov 2024 15:35:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: feature, needs-qa, vendor X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263783 --- Comment #40 from Zhenlei Huang --- (In reply to Pierre Pronchery from comment #39) > panic: _mtx_lock_sleep: recursed on non-recursive mutex I'm not sure if the following is proper for drivers, but you may give it a = try, ``` static int umb_attach(device_t dev) { ... - mtx_init(&sc->sc_mutex, device_get_nameunit(dev), NULL, MTX_DEF); + mtx_init(&sc->sc_mutex, device_get_nameunit(dev), NULL, MTX_DEF | MTX_RECURSE); ... } ``` --=20 You are receiving this mail because: You are the assignee for the bug.=