Received: by 10.223.185.116 with SMTP id b49csp3575553wrg; Mon, 19 Feb 2018 02:20:23 -0800 (PST) X-Google-Smtp-Source: AH8x227xI73hCO/O1e7TL7hQd5TyOEYq3w8zMe2DXVkYfz28njrpxlE6oCASuriDMEVsMjPiHY3Q X-Received: by 2002:a17:902:52ed:: with SMTP id a100-v6mr13487864pli.75.1519035623731; Mon, 19 Feb 2018 02:20:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519035623; cv=none; d=google.com; s=arc-20160816; b=cZcY80c5DxFUITXyhkvm1gGM8LNrgADyyD4dJv8/ztzJQL9ShjxXSFMHj3TOgzq8RM OzWVvXbBYcrga9OAfD6/08Y8iYPdRW3J4CjB3YAtvDXRafsIOVvokVg8dyGyCI+tUaVQ jAcMwRtGivH46UnSMzzm4WRxZMXEWN+DXBxctOLpCYEvWSwE0+FrJAsQPIwI5Hzy3b9G 5JyVie28HoL3gGarc3TS5ZLED9x/tvckhORv6QQ1mZ6wuaJ0BxezN77M5MzW9OT8lCl2 h/ndo2h3iWL9V8cDgrKL5eVBhvl8NiqcNFKtuITcafi1ssdMW5HcmGLdTNiz69vNDUuy be5w== 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=KyrL1lJuVWhtz/lfWNfiR4MxebGoiCi+UoWAqMW3DFs=; b=d2MRKzQvblOIBtttD5PmlUCFu+3Js7OBvk4Im9ZM3fiybOen+/7HacEmSOyWI7LFlh 6TRcflwlRfeCNjtitteJMsyVA3UcLzsb9iN7OXgh5PPLV/MWMy9LOp7U7+0XbM+vdmlF tkpZ0rXesK0HK1DwYOsj8/+3Gv+Hbp10ORmXj4AqvdHWMusskdhxhTC98Vg42zzH0Vht 8wKjhnxqhMVW4h4jJKck5C53gcsKdaYvg30C4+B5q9/pwhdjtAP/HMDVpCBT40lzFNlO LRNcjYMQnGsUfhrS/HyOiSg8VdvbaBz8Ka0ULDJsMORar9H0Mn5dc9RedmTg4rZWbWkN ftTg== 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 k2si8863349pfi.205.2018.02.19.02.20.09; Mon, 19 Feb 2018 02:20:23 -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 S1752684AbeBSKRa (ORCPT + 99 others); Mon, 19 Feb 2018 05:17:30 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:39787 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752658AbeBSKR1 (ORCPT ); Mon, 19 Feb 2018 05:17:27 -0500 Received: by mail-wm0-f68.google.com with SMTP id 191so7010708wmm.4 for ; Mon, 19 Feb 2018 02:17:26 -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=KyrL1lJuVWhtz/lfWNfiR4MxebGoiCi+UoWAqMW3DFs=; b=J6sthm3gVa71wKVcPa2rsvD4g+9HgZbL5onayvm34ZlpEn2XrzO68cy7/z0CNBP+NH EMrn6gUwXec8Hp4KFkonhL4o0Gjb9l55plXi6SJC8Yo1gDVwZDOcaX+CH/0pP1yo1FDe RwDbbxDdSjeVuj5LDPSpyAnLlAjMRAbrkMRlWL2vzw0YjrjQ4opdx8t2xhtkXDlPptMN Jlgiyn2xgxtheLyc+yiERLq1OlP3ebPGaqpIaBTv8qqE8BBJlGDZm1ddY7yi07sWemsQ WXEeVwhU8DwFiYlTZBC1tXY0pJ+FrndNoh0EoW1vUqzL2vjWKgNIXT10cdvYByIirCgB r9Gg== X-Gm-Message-State: APf1xPAhO9fquRuLQQf4B4sbcCuHbubp60865UQYgUqj7mkHNn8fK374 peXhQkWxKNIX2KsEkS+swQx9Mw== X-Received: by 10.80.201.134 with SMTP id w6mr19469808edh.22.1519035446168; Mon, 19 Feb 2018 02:17:26 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id h2sm17310674edc.13.2018.02.19.02.17.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 02:17:25 -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> From: Hans de Goede Message-ID: Date: Mon, 19 Feb 2018 11:17:24 +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: <20180216175955.GA80944@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 16-02-18 18:59, Brian Norris wrote: > Hi, > > On Fri, Feb 16, 2018 at 01:10:20PM +0100, Hans de Goede wrote: >> On 16-02-18 12:45, Marcel Holtmann wrote: >>> actually if this is really platform related as Qualcomm is indicating, then we should just go with 3) and the two platforms that previously added quirks to usb/core/quirks.c and blacklist these. I am all for figuring out what is going on here. So lets blacklist these and see how this goes. Maybe there are only two bad platforms out there and we are making too much fuzz about this. Before we added quirks in the USB core these platforms were just plain broken as well. So not much different situation than before. We need to push the DMI blacklisting back into -stable as well and that means any impact of a 3rd broken platform briefly working and then be broken again is slim and also fixable via -stable. >> >> 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. > 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. Regards, Hans