Received: by 10.223.185.116 with SMTP id b49csp1041133wrg; Fri, 16 Feb 2018 11:19:04 -0800 (PST) X-Google-Smtp-Source: AH8x2255NPmvPrUqO2tB0ymOlHv26Hj2rZQyzq35tSUpU4bwvA0slxbNEMxBmQXhFCYrlYgUu6wj X-Received: by 10.98.16.9 with SMTP id y9mr7077939pfi.189.1518808744014; Fri, 16 Feb 2018 11:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808743; cv=none; d=google.com; s=arc-20160816; b=d86fhgAp7lQNpi8wXFvwK0zcb24ddziOcYMT/o0te1wxtpshvsAGZptjTc7U1lCs8J h9Pz+qlwKJH0+eYPckeQVwkMD9vMrnupVy2juQ+Psl6VwlKZlmXWLQtRZTiUvxQSvf+5 yYg66NiTMD5989+bCZ5rsfVYNgicDcLQRmK0FzTIoQFzJCGhs5g8CELheLa5f1FYO4nR m1MlRoGy/mw4rS/utsDpEYIU8Md4a9esSTVc9gktsrLhb8JQ/xvYT9TOTXscJiVF/5lA F9ZggFTpml3B/uAwtABzu4M00MxI9Syuq0KT0S2TP6zM+Y10UK8rGF+5xyTUO6/JYkXL 0vcQ== 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=XK3/e9G/Jydh6dJOW6jvRxuu+qz3Fo3LZ9KafpU1K8w=; b=n7uT9aK2qOghkUSb49fIGyTBNGoWchvJv8PhYxzsFWciVyfySyb6fzKRBIpAMThItP KS7aonJTXtfqyGVc78PySW86bjee+D1JwJ1VlwC+BhV9yzpNQKDjwpxPkwVhEwowHp7t WZsX4VFM1chB6pU9OCjWqWuFqi7bshMJxEvzYwSWChKZlSBUBfIb3CK53dFs/zxXqcRQ BSVISafs9rbJsi4ASJV3eRG/NZyH2x2X6pxKXL2UzrjN8RbgLK5Z1E5ESDJ0sVKpQDmM tcgro6LB+kGzTkOgDdws7/llwzH8ehAEcjPu2x1KvtFHkIYQjELE5SSgJta7Q9q76+rc oftg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HVihWwIc; 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 37-v6si257352ple.491.2018.02.16.11.18.49; Fri, 16 Feb 2018 11:19:03 -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=HVihWwIc; 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 S1161367AbeBPQtf (ORCPT + 99 others); Fri, 16 Feb 2018 11:49:35 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38226 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161340AbeBPQt3 (ORCPT ); Fri, 16 Feb 2018 11:49:29 -0500 Received: by mail-pg0-f66.google.com with SMTP id l24so2836658pgc.5 for ; Fri, 16 Feb 2018 08:49:29 -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=XK3/e9G/Jydh6dJOW6jvRxuu+qz3Fo3LZ9KafpU1K8w=; b=HVihWwIcXPBUuLLs2282R81mirvGEx8BrMtfJhuZffe6SwJKmm5d1EtunyzuadN/Lo MIyrTX8SWCXTAIZ/XcCgIYLptzrf/kQFBcy4euZkprvgItKryc7xzPSvc8ZD0w6iyCh9 dw9IGtF8k8UpYO0WDgDg4CwPqJnlIY3u+v7ko= 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=XK3/e9G/Jydh6dJOW6jvRxuu+qz3Fo3LZ9KafpU1K8w=; b=RjGDRRX3KUMSGlsdozEB7PLUSfiPlHrEqtzl/Uy9iaPrmtpzvxoML77l07zQKxJKzZ +3AkbWuRhc3KV6/yDoatn0xADfcHz5Un2ekHIRASORhkUnChsTXEK1W20WsTLo3sS0Hz XubRLjZH4HMpPOKOaveD3nLMA8Ydr9Fxr3hUrDROaAXyFFX5sXl3e9rCJa9aPwzxwbK1 9bcFzZ/S6mCvPIE0n6eXUzULe6dmTq1wzi+cXkpaTZSkugk2CbIvVv99vYRD5ZkXrfkY AgLtFMafzTglTBjeM4faH9UdfHHhssP6u+Sf44VyodaKhA95kiDnO9cSvZ1T8jBmbZ7N Topw== X-Gm-Message-State: APf1xPB6w8y6meYutePf9UoZnOH7b18meEkKTw021z6n6XCNRUnRyh8Q nwN1aKZhVX1T9HaymiztZ0cDqg== X-Received: by 10.101.71.193 with SMTP id f1mr5556684pgs.91.1518799768722; Fri, 16 Feb 2018 08:49:28 -0800 (PST) Received: from rodete-desktop-imager.corp.google.com ([2620:0:1000:1501:da1a:a5c1:68e:d948]) by smtp.gmail.com with ESMTPSA id a138sm12884992pfd.47.2018.02.16.08.49.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Feb 2018 08:49:28 -0800 (PST) Date: Fri, 16 Feb 2018 08:49:25 -0800 From: Brian Norris To: Hans de Goede Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, stable@vger.kernel.org, Leif Liddy , Matthias Kaehlcke , Daniel Drake , Kai-Heng Feng , matadeen@qti.qualcomm.com, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Guenter Roeck , Benson Leung Subject: Re: udev USB autosupend whitelist (was Re: [PATCH] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version) Message-ID: <20180216164924.GA72213@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> <0a13d0f3-8e0d-74df-df9c-2bf0622a9fb6@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a13d0f3-8e0d-74df-df9c-2bf0622a9fb6@redhat.com> 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 + Benson (and there are probably others that know better answers) Hi, On Fri, Feb 16, 2018 at 09:26:37AM +0100, Hans de Goede wrote: > Going a bit off-topic here, so changed the subject. > I will reply on topic in another mail. > > On 16-02-18 03:27, Brian Norris wrote: > > I use a set of udev rules that manually whitelist devices for > > autosuspend. You can see it here: > > > > https://chromium.googlesource.com/chromiumos/platform2/+/43728a93f6de137006c6b92fbb2a7cc4f353c9bf/power_manager/udev/gen_autosuspend_rules.py#83 > > > > You'll find at least one Rome chip in there. > > Oh, that is a very interesting link for the work I've been doing to > improve Linux power-consumption in general: > > https://fedoraproject.org/wiki/Changes/ImprovedLaptopBatteryLife > > I was actually planning on at least doing such a list for WWAN modems, > for btusb my approach has been to just enable it everywhere > (except for QCA devices as I got bugreports for those). > > Note that I plan to eventually submit this whitelist to the > udev rules which are part of systemd upstream, so if chromeos > is using systemd too, this is something to be aware of for you. Chrome OS does not currently use systemd, but thanks for the heads up. > Question, is the white-listing of the root and rate-limiting > hubs really necessary? I thought these have this enabled by default? This list is old and maintained by several of my team, originating from quite a ways back (i.e., much older kernels). It's quite possible that some of it is redundant today. > Also any caveats here I should be aware of? That it's only maintained for the express purpose of Chrome{device}s? There's no guarantee that there aren't platform issues with other systems, for instance :) I'm not really aware of any particular caveats otherwise. Brian