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=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 D9B42C32751 for ; Wed, 7 Aug 2019 10:45:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A181921E6E for ; Wed, 7 Aug 2019 10:45:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbfHGKpD (ORCPT ); Wed, 7 Aug 2019 06:45:03 -0400 Received: from verein.lst.de ([213.95.11.211]:36491 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfHGKpD (ORCPT ); Wed, 7 Aug 2019 06:45:03 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id C62AB68AFE; Wed, 7 Aug 2019 12:45:00 +0200 (CEST) Date: Wed, 7 Aug 2019 12:45:00 +0200 From: Christoph Hellwig To: "Rafael J. Wysocki" Cc: Keith Busch , "Rafael J. Wysocki" , Mario Limonciello , Kai-Heng Feng , Keith Busch , Christoph Hellwig , Sagi Grimberg , linux-nvme , Linux PM , Linux Kernel Mailing List , Rajat Jain Subject: Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems Message-ID: <20190807104500.GB11356@lst.de> References: <4323ed84dd07474eab65699b4d007aaf@AUSX13MPC105.AMER.DELL.COM> <20190731221956.GB15795@localhost.localdomain> <2763495.NmdaWeg79L@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2763495.NmdaWeg79L@kreacher> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Wed, Aug 07, 2019 at 11:48:33AM +0200, Rafael J. Wysocki wrote: > So I think I know what the problem is here. > > If ASPM is disabled for the NVMe device (which is the case on my machine by default), > skipping the bus-level PM in nvme_suspend() causes the PCIe link of it to stay up and > that prevents the SoC from getting into deeper package C-states. > > If I change the ASPM policy to "powersave" (through the module parameter in there), > ASPM gets enabled for the NVMe drive and I can get into PC10 via S2Idle with plain 5.3-rc3. > > However, that's a bit less than straightforward, so I'm going to post a patch to make > nvme_suspend() fall back to the "old ways" if ASPM is not enabled for the target device. Sounds sensibel. FYI your mail is not properly formatted and has way too long lines.