Received: by 10.223.185.116 with SMTP id b49csp3684886wrg; Mon, 26 Feb 2018 04:24:01 -0800 (PST) X-Google-Smtp-Source: AH8x225/YjyEDXktVu4FwEhyi0QwFHyBznp9sXFdZVk6KWgb86tBTHy0e4Kl0vSM7mGXGdWyPvL0 X-Received: by 10.101.99.133 with SMTP id h5mr8068713pgv.381.1519647841591; Mon, 26 Feb 2018 04:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519647841; cv=none; d=google.com; s=arc-20160816; b=lhWFQWiVfhWLKVq3NQCJ99c5Ttz9P+9sZ5IEK+lNh9ts1V5IrFbQ66U71YbDy6u1Am Xwo/827YTC+B9LAL8SPogcP8aGF3SBmnFl1YotNwhfhvIXTJtDHgBgP5Cbw9GcxFqtwW VfoaRmmnXEcIdb34jEgXn5Fp3yRX4wuGL+yRN8RxJxrP7Hqc8lsdLP4OsJ8Ik/0YQmFU P+QRKY/TuZlX/bfvf6oru4SnGn3nHwMX7H+JGNfc7ABTCglczjbqmeQn4uRNnQxSV4pI +6cuRcavtqDLtR2mS/jTrDEFlJwi+Ceo669fep6S0guP+9IhRq18vcZizUNgMujlmBIO dgiw== 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:arc-authentication-results; bh=DVD3O8a9eBXaeIhaVmF1lKj4sF6T3tzjlbSXzPD+TcI=; b=c1+fwXdwJ3ZZoKpj5UPqIBtFHUc+adaCZehfhiLQ9M8XWvGuB9NwAButtWH1+MXgRK EYbsC4lM87u5pKPOV8ks+C4p0TSAmhaJ5VPUZ75Z/evo5VAWjfgCVUzYXd8xcTonHUo6 mrZOENquGZqwFpxaouZlUC7ooy7LnK7sqZssUPsXQD6TZ23/VOOD4RFmp2IwC9lBp0m7 qBQ8OZ/diWmRD7ySFr5tjGRcfuJy6h9cWTDaBE90hSXz7xyrCFiLIjRS6237on1lif0E Gpoqguor6WUNb/++bWJx43iZeUBIJvxCEaH91oCWmM4YS7dYyJ17WWF5FZv2k7TPudQb +ruQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s196si5484280pgc.129.2018.02.26.04.23.47; Mon, 26 Feb 2018 04:24:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbeBZMWs (ORCPT + 99 others); Mon, 26 Feb 2018 07:22:48 -0500 Received: from bmailout1.hostsharing.net ([83.223.95.100]:54419 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeBZMWp (ORCPT ); Mon, 26 Feb 2018 07:22:45 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id B32D6300002BD; Mon, 26 Feb 2018 13:22:43 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 7C7463EC3E; Mon, 26 Feb 2018 13:22:43 +0100 (CET) Date: Mon, 26 Feb 2018 13:22:43 +0100 From: Lukas Wunner To: Mika Westerberg Cc: Bjorn Helgaas , "Rafael J. Wysocki" , Linux PCI , Valdis Kletnieks , Mathias Nyman , Linux PM , "Rafael J. Wysocki" , Linux Kernel Mailing List , Peter Wu , Qipeng Zha , Greg Kroah-Hartman , Andreas Noever , Dave Airlie , Qi Zheng Subject: Re: [PATCH v1 2/2] PCI: Allow user to request power management of conventional and hotplug bridges Message-ID: <20180226122243.GA25450@wunner.de> References: <151908155159.37696.9710083237704994886.stgit@bhelgaas-glaptop.roam.corp.google.com> <151908204614.37696.12828004282495415825.stgit@bhelgaas-glaptop.roam.corp.google.com> <20180220181554.GA32228@bhelgaas-glaptop.roam.corp.google.com> <20180222131834.GA5527@wunner.de> <20180226120534.GO27191@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180226120534.GO27191@lahna.fi.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 02:05:34PM +0200, Mika Westerberg wrote: > On Thu, Feb 22, 2018 at 02:18:34PM +0100, Lukas Wunner wrote: > > We do need runtime PM on hotplug ports to power off Thunderbolt > > controllers when nothing is plugged in. That saves 1.5 W, so a > > noticeable amount of power. I was going to respin the series one > > of these days, I think the best I can do is continue to forbid > > runtime PM on hotplug ports by default, but whitelist it for > > Thunderbolt and allow manually enabling it on other platforms via > > the command line. That way, vendors are put in a position to > > validate their platforms for runtime PM of hotplug ports, and > > perhaps someday we can enable it for all platforms by default, > > but with a BIOS cut-off date. > > AFAIK Windows started to enable runtime PM (RTD3) for native PCIe > hotplug ports with the latest release (I guess it's the RS3 release) but > only when there is a special ACPI _DSD property ("HotPlugSupportInD3") > associated with the root port. I think we can take advantage of that in > Linux as well and I already have a patch series to enable runtime PM for > such ports but I haven't been able to test it properly yet. Okay. Well it would be trivial to whitelist those ports with device_property_present("HotPlugSupportInD3"). In how far are your patches identical with the patches I submitted last May? I've started reworking them for v2 but that would be a waste of time if you're working on this issue in parallel. Thanks, Lukas