Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp553504ybg; Mon, 1 Jun 2020 08:15:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySI8Ggxb1fnbIc1UnPLDZPdt5/BgdzWfRauNH9qOGbKIbaTcrJigrgUIpmX3KK2KOW+84B X-Received: by 2002:aa7:d05a:: with SMTP id n26mr23168232edo.173.1591024558479; Mon, 01 Jun 2020 08:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591024558; cv=none; d=google.com; s=arc-20160816; b=0fCFDit0B1JRUq7Vzr7nPF18HHYV/1a3Hp1DeTlWsto/fQUbDNPRKZ0NfUVTUuiNKa CpCtEF66Nbwop6tcBUEq7kZ++/wBuqPiLDCHVaIPHA3MqdYDBRwrM91AO+wCRIaUGJNm zt9XDa/Zj7/xaxzLmpOHB8efCbWXFSTJgsICveSWwCNem9pEjCR4yhAH2to+uV0vaLW+ rADNQj+pRAsPpsMcgmV4WasBpzirTwbfMJUYMD8oVh8v0on91Uu4R1D3wnX2h3oaKMuN KHrgaiASP2ncH6KN+ykHR2bEmK5HPFSAHEP1Ipja1cg4jMLIB0E5+4+FpkbLWVWbaKGf leAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=3dV4HIL/TFVxjh2uUpfj74yfWOLxubODksSfZ5jUZDI=; b=p1raVdsPKsGxxi+NPRtcQHknRaXNs2FrF4X3lFMzsIET+hRzpKQQk0vglzUlUQGiJn A0uiQNPodZhW9NjaTroKkfM8a4H7rkbJUX0sV0QZqlcnflX2miPFJQBa9kFbLlwSJR1V gnd7g69P4Hv1Y6F/K0Vsgkm+kUW5i/Bqcxt9A312RkWMbe8WzrG4BYDmECyBEEUUfyO/ xD/5zJ1CEcwpa35UuqrVjgRGKAHXy+/m/Nq6Ykk3gFD23e/+3KsEeDc1BjzAMK9J9BtQ ssa/DqGMadoQsHgsTUdhinnk3oG5c8Qwa65/y8X0R3bxvcVOwtWttYe86JaupldZIwLJ hIng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EYDb/OHT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id hh23si481949ejb.665.2020.06.01.08.15.35; Mon, 01 Jun 2020 08:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EYDb/OHT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726327AbgFAPNm (ORCPT + 99 others); Mon, 1 Jun 2020 11:13:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:38854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgFAPNl (ORCPT ); Mon, 1 Jun 2020 11:13:41 -0400 Received: from localhost (mobile-166-175-190-200.mycingular.net [166.175.190.200]) (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 A431C20738; Mon, 1 Jun 2020 15:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591024421; bh=xCkd2fICeOT9Ubja+5vo62mABuxHHRilmgEk9G4WHwk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=EYDb/OHT+pWpoo4RcVx+H1fEMIm5fhsJZ7hQWUeU4Gg1D4EDLU+t796v8MXUvc/pc uAgIgKYINjVWVd/mL3SqvTGJq1nI4p8g+gtpqxYjCTBkMeOmK5eGHsnyGMMbiwQcm3 s3mE945pSdBwHTqRlXBUdPO9CAJNcov8kUS7E4EM= Date: Mon, 1 Jun 2020 10:13:39 -0500 From: Bjorn Helgaas To: Christoph Hellwig Cc: Matthew Garrett , Heiner Kallweit , Bjorn Helgaas , "Rafael J. Wysocki" , "linux-pci@vger.kernel.org" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: Lost PCIe PME after a914ff2d78ce ("PCI/ASPM: Don't select CONFIG_PCIEASPM by default") Message-ID: <20200530123421.GA532471@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200530113344.GA2834@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 30, 2020 at 04:33:44AM -0700, Christoph Hellwig wrote: > On Sat, May 30, 2020 at 08:14:34AM +0100, Matthew Garrett wrote: > > On Sat, May 30, 2020 at 08:33:50AM +0200, Heiner Kallweit wrote: > > > > > It *was* default y. This changed with a914ff2d78ce ("PCI/ASPM: Don't > > > select CONFIG_PCIEASPM by default") and that's what triggered the > > > problem. If there's no easy solution, then maybe it's best to revert > > > the change for now. > > > > Oh, sorry, I was looking at mainline. CONFIG_PCIEASPM should > > *definitely* be enabled by default - platforms expect the OS to support > > it. If we want to get rid of default y then I think it'd make more sense > > to have a CONFIG_DISABLE_PCIEASPM that's under EXPERT, and people who > > really want to disable the code can do so. > > I think the fact that the EXPERT didn't get removed in the above bug > is a defintive bug. But I'd go further and think the CONFIG_PCIEASPM > option should be removed entirely. There is absolutely no good reason > to not build this small amount of code if PCIe support is enabled. That might be a good solution. I don't really want a situation where leaving CONFIG_PCIEASPM unset is "known to break PME." ASPM support has historically been fragile, and it's actually a significant amount of code (~10KB on my x86), which is larger than many other things for which we have config options. But we do have boot-time and run-time ways to disable it. Another possibility might be to make it so Linux always advertises ASPM support, but doesn't actually *do* anything unless CONFIG_PCIEASPM is set. I don't think advertising ASPM support means the OS is required to change whatever configuration firmware did. Bjorn