Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6399834ybp; Tue, 15 Oct 2019 14:28:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdtBGaG2pMRec1N5U0FJ6oSUvKAHOnAFu2bDJrG71DWs8+0aznYugWDkBDMwdQxEkR79eh X-Received: by 2002:a17:906:fac6:: with SMTP id lu6mr36001986ejb.126.1571174912565; Tue, 15 Oct 2019 14:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571174912; cv=none; d=google.com; s=arc-20160816; b=D6I8+7vi4FQi/quC10Rn0Mkga3o+4wNJsC7GEhTs9rB2D5uRlO5OUAkXXkvX56DO0O rZwMBrBqkcPZfLRvFxQoViQfMHEPltVcV9TNpHa5jcnemoTrNlw0Rj2wxQI3z0o5wXki pgxE/1nPm2Vnv5oKsRFLtOWYrbQ2DZNKaV6UB/dMgfhcDRTOec0QQCUNxk8dTybsN6xl 3Rzs8ynM1BfXLQVeOktAY31mYNXiHjwcKPWToNwl+VjRncWWpCBY72uxE8JExjGXR7u6 yFsTf1WWzZBYVGTQZRJfaiJeYLNyE3u0f+SCqVboox1IHmEKERxLnCwTcXeDdjv0SkRH NVgQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=+YcT1j0UfJhu2sBUNrBp16A/FjdUDd0ZX8IJhfmr3MA=; b=lPRrJFN1dTE60/mWbM0G+9uw/S0Vj1rKsSkGStlwTwsrIvuV/mP7/8juDa3y+zw+Tk JNJcRtA3Gfi4xMsuAMkWDxdanjsdBK3shlHumJCivDpy3xR3QCWbnKErC6EXS0qjDSgj /kdJEjs0Bp1UR5nJw2m7C3vm9h7Irds3Xjfvj/vkKAAluo2eY5TBNF8Qx+6PdQ7EK1cw Pe3Dwdow5/nKdngQOGRaa7hWOEuS/U89fMCnGHYk+egxKzgiMpXwM+qhibWBciu6SyLL SPRKusd9SufjyOZse2OYN43r11d42SmBj22fBvnbdAxwYlK8JVINi08eC8VmP6OSEUIq stqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nJ9DD3sU; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si13163994ejj.132.2019.10.15.14.28.09; Tue, 15 Oct 2019 14:28:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=nJ9DD3sU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389198AbfJOSmD (ORCPT + 99 others); Tue, 15 Oct 2019 14:42:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:46880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbfJOSmC (ORCPT ); Tue, 15 Oct 2019 14:42:02 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9620E2086A; Tue, 15 Oct 2019 18:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571164921; bh=UfbMo4srtplXckwhdvkQ1pijpD6lZtwmuZ5zBKMFFKw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=nJ9DD3sUsyARGvqPq1H2cPbcDGJHZ7alSYJwFlR3EEF0BOMEFY5WUnx2gWM5+guO5 dVPuLUppTj4aOI7zl5QnGZLJt//Vlq2Y/G4pNywqeSV78YSzzjJVTOjdYlHWujkYDf tNhi/odRrJqWcoAI9LsWa1RDXDXk1bo0DDIxE0Nw= Date: Tue, 15 Oct 2019 13:42:00 -0500 From: Bjorn Helgaas To: Dexuan Cui Cc: "Rafael J . Wysocki" , Lorenzo Pieralisi , Michael Kelley , Sasha Levin , Haiyang Zhang , KY Srinivasan , Stephen Hemminger , olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com, vkuznets@redhat.com, marcelo.cerri@canonical.com, jackm@mellanox.com, linux-pci@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, driverdev-devel@linuxdriverproject.org Subject: Re: [PATCH v3 0/7] PCI: PM: Move to D0 before calling pci_legacy_resume_early() Message-ID: <20191015184200.GA114979@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191014230016.240912-1-helgaas@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 06:00:09PM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Dexuan, the important thing here is the first patch, which is your [1], > which I modified by doing pci_restore_state() as well as setting to D0: > > pci_set_power_state(pci_dev, PCI_D0); > pci_restore_state(pci_dev); > > I'm proposing some more patches on top. None are relevant to the problem > you're solving; they're just minor doc and other updates in the same area. > > Rafael, if you have a chance to look at these, I'd appreciate it. I tried > to make the doc match the code, but I'm no PM expert. > > [1] https://lore.kernel.org/r/KU1P153MB016637CAEAD346F0AA8E3801BFAD0@KU1P153MB0166.APCP153.PROD.OUTLOOK.COM > > > Dexuan Cui (1): > PCI/PM: Always return devices to D0 when thawing > > Bjorn Helgaas (6): > PCI/PM: Correct pci_pm_thaw_noirq() documentation > PCI/PM: Clear PCIe PME Status even for legacy power management > PCI/PM: Run resume fixups before disabling wakeup events > PCI/PM: Make power management op coding style consistent > PCI/PM: Wrap long lines in documentation > PCI/MSI: Move power state check out of pci_msi_supported() > > Documentation/power/pci.rst | 38 +++++++------- > drivers/pci/msi.c | 6 +-- > drivers/pci/pci-driver.c | 99 ++++++++++++++++++------------------- > 3 files changed, 71 insertions(+), 72 deletions(-) Thanks Dexuan and Rafael for taking a look at these! I applied the first six to pci/pm and the last to pci/msi, all for v5.5.