Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp812066ybm; Wed, 22 May 2019 11:57:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC3uGm6tAEj/MpcNLUn31KPerVGD7cT2eMG98pxRdzFU9eHpINWe86/L3WQEMmqvRKwDUX X-Received: by 2002:a17:902:63:: with SMTP id 90mr37481748pla.342.1558551435411; Wed, 22 May 2019 11:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558551435; cv=none; d=google.com; s=arc-20160816; b=PFNnO4HwF6R/D7iMxCDBsh77wgUxtyZumTdp4+J+WtU//AMulK7xFgjTlK9y4jCTrU W+NFOLpf4ynU6R2gnld/jxJo6M3mubGbCkH1du5mJrBNfIHroa/iRnvge6CRW0gYaAt2 lAFARpfBSLhnXS3V19/s0FCVyX5TXIurb1kZf/Fd2r60F07MJ2BibA7GljqsYq9IbN7X OAA/6Xnx1yLk3//JxdQGSCUmO2FaKMZhWI0xgcgbMozvMrKmF+kRb71r7Iv6K/7me+DB VBeEVUNNdNdDYbHBAcaiLvxEqjhG4eY60ztHG0hwAknU7KxBWro+Kmoz+0o8hIXvS96A eAsg== 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; bh=teN3o0XTRy5JnKlubFi+0+AUE3Xgrhube0bE82zwqGc=; b=tASI7tsfcvce7W+jBZlqohMqWbzHySSZHzdNEi7K6Ivz1WSO5NDwNfQTdsha8j0DJt +NsscPvggWpimaPBmF/BFhxc4jLt6k4p3036/SEqhaArIsAVyBYYD9b0RdGy0Ux9UPea B+TH6+KQrHcuBDvb+RSf6Ey5EuRItDfzYQFeiMQIM1gNmW3iRVi+LAvLJgbhN74E24jP IUz09/TAl3JQfcSXSLaKil6npw/0YWZmbiB9jUuZd23cG9xE/onPFqq3bt+2/h/hpO92 DZDvyGlqo2fn8+N7+upVKmBdRE8jiYHuQApvtSRrohPs1iKw1SjdiKSfR32sp+mbHSxB zjGw== 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 bf7si24321678plb.251.2019.05.22.11.56.56; Wed, 22 May 2019 11:57:15 -0700 (PDT) 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 S1729528AbfEVSxm (ORCPT + 99 others); Wed, 22 May 2019 14:53:42 -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