From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D21A9C46470 for ; Wed, 22 May 2019 18:53:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5BE72173E for ; Wed, 22 May 2019 18:53:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729559AbfEVSxn (ORCPT ); Wed, 22 May 2019 14:53:43 -0400 Received: from bmailout1.hostsharing.net ([83.223.95.100]:52917 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728533AbfEVSxm (ORCPT ); Wed, 22 May 2019 14:53:42 -0400 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 2BED430000CEE; Wed, 22 May 2019 20:53:40 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id B6EFD2E4EC6; Wed, 22 May 2019 20:53:39 +0200 (CEST) Date: Wed, 22 May 2019 20:53:39 +0200 From: Lukas Wunner To: Alan Stern Cc: Bjorn Helgaas , Kai Heng Feng , Rafael Wysocki , linux-pci@vger.kernel.org, LKML , Mathias Nyman , linux-usb@vger.kernel.org Subject: Re: [PATCH] PCI / PM: Don't runtime suspend when device only supports wakeup from D0 Message-ID: <20190522185339.pfo5xeopyz2i5iem@wunner.de> References: <20190522181157.GC79339@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 02:39:56PM -0400, Alan Stern wrote: > According to Kai, PME signalling doesn't work in D0 -- or at least, it > is _documented_ not to work in D0 -- even though it is enabled and the > device claims to support it. > > In any case, I don't really see any point in "runtime suspending" a > device while leaving it in D0. We might as well just leave it alone. There may be devices whose drivers are able to reduce power consumption through some device-specific means when runtime suspending, even though the device remains in PCI_D0. The patch would cause a power regression for those. In particular, pci_target_state() returns PCI_D0 if the device lacks the PM capability. Thanks, Lukas