From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796329555; b=n30t398zZdpBfMr24uhUuOFmGrl1YihXqEVwZ3yG+dcTDJKmjvFa5SW8vHh7SrSTXbZv 42e1exzZ2YyPbKS2p4pI9Bv0qQKOzGX5yIQcUT77uyG5758okhmv47moZ5lnNAYB5nJiO M9yUmPbdpPpF5hjveaYa52VPPoVc78iuGN5iPEs4oDqk4fkKCV+Kkx3Ehj7rM8+Sy4I/G Xu6ideSzdYnk2eSMDz0xPiyOy+g/vGGzvJ7iPaJtz5nHuqjnDiPq6MMvfPvWTfLf8oRlZ +7TI5n+yaIAfMA8TEYjlqZhPAX3LuKl36wCywVrUQgleAxMKk3PSUbWqsJ8j3gUWB2w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796329555; h=Received:DKIM-Signature:Received:From:To:Subject:Date: X-Bugzilla-Reason:X-Bugzilla-Type:X-Bugzilla-Watch-Reason: X-Bugzilla-Product:X-Bugzilla-Component:X-Bugzilla-Version: X-Bugzilla-Keywords:X-Bugzilla-Severity:X-Bugzilla-Who: X-Bugzilla-Status:X-Bugzilla-Resolution:X-Bugzilla-Priority: X-Bugzilla-Assigned-To:X-Bugzilla-Flags:X-Bugzilla-Changed-Fields: Message-ID:Content-Type:Content-Transfer-Encoding:X-Bugzilla-URL: Auto-Submitted:MIME-Version; bh=ZnMiyHp75iVWRn6bxuZiO57nWeBVZ1gH/FO9LVwsgn0=; b=Um+Nc7kF2zea/gKOPdxnqK5sDizxI3EgzQ+39OdSBIecF3xOEMX5yl3ZymMxYSLEI58X IKMtR1WEp/ZPekUNRh/cuL5PbQjNIPiJsNsXOUiYLM91GXTVRpvFRWHaHfzupKGl2nCGB orjZayM9eQ74/ClwPt7CL0ll+eds7nvpqB2PWikMPcevWrqjdg2t0tZpexOEZRYeX0P0b f18yX9wLqt+oojc3U+wSoL5bYUFST1euZ2Egswn6r5irg/UgDGkTyw0UOsETdvIm7CY4N iETxOIozPOk1wbk+YuQj8kpH2gB76WRo10tUkBdhe00ZeMBMLXzXSnPJTJS65A479HQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dTG8Oeg3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3944606A322 for ; Thu, 3 Dec 2026 20:25:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dTG8Oeg3 Received: by smtp.kernel.org (Postfix) with ESMTPS id 53A2F1F0092B for ; Thu, 3 Dec 2026 20:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796329555; bh=ZnMiyHp75iVWRn6bxuZiO57nWeBVZ1gH/FO9LVwsgn0=; h=From:To:Subject:Date; b=dTG8Oeg3tXQnDuHCIL09oBBQWl8zXOVsU/+kSiG5E7WKD2EfoGsEOYoWnXaJkmbGE larswW+6v2c5HZwNyNdl5mBrBFkaJoZHW2uW3bHWWb8MmR0ERES9hbK7T+/ONxsXJo PKG8NqU0xk80Y96CMvy4lYwIFOooLcWUQFeof30ePfcx8g670y7m8uLyADpRp0Ksiy xl1ks6c/Xe3BdlG3GWcwkdUOYqiDli6LF//llj1gq6HzTDNbdUtEVg1nW7fDuik2qP 9PL6iwCAMsGLMfAa+SX4emB6Og1rRlRDLfl7W5h1TPzZyM/WzUpXCwtDnHgQnpTWiW e4KPO8n2TKHxQ== Received: by aws-us-west-2-korg-bugzilla-alma10-1.codeaurora.org (Postfix, from userid 48) id 505E6240040C; Thu, 3 Dec 2026 20:25:55 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-bluetooth@vger.kernel.org Subject: [Bug 222376] New: btmtk: MT6639 (MT7927) BT wedged after warm reboot from Windows; ACPI _PRR reset recovers it Date: Thu, 03 Dec 2026 20:25:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Drivers X-Bugzilla-Component: Bluetooth X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla@accelocom.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linux-bluetooth@vger.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version cf_kernel_version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cf_regression Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugzilla.kernel.org/show_bug.cgi?id=3D222376 Bug ID: 222376 Summary: btmtk: MT6639 (MT7927) BT wedged after warm reboot from Windows; ACPI _PRR reset recovers it Product: Drivers Version: 2.5 Kernel Version: 7.3.7-2-cachyos Hardware: AMD OS: Linux Status: NEW Severity: normal Priority: P3 Component: Bluetooth Assignee: linux-bluetooth@vger.kernel.org Reporter: bugzilla@accelocom.com Regression: No After a warm restart from Windows 11, the MT6639 Bluetooth part of an MT7927 card sometimes crashes during btusb setup and cannot be recovered by any reset the driver has. The chip drops off USB until the machine is powered off. Cold boots always work. The laptop's ACPI tables give the chip's USB port a _PRR power resource whose _RST pulses the chip's reset line. Calling that _RST brings a wedged chip back at once, and calling it before btusb loads has prevented the failure on every start since. I'd like to suggest that btmtk use _PRR the way btintel_acpi_reset_method() does. Hardware / software ------------------- - ASUS ROG Zephyrus G14 GA402XY, BIOS GA402XY.318 (AMD) - MT7927 card (replacement for the factory MediaTek card): Wi-Fi via mt7925e (PCI 14c3:7927), BT via btusb (USB 0e8d:6639, usb 1-5) - Kernel 7.3.7-2-cachyos (failures also seen on 7.3.6-2 and 7.3.6-3) - mediatek/mt7927/BT_RAM_CODE_MT6639_2_1_hdr.bin, Build Time 20260611041233 - Dual boot with Windows 11 (vendor driver) Failure ------- Restart Windows, boot Linux. It happens intermittently (2026-11-26, 2026-11-30, 2026-12-03), only right after Windows. Log from 2026-12-03: [ 2.799039] usbcore: registered new interface driver btusb [ 6.600075] Bluetooth: hci0: Mediatek coredump end [ 13.348059] Bluetooth: hci0: Execution of wmt command timed out [ 13.348173] Bluetooth: hci0: Failed to send wmt func ctrl (-110) [ 18.468307] Bluetooth: hci0: Failed to read uhw reg(-110) [ 18.587018] usb 1-5: reset high-speed USB device number 3 using xhci_hcd [ 23.701014] usb 1-5: device descriptor read/64, error -110 ... [ 72.436080] usb 1-5: device not accepting address 3, error -62 [ 83.701085] usb 1-5: USB disconnect, device number 3 ... [126.716127] usb usb1-port5: attempt power cycle [137.972289] usb 1-5: device not accepting address 6, error -62 [149.236465] usb usb1-port5: unable to enumerate USB device The register-based subsystem reset cannot run (uhw reads time out), the USB port reset and the hub port power cycle both fail, and the WMT timeout reset from "Bluetooth: mt7925: trigger reset on WMT timeout" is gated to dev_id 0x7925. While this runs, the built-in keyboard on the same xHCI controller (0000:65:00.3) stops responding. ACPI reset ---------- The btusb interfaces' ACPI companion is the port the chip sits on: /sys/bus/usb/devices/1-5:1.0/firmware_node/path: \_SB_.PCI0.GP17.XHC0.RHUB.PRT5 An SSDT (OEM Table ID "CPMWLRC", AMD CPM) gives PRT5 a _PRR returning \_SB.PRWB, whose _RST drives a GPIO low, waits, drives it high, and sleeps 100 ms. The Wi-Fi function (\_SB.PCI0.GPP6.WLAN) has its own _PRR, \_SB.PRWL. On the wedged chip above, 25 minutes later, calling \_SB.PRWB._RST (through the acpi_call module) brought it straight back: [1634.174012] usb 1-5: new high-speed USB device number 8 using xhci_hcd [1634.318017] Bluetooth: hci0: Loading BT firmware: mediatek/mt7927/BT_RAM_CODE_MT6639_2_1_hdr.bin [1636.134028] Bluetooth: hci0: Device setup in 1784878 usecs Since then, a boot service calls _RST, waits for the chip to come back on USB, and only then loads btusb. Every start since has been clean: two after a Windows restart and one after a Windows shutdown. The reset adds about 0.6 s. Windows Bluetooth also works after both a Linux restart and a Linux shutdown. That is only three starts after Windows, but the recovery above is direct evidence that _RST reaches the chip when nothing else does. Suggestions ----------- 1. Recovery: when MT79xx/MT6639 setup fails (WMT timeout, or uhw register access fails), and the interface's ACPI companion has a _PRR, evaluate its _RST as btintel_acpi_reset_method() does, before or instead of the USB-level resets that cannot reach a wedged chip. 2. Remove the dev_id =3D=3D 0x7925 check on the "wmt func ctrl" timeout in btmtk_usb_setup(), so MT6639 also triggers a reset there. 3. Prevention (optional): pulse _RST once at the first probe after boot, before downloading firmware, so a firmware state left by another OS is never reused. If the chip already reports the patch as loaded (BTMTK_WMT_PATCH_DONE) on a fresh boot, the download is skipped, which may be how the Windows state survives. This costs a re-enumeration, so it would need a once-per-boot guard. Possibly related: bugs 222164 and 221878 (MT7902: firmware coredump, then the subsystem reset fails and the chip drops off USB for good). A _PRR reset might recover those too, where the platform provides one. I can test patches on this machine, including repeated Windows-to-Linux restarts, and can collect btmon or dynamic debug output if a failure recurs. --=20 You are receiving this mail because: You are the assignee for the bug.=