Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1531437rdb; Fri, 1 Dec 2023 22:43:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwQf31Y9C3/TRJsXvSf4Bbly28TO9uYIhZFUfjDi0+CXisGbdMGGxvMHWKQ3FiXKTZVMfa X-Received: by 2002:a05:6808:1988:b0:3ab:8431:8037 with SMTP id bj8-20020a056808198800b003ab84318037mr1203662oib.32.1701499418746; Fri, 01 Dec 2023 22:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701499418; cv=none; d=google.com; s=arc-20160816; b=NmKhO07wFfItnRbEyCDvh+T0X4WehoFaBh+pTTbKrJoWE7K2AUcp4YyPYlEMYosdM3 ixskPwcRUgfhQCKqteXPB0FJHNx9AbNTCMYs/0breRmPNqPV3LA//zWmJ31H8gQ2JxnZ DZ1m7rsAcT+qayw9+qIgyb7l3Sgu5ViyBB32kMtNWHtroxBPWszdbpUgiwLY6OC/POHk e43mtAX+EtW/rJQFJ4UFWIZm5OXdyO5hUZPCtoa5oErBwYm5Dc782+YCFEYuVO0l4Uaq FgxDlXbxmO4YErqLrEvrUCokZsAQQdxALQW8GHGsa6KQWy23Ir/YbNNPXooPl/jxCR4l HWyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature; bh=lJ6CLBPmn1Z2D81iRRarPRH80dMiJ6ru3Jjv1I7wNzc=; fh=1wEyv8pRTsmcqeT+Rl/8zEVXmuBzoNyyu//uqIL0YBQ=; b=tV0eNVm79PoWdhthmtof0qLkpf9g64hrUMLUaGO7UzKS81/nRoysvzQObhEHVBrf29 R2BYeS30DGxEgcs/7Z3vEl4nk1K6VNsDIUBjAaNXC8lvzCEL2nnwnPpbTQ8eX2K/dVsG VsaGcFb1OKrqcin0vc+g7HMPZE8g9SbXrb+ZrIx09M59B73UZYypordILLACAsXvB37A Hf1D7mBVjVVOWvMFA60hjh6ok3e44XDanq2Zrmy6YqjTTAJbYhlfmTXyaIgKoAnvlnCQ 7EAdW1F70fsUr2Ck6dLMlsI582QyJGfmLIVZhr/zMPq4d3cmwf16Eq8z/aHqb55HLwMs tlIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@moonlit-rail.com header.s=rsa2021a header.b=DPfoABis; dkim=neutral (no key) header.i=@moonlit-rail.com; spf=pass (google.com: domain of linux-bluetooth+bounces-335-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=moonlit-rail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s5-20020a17090a2f0500b002865290780csi3133327pjd.26.2023.12.01.22.43.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 22:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-335-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@moonlit-rail.com header.s=rsa2021a header.b=DPfoABis; dkim=neutral (no key) header.i=@moonlit-rail.com; spf=pass (google.com: domain of linux-bluetooth+bounces-335-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=moonlit-rail.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 D0DE7B20DB6 for ; Sat, 2 Dec 2023 06:43:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7E53BE5D; Sat, 2 Dec 2023 06:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=moonlit-rail.com header.i=@moonlit-rail.com header.b="DPfoABis"; dkim=permerror (0-bit key) header.d=moonlit-rail.com header.i=@moonlit-rail.com header.b="RIPmwQbH" X-Original-To: linux-bluetooth@vger.kernel.org Received: from hua.moonlit-rail.com (hua.moonlit-rail.com [45.79.167.250]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2507D10D0 for ; Fri, 1 Dec 2023 22:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=moonlit-rail.com; s=rsa2021a; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lJ6CLBPmn1Z2D81iRRarPRH80dMiJ6ru3Jjv1I7wNzc=; t=1701499406; x=1704091406; b=DPfoABisNRE3n26aa7zZssyFWugSjMc6/7/FGKYXNU/8ABhFjX57YTq8BInatWYpVZV++yT7sbh aaj6wiPOuKxbptussw4BCje/4oNVpf/UcHiGfK61HYvkKF1mPrDBvPBFI1ede+q2tAiBPcadTPxoy GxNFN2kI2FABHEWIToTSsZ9bT4VFbTHSwfN3CGzPZgzKaN+FUt7QmS1VBx0aut5AsgVk8c4mix3m1 O1y19s9hLwyBxDI2455C3aIXjyl8Ua9VQr8E6QVR33onW6XUDjBd1bR3OPlZJYKIgbmG8uKzmuS2h e0/O8ILVCcO5nFnFXUbgpLWpCWczZF9wfCCA==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=moonlit-rail.com; s=edd2021a; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lJ6CLBPmn1Z2D81iRRarPRH80dMiJ6ru3Jjv1I7wNzc=; t=1701499406; x=1704091406; b=RIPmwQbHp1jIwXjrGbXjcwqlxzk8tljpr/ZQNLNoPIhERBr1VaxcnOdjtaun7K+jfBVWLEb5PwZ vAtvnsbtJCg==; Message-ID: <6a710423-e76c-437e-ba59-b9cefbda3194@moonlit-rail.com> Date: Sat, 2 Dec 2023 01:43:16 -0500 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Regression: Inoperative bluetooth, Intel chipset, mainline kernel 6.6.2+ To: Greg KH , Thorsten Leemhuis Cc: "stable@vger.kernel.org" , Linux kernel regressions list , linux-bluetooth@vger.kernel.org, Basavaraj Natikar References: <8d6070c8-3f82-4a12-8c60-7f1862fef9d9@leemhuis.info> <2023120119-bonus-judgingly-bf57@gregkh> Content-Language: en-US, en-GB From: "Kris Karas (Bug Reporting)" In-Reply-To: <2023120119-bonus-judgingly-bf57@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Greg KH wrote: > On Fri, Dec 01, 2023 at 07:33:03AM +0100, Thorsten Leemhuis wrote: >> CCing a few lists and people. Greg is among them, who might know if this >> is a known issue that 6.6.4-rc1 et. al. might already fix. > > Not known to me, bisection is needed so we can track down the problem > please. And the winner is... > commit 14a51fa544225deb9ac2f1f9f3c10dedb29f5d2f > Author: Basavaraj Natikar > Date: Thu Oct 19 13:29:19 2023 +0300 > > xhci: Loosen RPM as default policy to cover for AMD xHC 1.1 > > [ Upstream commit 4baf1218150985ee3ab0a27220456a1f027ea0ac ] > > The AMD USB host controller (1022:43f7) isn't going into PCI D3 by default > without anything connected. This is because the policy that was introduced > by commit a611bf473d1f ("xhci-pci: Set runtime PM as default policy on all > xHC 1.2 or later devices") only covered 1.2 or later. > > [ snip ] > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > index b9ae5c2a2527..bde43cef8846 100644 > --- a/drivers/usb/host/xhci-pci.c > +++ b/drivers/usb/host/xhci-pci.c > @@ -535,6 +535,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) > /* xHC spec requires PCI devices to support D3hot and D3cold */ > if (xhci->hci_version >= 0x120) > xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; > + else if (pdev->vendor == PCI_VENDOR_ID_AMD && xhci->hci_version >= 0x110) > + xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; > > if (xhci->quirks & XHCI_RESET_ON_RESUME) > xhci_dbg_trace(xhci, trace_xhci_dbg_quirks, Huh, OK, I was expecting this to be a patch made to the bluetooth code, as it caused bluetoothd to bomb with "opcode 0x0c03 failed". But I just verified I did the bisect correctly by backing this two-liner out of vanilla 6.6.3, and bluetooth returned to normal operation. Huzzah! Just a brief recap: This bug appears to be rather hardware-specific, as only a few folks have reported it. In my case, the hardware is an ASrock "X470 Taichi" motherboard, and its on-board bluetooth hardware, reporting itself as: lspci: 0f:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Zeppelin USB 3.0 xHCI Compliant Host Controller lsusb: ID 8087:0aa7 Intel Corp. Wireless-AC 3168 Bluetooth When Basavaraj's patch is applied (in mainline 6.6.2+), bluetooth stops functioning on my motherboard. Originally from bugzilla #218142 -- Kris