Received: by 10.223.185.116 with SMTP id b49csp353409wrg; Thu, 22 Feb 2018 23:15:28 -0800 (PST) X-Google-Smtp-Source: AH8x224tuOKeRFXSwa3ADiv3wQz7vyZq6n89oG90IM3U+bVfjXtx0ZuyTtAHuOX18sy2TZ7nVkqB X-Received: by 10.99.185.7 with SMTP id z7mr692847pge.123.1519370127992; Thu, 22 Feb 2018 23:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519370127; cv=none; d=google.com; s=arc-20160816; b=k8GIP+YK3aTMeXY0ZXCexdmHAi+EqkK3OCgzJ7XwPWsJ++GP5D4zcRAOJN2+dAFgNh tUXN/R3O7qlPr8QA82LtlrT5I8RzCWHUuPNbuhE2pPtOAVQaK6m+qGeCkojlsSSWo7ET RjFbcHssXG666H1DS8BsCGnci4JQikeNsqZbJT6inLXWPv+TtqpBNmoEVy/fpszwUyqN ra5nZff4Kpg0aUEaFb4t1jINZOEIRXD0fVRkK7cDQ4Xx0FfCObMuGH2OBreZmDqIByAq jgua9ENZRC/q4zHEu61FAkUMx2lyyM3/O1EzvRGrLPZpXs/3KU6BdqhUwNDkaRtsNAa/ V7Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=laIKmflqCNY/1jKar3XwS4xFGZY8fFqIhpAkxTIL23o=; b=AHhAPjpmyuqJPu7Mp1pBd+yQrlG+tIV4OFbJyUlaXUxg+yv7eOdcxflyodsoZY/dJJ KK5JOrb7i9g7mJ2OEBxJiwJF94HOtd+hZIb5EsaR7CE352ccKZDJcKCouHqTBUaPo6Cr KHyS7uAJOor7WepNYxOGgNX5IpS16TPqyj4P1LhtMcaZPO5pA9FJSch3gFmVIq/BJLq4 aRw9YS8H1zPJKoxfbgjjvsobQ8X4F6VN0HEnwn26BWQjofKSgXgtVpLk8xkiVfLJfPBr RrDlZq2Kustzu4hUEgr3Q6+dCcA/ylUuMSqKiWdX65xf/Mu3267ecMVovQg7jF125nTG f0GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si1355424plu.362.2018.02.22.23.15.13; Thu, 22 Feb 2018 23:15:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751425AbeBWHOe (ORCPT + 99 others); Fri, 23 Feb 2018 02:14:34 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37588 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbeBWHOb (ORCPT ); Fri, 23 Feb 2018 02:14:31 -0500 Received: by mail-wm0-f50.google.com with SMTP id m207so2703427wma.2 for ; Thu, 22 Feb 2018 23:14:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=laIKmflqCNY/1jKar3XwS4xFGZY8fFqIhpAkxTIL23o=; b=pDxJ2dwvK0v161YTiblKBKM9dSeQnVAqqCrQC+JP5Xu9IVFqF1WW+Jh5IsQ+4IhEre WspWH/f/ieXnkiGDqAtd2hULBYcl20lDa2RqhwAuGkXOtCsVrAVvhawIJnERu2QnKcIR JlVzQNvmHQbnvvXYfCjDcQgCPEqHZSjfKx+Svz7OqqsZplQKyjoD9G0S07DhQE/uzsHG y7xDcCGSF/w2I8jKIkvApI8lk10aQPR9K07XalJJkHslAVE0vwSkNC5ldXd0h35hxZiW kkOqGFQB2OCywrLe32cD4zJjTOECzrkiT8oe93DcENyxeIzP7zJSpL36aIpqshOxhBYo T5UA== X-Gm-Message-State: APf1xPCfQZrnFkAZ2+D0eHNx/8AP6dM0dSfq/FQJU0QqIu0kRjajTUon Kamjyu7NgaPOowHXhgGUgQKplA== X-Received: by 10.80.137.52 with SMTP id e49mr1489107ede.292.1519370069814; Thu, 22 Feb 2018 23:14:29 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id j59sm1625200edd.31.2018.02.22.23.14.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 23:14:29 -0800 (PST) Subject: Re: [PATCH] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version To: Brian Norris Cc: Marcel Holtmann , "Gustavo F. Padovan" , Johan Hedberg , Bluez mailing list , linux-serial@vger.kernel.org, ACPI Devel Maling List , stable , Leif Liddy , Matthias Kaehlcke , Daniel Drake , Kai-Heng Feng , matadeen@qti.qualcomm.com, Linux Kernel Mailing List , Greg Kroah-Hartman , Guenter Roeck References: <20180108094416.4789-1-hdegoede@redhat.com> <20180213022455.GA151190@rodete-desktop-imager.corp.google.com> <8cd918fd-bf6f-70ac-e561-e7deffa695f0@redhat.com> <20180216022721.GA69988@rodete-desktop-imager.corp.google.com> <345b0de8-1a23-d2f8-bc56-507eadf7faa7@redhat.com> <6B37F6AC-1103-4FCF-A5DC-4BA236A7B11B@holtmann.org> <1a08612e-2531-3711-ec0f-a867e86d0009@redhat.com> <20180216175955.GA80944@rodete-desktop-imager.corp.google.com> <20180223031216.GA230265@rodete-desktop-imager.corp.google.com> From: Hans de Goede Message-ID: Date: Fri, 23 Feb 2018 08:14:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180223031216.GA230265@rodete-desktop-imager.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 23-02-18 04:12, Brian Norris wrote: > Hi Hans, > > Sorry if I'm a little slow to follow up here. This hasn't been my > top priority... > > On Mon, Feb 19, 2018 at 11:17:24AM +0100, Hans de Goede wrote: >> On 16-02-18 18:59, Brian Norris wrote: >>> On Fri, Feb 16, 2018 at 01:10:20PM +0100, Hans de Goede wrote: >>>> Ok, I've asked the reporter of: >>>> >>>> https://bugzilla.redhat.com/show_bug.cgi?id=1514836 >>> >>> Are you even sure that this reporter is seeing the original symptom at >>> all (BT loses power, and therefore firmware)? Their report shows them >>> running 4.15, which had this commit: >>> >>> fd865802c66b Bluetooth: btusb: fix QCA Rome suspend/resume >>> >>> which is admittedly completely broken. It breaks even perfectly working >>> BT/USB devices, like mine. That's where I first complained, and we got >>> this into 4.16-rc1: >>> >>> 7d06d5895c15 Revert "Bluetooth: btusb: fix QCA Rome suspend/resume" >>> >>> Isn't it possible your reporter has no further problem, and none if this >>> is actually important to them? I'd just caution you to be careful before >>> assuming you need to add blacklist info for their DMI... >> >> Thanks, that is a good question. His problems only started when I >> enabled usb-autosuspend by default for btusb devices and he got things >> working by adding "btusb.enable_autosuspend=n" on the kernel commandline, >> so he was not hitting the firmware loading race introduced by >> fd865802c66b and runtime suspend/resume is really broken for him. > > Hmm? I'm not sure I completely follow here when you say "he was not > hitting the firmware loading race". If things were functioning fine with > system suspend (but not with autosuspend), then he's not seeing the > controller (quoting commit fd865802c66b) "losing power during suspend". He was running a kernel with the original "fd865802c66b Bluetooth: btusb: fix QCA Rome suspend/resume" commit, which fixes regular suspend for devices which are "losing power during suspend", but does nothing for runtime-suspend. He ran tests both with and without runtime-pm enabled with that same kernel and he needed to disable runtime-pm to get working bluetooth. > So, that would suggest he could only be seeing the race (as I was), and > that his machine does not deserve a RESET_RESUME quirk? I hope my above answer helps to clarify why I believe the quirk is necessary on his machine. Regards, Hans > > Or maybe I'm really misunderstanding. > >>> As I read it, you need to investigate who are the "numerous reported >>> instances" that generated commit fd865802c66b in the first place. That's >>> where this mess started, IIUC. > >>> But otherwise, yes, option 3 sounds OK. FWIW, my systems are ARM based >>> and don't have DMI data, so option 2 wouldn't work. >> >> Right I think we all agree that the new plan now is to go back to >> QCA behaving normally wrt (runtime) suspend/resume and then set the >> USB-core RESET_RESUME quirk (which does not have the firmware >> loading race) based on a DMI blacklist. >> >> I only have the one report for which I will write a patch implementing >> this new policy soonish. And Kai-Heng Feng has another report which >> might even be the machine. I certainly would not be surprised if it >> is another Lenovo machine. > > It seems like you folks moved forward on that one. Thanks. > > Brian >