Received: by 10.223.185.116 with SMTP id b49csp172392wrg; Thu, 22 Feb 2018 19:13:21 -0800 (PST) X-Google-Smtp-Source: AH8x226UB08rUf4El9Kcga0/Yc6C+nx7l2IPTpbCw+raEjzyhg0cbRyikSqpTGg5S0Mu/b/pBuxM X-Received: by 10.99.96.200 with SMTP id u191mr216508pgb.252.1519355601762; Thu, 22 Feb 2018 19:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519355601; cv=none; d=google.com; s=arc-20160816; b=pcMxDf9T/b5v6CxMPDPz95Wk6sVVEIFyEGMQC6qq4gcqbf9Zhcb3XFgeVvtxu7hrGH G3wix8JDa0H1VGj7+cZ4c1QTW8EreLLRSg3p4U2vMuGNmHLpNkTsn1nfd/t5BD4gpFYi UitRDV8qQgMjBFGpLh1hJ2BBb9SUErkbN31gJbCEpRlUMF7XfVNBWzcdYBCX3GKwXjs/ +T8/iqwXVbbstGDzeNUjg1UXVi5T1vTelad8p1sp9VOFFV/Jd0D/hA4v9U8jvC/1XaD5 r2idhYGWiX/6uhdsavK0pkjfNWDX5dHHNLUNWm5GEBmGJsyGev+zPtVtvUl/UVwn9STl 11PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=X6rZRJRDjN0utHtv0z0gTFg50w2dfE21X9koZG9307g=; b=IDjQuelkOKJwIDUgJAoHHAaYrZ/JikczIaczaVcAA0vG34+qwnDVppAv6GI+cIVhUw y9WGnq7U76amQamPilm2dVt8QimRsH91SJ6wp2XOKqjvfisRjZNPQ8zwXmqVr+NpkHed XFNQQAl25zAqQqQEAlsWp9QkBppoZmcAfPVKET/SqZirBEZ/ra5+3jUzKqTYJribe0bg vZYv1CmVo+y1xofav+dugpX00DIFCEKft3fLo0XZsBKZUxspxJBWxnP24eOQb10jbdxu SLceCIatea1NWsM/ImsBONpoeMTc9oGN1DEII5ovF8URlbs59VwbFdJTsOhZt4L06kRf +XWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LQECzo/h; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r20-v6si1068828pls.587.2018.02.22.19.13.07; Thu, 22 Feb 2018 19:13:21 -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; dkim=pass header.i=@chromium.org header.s=google header.b=LQECzo/h; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbeBWDM1 (ORCPT + 99 others); Thu, 22 Feb 2018 22:12:27 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38129 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbeBWDMW (ORCPT ); Thu, 22 Feb 2018 22:12:22 -0500 Received: by mail-pg0-f67.google.com with SMTP id l24so2841435pgc.5 for ; Thu, 22 Feb 2018 19:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=X6rZRJRDjN0utHtv0z0gTFg50w2dfE21X9koZG9307g=; b=LQECzo/hwQ89op19JGfXtSFQgE1is6R7wIuTBRgX1DrrZq+Jsg8kBt7qA+gG3QcaFK vGci+4g0QxCeLQu3KauchgF9Vz2VIGc0f3kYselUfTmUrKo2LIVI0WKLNo9Q0f1aey8V MNWdBGR/2E+O9aAZf9AZGjqGRxkiZEEpgjuK0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X6rZRJRDjN0utHtv0z0gTFg50w2dfE21X9koZG9307g=; b=tW64N+kOv/fVk44LXKyEtCrlTsk/Rsg9CxnEw0SeHZ2NozcrNYkGm0aKhl07up3asO cNNYzarfsslzfXTwtSeIQmP/DdkAbk7Uc/Pmqb7sTI3nFIXxc/Th0fOqzeshO7Dc8g3F wdBM1f+aVaRXcbh45Bunm4uhOd1td9lueh2vFitJM6yGhx8ahreRfWix54Aw5AkNfiOt NvuwT2fkKKosY6s3GMdSXdsG3LQmCNScdyKGEdRI2YH+vDIL9B90M7VP3xn57hf6ErLl bVpIrWTWDK8JBNjO6iPLD4RLYj8wMD+zC+k/njINpmga5cW5CJTkV8S+QLAi6NFsbS/r iGeg== X-Gm-Message-State: APf1xPC87jhcbUtaHl4OjNiLOdYu1wFXj83CN7O1NIfuxXf9cH3UtdVH RJL+cn1X1994zA5TDuRoyblNWw== X-Received: by 10.98.65.198 with SMTP id g67mr220853pfd.127.1519355541846; Thu, 22 Feb 2018 19:12:21 -0800 (PST) Received: from rodete-desktop-imager.corp.google.com ([172.22.102.85]) by smtp.gmail.com with ESMTPSA id z17sm1892657pfh.183.2018.02.22.19.12.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 19:12:20 -0800 (PST) Date: Thu, 22 Feb 2018 19:12:18 -0800 From: Brian Norris To: Hans de Goede 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 Subject: Re: [PATCH] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version Message-ID: <20180223031216.GA230265@rodete-desktop-imager.corp.google.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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". 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? 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