Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1551099rdb; Fri, 1 Dec 2023 23:50:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBGQ8ZUi3isEst6MD0cKqAtRVu24cCTBfRMqDxEk5VeElwPbveBEVDrjp5Ff0KGCgRx+YD X-Received: by 2002:a05:6512:2808:b0:50b:d763:fe3f with SMTP id cf8-20020a056512280800b0050bd763fe3fmr1885435lfb.90.1701503454022; Fri, 01 Dec 2023 23:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701503453; cv=none; d=google.com; s=arc-20160816; b=SdQDCFSbzMr++2tcWoEHrEFQdbiwWuTrZ+6fIdmIOJUp107yNdBhkjgHrHwbu7tamq p6pXtq3r6KgVyciytMP3sMUHVa2+Tiy0XmEN/tJa8WGwNPwwR7LDmKZdVescD+JkN3Ip RbbRlJHoFaRHKexjieL6rIw6doeO9flsoFOZFFsS01O+YKj2La4aLb7gB+xg2ZmcIDDl EOn9BsetsiX6UG/TFrbzKGoRvhVOIpzPwUo+zJ2J1hg2yu9e0pewyFKJXKay2xzkzliE HSKKScFpipwo9/lqTPCR2I2HalJXbfAdHB+U7vkyG2cTx1xsrq05BYd3ptrXdt5tFq1Q q8Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ytTPhpeEh0FHXKzUJ7xZLE/yNEB38pxEv37+fPaYC1k=; fh=CVkxzp/uPywqWGzUp9RAJofPCE4U6wBsijzrhrV2k7I=; b=oZ8sdWqKgLOQfSLQeyK86apNMRcdGoTdwvBxp3ZYZw45aDEXOAKwVGwH0yWhgHLdh7 VAzGAO4gewX9e174mnAamd12m7rW8K0DXwABj4vpvAakoUm2iBYZmiOKhyAjCMHDqgaf kUQxBMZWboUaC+K7FnLlF+1YuQMAEbjHzpqmsjqQMC9/qmZzit0nRMAqCsRYTiIamy0H ANX2uGtaJheSGPxKkmarm4K0TH9k6JKjzUlBJ4tpsdhsAKq9nZYlanEETIGXdOIGFH+p stUpIksJtBCSl2tD3nesVTD9c92zcDv4WCR3MLbp6hWgo371dRwQmpiHijGWuJXC0j6T qfwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mp9Wp8JJ; spf=pass (google.com: domain of linux-bluetooth+bounces-339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x2-20020a05640226c200b0054c5ac29a68si1343253edd.114.2023.12.01.23.50.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 23:50:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mp9Wp8JJ; spf=pass (google.com: domain of linux-bluetooth+bounces-339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B04CB1F21153 for ; Sat, 2 Dec 2023 07:50:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25A76C2C6; Sat, 2 Dec 2023 07:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Mp9Wp8JJ" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20C98567C; Sat, 2 Dec 2023 07:50:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11956C433C7; Sat, 2 Dec 2023 07:50:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701503441; bh=m7wPyEdFGIEfY2IVD5FQ6M1rCIPZHyFgyXL+3r9lm0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mp9Wp8JJMRn3HD+2uPGV9tL+4+FXm95OAvzwCiEjWBBcOrBkdPV3RuWLa7VZTQOAZ tt8+3S/B7H4/LopHnPts73A3K1tH0G8GUXk6M1CVFf68LIWVBsstUjPdW2LYxYPBwD lVzLLmNrJDXX3lPWhr+wtTKirBJgqgJn+ebYHEjM= Date: Sat, 2 Dec 2023 08:50:38 +0100 From: Greg KH To: Paul Menzel Cc: Basavaraj Natikar , "Kris Karas (Bug Reporting)" , stable@vger.kernel.org, Thorsten Leemhuis , regressions@lists.linux.dev, linux-bluetooth@vger.kernel.org, Mario Limonciello , Mathias Nyman , linux-usb@vger.kernel.org Subject: Re: Regression: Inoperative bluetooth, Intel chipset, mainline kernel 6.6.2+ Message-ID: <2023120213-octagon-clarity-5be3@gregkh> References: <8d6070c8-3f82-4a12-8c60-7f1862fef9d9@leemhuis.info> <2023120119-bonus-judgingly-bf57@gregkh> <6a710423-e76c-437e-ba59-b9cefbda3194@moonlit-rail.com> <55c50bf5-bffb-454e-906e-4408c591cb63@molgen.mpg.de> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55c50bf5-bffb-454e-906e-4408c591cb63@molgen.mpg.de> On Sat, Dec 02, 2023 at 08:23:55AM +0100, Paul Menzel wrote: > [Cc: +Mario, Mathias, linux-usb] > > Am 02.12.23 um 07:43 schrieb Kris Karas (Bug Reporting): > > 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 [1] > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218142 Should already be fixed in the 6.6.3 release, can you please verify that this is broken there? thanks, greg k-h