Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp782536rdh; Thu, 23 Nov 2023 19:23:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqpI4vK3T5PSpgVEdK+g5/I9LCwUiwnXYpmmHKQvKMom1Gk0e6VPE8kWqt8ROzUW1W6r7X X-Received: by 2002:a17:902:ced0:b0:1cc:ae1a:b0b8 with SMTP id d16-20020a170902ced000b001ccae1ab0b8mr2058515plg.44.1700796183374; Thu, 23 Nov 2023 19:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700796183; cv=none; d=google.com; s=arc-20160816; b=vyugLmUYwJWT+q9YOfVnjR23rJdHCLfko3QQMk9kjQplTziY5brxbgXgJMNp5URoBm Wqg3m+BoYYmOZQglZ1XtNtKd9cyWHU9N4pJ3JB27qPQsYS5oMoJvjInOMj/nEWgz8pzb H3TBzEwNOL+rB9OqArbGHiGg4ATKrkUKXcHafKly76Mh3IjQxukeC94VUSQkglDdYc8F DYVWOZpApVXK7d3of6QmVlTnuGIOSvxP7hC6iwWypbR57ZOuuVf/g9RR1gXB3oHPfUjH Jp6MCqCuktNR7uQDdwn9RrcTnd/tjqxuwwfM2cj2rmwvWEWthRIk7U6ydS96nTCpFMKF hVXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=mC8uqEUhGyFbXJJP595vbl/beE/LB7436pVj/RwR3UQ=; fh=rn6i7x7VfMkYrnizZxLS+hs+V40oTHdGhuzmegtG1RU=; b=IcZhX4200fmepCic0ZI5V4o2cQmDicgp7rszLb02pxzUsaj+goRyLWRGEq2LJHPol0 qN3pJv10q/lw+Vm1obSbtxL+MIH8M04/OPJu8uFJU7lWuuvRiy/sMLAGClMvS6zGbwdW 5HeXyYUCzuQKslL0TOEwUo2+lEtFrtVMV+4rrqEjoNgtw8JrAKITN+CSQ74CvSinmzB8 mF6o0SAsc57wCBFkKi17NeOIoIIzwL6T9lQvhpVZ4vOYAKACicic5aiDBdcoOCPRUkuR 2lFDui+a+JI7yO+/vtB3MzLC+pEEfv+DWo5e4sviXGtIj/tnoNrcvFDmfH2GdzlDx/T3 M0MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MYfYCshk; spf=pass (google.com: domain of linux-bluetooth+bounces-202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i18-20020a17090332d200b001c61bdd8e89si2558995plr.150.2023.11.23.19.23.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 19:23:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MYfYCshk; spf=pass (google.com: domain of linux-bluetooth+bounces-202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3CD03B20F16 for ; Fri, 24 Nov 2023 03:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3749D10FF; Fri, 24 Nov 2023 03:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MYfYCshk" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27104D54 for ; Thu, 23 Nov 2023 19:22:47 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c503da4fd6so17783881fa.1 for ; Thu, 23 Nov 2023 19:22:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700796165; x=1701400965; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mC8uqEUhGyFbXJJP595vbl/beE/LB7436pVj/RwR3UQ=; b=MYfYCshkJ8UxHNCi8GLDWXz8cEL41kiDx6ti76fDyH4y2cLsTVRb0NIu9NgJWgbNAA wOsID39/NpwcpJMNXchM6LyUFNaiYNhV04qeJII+wbMsT1HqRbc/RE/4mqYoMlu2Dvjv 055sOAIHy48YnoX5JmrDXSHZdJOpfHkVN1rQSf8D8zx9LSJ0eo1PQ900NPJ37879CnYh QiP9BRHxFD4MEoIdUK289xbsJLGUDsPdozAgV3bY1x1lWLpxRJgR+xOiWdFSvismSBin fQpdF9UE/ceRu3yX4wxJKwawJNeqP/wO5yhbsJWJjQXv+5t+akNrF1PzHrJNixWJEX4o WVCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700796165; x=1701400965; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mC8uqEUhGyFbXJJP595vbl/beE/LB7436pVj/RwR3UQ=; b=JESL+Kh8KDCNEGLVW/0kdlC9lcF2kLm2X449m1dz+C0GdF0Mn0VOpYQEQLkd6ozu7B zm2vQcKF5F93/S312vgcN74P0mP2kLCIbTyrlGQ2SuAokbo3+++3znNhtJvlUB0HedUD PMaKGGKhkN0cynPWIW4s/MFoHn8TAeGzbuvzbmqFj4tplvLwSnEBBeEZez9fRH6ZMp5g 1PI+nR1hGJ4LH742RCWNqo9xBU9lymZYb6gJiH4rH3zcVL8An4OILCfC8ZlRG1lqpN1I a3zC+I3siXvx7pPsInuGWri2YFrOVwPjvtao2UZ+EB6BjPwtG5pu/YnsH67zBDbz6WGM EcyA== X-Gm-Message-State: AOJu0YxtLcrE46sXJYfgH47qHpOkm2oo2gYcVol/3sgZrn6JBWALfuWS M9+qqRdKB08geTRDa7MjYzEq3cvfbRX91bjEQ6U= X-Received: by 2002:a2e:7d18:0:b0:2c8:81a3:63e3 with SMTP id y24-20020a2e7d18000000b002c881a363e3mr906417ljc.1.1700796165034; Thu, 23 Nov 2023 19:22:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <38cb99f2b63dc55763e9e2c8ae4d4cb14afc6770.camel@tlvince.com> In-Reply-To: <38cb99f2b63dc55763e9e2c8ae4d4cb14afc6770.camel@tlvince.com> From: Luiz Augusto von Dentz Date: Thu, 23 Nov 2023 22:22:32 -0500 Message-ID: Subject: Re: MediaTek MT7922 controller crashes after LE Setup Isochronous Data Path To: Tom Vincent Cc: linux-bluetooth@vger.kernel.org, pav@iki.fi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tom, On Thu, Nov 23, 2023 at 7:41=E2=80=AFAM Tom Vincent wro= te: > > I'm working through an issue with Bluetooth LE Audio with a new headset > (Creative Zen Hybrid Pro). The end result of which is no audio > input/output device is created. Hmm, didn't know that creative had this model with LE Audio, probably will try to get one myself for testing. > With the generous help from Pauli (cc'ed) of the pipewire team, we can > see the headset connection establishes OK, but then appears to hit a > bug in the adapter's firmware (MediaTek MT7922), which triggers a > coredump and restarts. > > Full logs and other context can be found at > https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3666#note_21792= 46 > > ... but as an overview of logs via btmon: > > =3D Note: Linux version 6.6.1 (x86_64) > 0.069372 > =3D Note: Bluetooth subsystem version 2.22 > 0.069374 > =3D New Index: 14:AC:60:46:9E:9C (Primary,USB,hci3) [hci3] > 0.069375 > =3D Open Index: 14:AC:60:46:9E:9C [hci3] > 0.069375 > =3D Index Info: 14:AC:60:46:9E:9C (MediaTek, Inc.) [hci3] > 0.069376 > @ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} > 0.069377 > @ MGMT Open: bluetoothctl version 1.22 {0x0002} > 0.069378 > > > ACL Data RX: Handle 512 flags 0x01 dlen 24 #142 [hci3] > 12.183718 > ATT: Handle Value Notification (0x1b) len 46 > < HCI Command: LE Set Connected... (0x08|0x0062) plen 24 #143 [hci3] > 12.183932 > CIG ID: 0x00 > > HCI Event: Command Complete (0x0e) plen 8 #144 [hci3] > 12.184357 > LE Set Connected Isochronous Group Parameters (0x08|0x0062) ncmd > 1 > > [ ... snip ... ] > > > HCI Event: Command Status (0x0f) plen 4 #170 [hci3] > 12.664283 > LE Create Connected Isochronous Stream (0x08|0x0064) ncmd 1 > > [ ... snip ... ] > > > HCI Event: LE Meta Event (0x3e) plen 29 #186 [hci3] > 13.203205 > LE Connected Isochronous Stream Established (0x19) > < HCI Command: LE Setup Isochron.. (0x08|0x006e) plen 13 #187 [hci3] > 13.203326 > Handle: 1024 > @ RAW Open: btmon (privileged) version 2.22 {0x0003} > 13.203504 > @ RAW Close: btmon {0x0003} > 13.203512 > > HCI Event: Command Complete (0x0e) plen 6 #188 [hci3] > 13.203576 > LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1 > < HCI Command: LE Setup Isochron.. (0x08|0x006e) plen 13 #189 [hci3] > 13.203606 > Handle: 1024 > > HCI Event: Command Complete (0x0e) plen 6 #190 [hci3] > 13.203929 > LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1 > < ACL Data TX: Handle 512 flags 0x00 dlen 10 #191 [hci3] > 13.214209 > ATT: Write Command (0x52) len 5 > =3D Vendor Diagnostic (len 72) [hci3] > 13.323162 > 6f fc 44 00 3c 41 53 53 45 52 54 3e 20 2e 2e 2f o.D. > ../ > > [ ... snip ... ] > > =3D Vendor Diagnostic (len 19) [hci3] > 14.095706 > 6f fc 0f 00 0a 3b 63 6f 72 65 64 75 6d 70 20 65 o....;coredump > e > > [ ... snip ... ] > =3D bluetoothd: profiles/audio/transport.c:link_set_state() Unable... > 14.143326 > =3D Close Index: 14:AC:60:46:9E:9C [hci3] > 14.188719 > @ MGMT Event: Index Removed (0x0005) plen 0 {0x0001} [hci3] > 14.188726 > @ MGMT Event: Index Removed (0x0005) plen 0 {0x0002} [hci3] > 14.188726 > =3D Delete Index: 14:AC:60:46:9E:9C [hci3] > 14.188733 > =3D bluetoothd: profiles/audio/micp.c:micp_detached() unable to fin.. > 14.189265 > =3D bluetoothd: profiles/audio/vcp.c:vcp_detached() Unable to find... > 14.189498 > =3D bluetoothd: Endpoint unregistered: sender=3D:1.163 path=3D/MediaEnd.. > 14.190532 > =3D bluetoothd: Endpoint unregistered: sender=3D:1.163 path=3D/MediaEnd.. > 14.190598 > =3D bluetoothd: Endpoint unregistered: sender=3D:1.163 path=3D/MediaEnd.. > 14.190653 > =3D bluetoothd: Endpoint unregistered: sender=3D:1.163 path=3D/MediaEnd.. > 14.190714 > =3D bluetoothd: profiles/audio/bap.c:bap_detached() Unable to find... > 14.197087 > =3D bluetoothd: Battery Provider Manager destroyed > 14.197851 > =3D New Index: 00:00:00:00:00:00 (Primary,USB,hci0) #0 [hci0] > 14.436548 > =3D Open Index: 00:00:00:00:00:00 [hci0] > 14.436637 > =3D Index Info: 00:00:00:00:00:00 (MediaTek, Inc.) [hci0] > 14.436640 > > From the kernel/dmesg side: > > [ 19.567508] mt7921e 0000:01:00.0: enabling device (0000 -> 0002) > [ 19.584454] mt7921e 0000:01:00.0: ASIC revision: 79220010 > [ 19.662305] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build > Time: 20230627143702a > [ 20.048165] mt7921e 0000:01:00.0: WM Firmware Version: ____000000, > Build Time: 20230627143946 > [ 21.137805] mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0 > [ 256.380280] Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: > 20230627144220 > [ 256.521395] Bluetooth: hci0: Device setup in 144287 usecs > [ 256.521408] Bluetooth: hci0: HCI Enhanced Setup Synchronous > Connection command is advertised, but not supported. > [ 291.819885] Bluetooth: hci0: Opcode 0x2065 failed: -22 > [ 293.109210] Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: > 20230627144220 > [ 293.246331] Bluetooth: hci0: Device setup in 138096 usecs > [ 293.246342] Bluetooth: hci0: HCI Enhanced Setup Synchronous > Connection command is advertised, but not supported. > [ 315.219892] Bluetooth: hci0: Mediatek coredump end > [ 315.431355] usb 1-5: reset high-speed USB device number 3 using > xhci_hcd > [ 618.882312] bluetoothd[9227]: segfault at 55b685cb1f50 ip > 00007f07b909d2ce sp 00007ffee7201e40 error 4 in > libc.so.6[7f07b9028000+15a000] likely on CPU 7 (core 3, socket 0) > [ 618.882350] Code: ff 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 > 85 ff 0f 84 bb 00 00 00 55 48 8d 77 f0 53 48 83 ec 18 48 8b 1d 42 db 13 > 00 <48> 8b 47 f8 64 8b 2b a8 02 75 57 48 8b 15 d0 da 13 00 64 48 83 3a > > > The adapter's firmware `HW/SW Version: 0x008a008a, Build Time: > 20230627144220` is the latest in linux-firmware > (https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.= git/tree/WHENCE?id=3Dba1aa06f37477a702ebabf14b5753378460c9343#n5579) > > Please let me know how best to proceed with this. Thanks! You will probably need to reach out to the manufacturer in this case since it seems something is happening below HCI which we don't really have any control over, the other option is to switch to another controller capable of creating Isochronous Channels. --=20 Luiz Augusto von Dentz