Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp797534ybm; Fri, 29 May 2020 12:23:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8wdN9G30L+wUd+ErCgX0xNdE5Lm+2B1GwqJG5D7BQYCiUeDYLzsHt+GtoGFuVP0NNFGF8 X-Received: by 2002:a05:6402:555:: with SMTP id i21mr9644329edx.119.1590780230783; Fri, 29 May 2020 12:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590780230; cv=none; d=google.com; s=arc-20160816; b=zlujBHh9MMcHP5PJw4OQmydNXc1FrPo9F2QyFsZCnOIVY/DjpVrliQo110QMKdbFc8 VS+QvRE++8p1JOlLYacnq1Z20+iKp1GHaEgBpF0gQJnAhnEJZsD3pmFKTMGbtUzJ/jI3 QFHeSatg43Mw43Qrv/KDAMC5c7vwziT+9th99ZfgUHhyQYRM2oLsSBaEi+tsolVO6A+i In46oT0MqfQmg2EthGXSjULTAlBAa0KNIJl6qfMC78XrXX5C8P8G1heLeBCcVFZwbTZs sH804N7WtdNVBIRMjWNu6Yigaer0aFc73hcpBw6xU8sQxjLZuPD7D+wFf0v2tdIW5JAm ZZHg== 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=iGAx6BU/eCu6tF738ajWZUS2/TfsNEp3X1fhqZS369Q=; b=tbtsmUtKr4mzV5sQ2EIMtUbAj2wbhMYorgcRiJzCY2XsD4n+AZgFN9EeT5ZEwwnBZ9 9Ro2SpJhP8OAAP7f5wFPrOjqeHeDwS0bD7XFFQfP6qt6G/cioQklR2rJVBWVsnDWM3jn jw5NcFNd6gq6Fq3zw/yUKk3ZSWmE7SizQvvw0oiXirS2v+oA08RTPTf9lCXNP8qCWQMv SmcyVIvpPVf2VbYIAeKnW4nlTxL6/7Fd0DraQYp62fKLFHDRndheDRtzkR4R51oXN44e MTos+QQFVC4ydx5USGE63ZzpfiMop+SRsP3xFVEqSKZV/tePQQvAXt4SlM8pdmpQSYOj uIrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YSjbeDaL; 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 3si6872915ejy.429.2020.05.29.12.23.27; Fri, 29 May 2020 12:23:50 -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=YSjbeDaL; 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 S1727878AbgE2TVr (ORCPT + 99 others); Fri, 29 May 2020 15:21:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:55330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbgE2TVq (ORCPT ); Fri, 29 May 2020 15:21:46 -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 BCA302075A; Fri, 29 May 2020 19:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590780106; bh=i3BPzWHpCcmAHjeIK7qW8FYQEeuSECqPgKAG3M94eG4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=YSjbeDaLvyQQUSJMF4hUEvzPrmoOChWKJy28YdpTqJIjAUq6R7mr30X/gfabw4eCK 5j9TH0zNBQLp+TpI9I4ZWgeS2vh6lhM6gNq8hTmnCHqxPWQz0rLGeNR73VHjZ3vYsX XoyxAPQvnQotmoCGavzeg9VeBaHjwcEKwZ/ayp3A= Date: Fri, 29 May 2020 14:21:43 -0500 From: Bjorn Helgaas To: Heiner Kallweit Cc: Bjorn Helgaas , "linux-pci@vger.kernel.org" , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: Lost PCIe PME after a914ff2d78ce ("PCI/ASPM: Don't select CONFIG_PCIEASPM by default") Message-ID: <20200529192143.GA448525@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Rafael, linux-kernel] On Fri, May 29, 2020 at 08:50:46PM +0200, Heiner Kallweit wrote: > On 28.05.2020 23:44, Heiner Kallweit wrote: > > For whatever reason with this change (and losing ASPM control) I also > > loose the PCIe PME interrupts. This prevents my network card from > > resuming from runtime-suspend. > > Reverting the change brings back ASPM control and the PCIe PME irq's. > > > > Affected system is a Zotac MiniPC with a N3450 CPU: > > PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #1 (rev fb) > > > I checked a little bit further and w/o ASPM control the root ports > don't have the PME service bit set in their capabilities. > Not sure whether this is a chipset bug or whether there's a better > explanation. However more chipsets may have such a behavior. Hmm. Is the difference simply changing the PCIEASPM config symbol, or are you booting with command-line arguments like "pcie_aspm=off"? What's the specific PME bit that changes in the root ports? Can you collect the "sudo lspci -vvxxxx" output with and without ASPM? The capability bits are generally read-only as far as the PCI spec is concerned, but devices have implementation-specific knobs that the BIOS may use to change things. Without CONFIG_PCIEASPM, Linux will not request control of LTR, and that could cause the BIOS to change something. You should be able to see the LTR control difference in the dmesg logging about _OSC. > W/o the "default y" for ASPM control we also have the situation now > that the config option description says "When in doubt, say Y." > but it takes the EXPERT mode to enable it. This seems to be a little > bit inconsistent. We should probably remove the "if EXPERT" from the PCIEASPM kconfig. But I would expect PME to work correctly regardless of PCIEASPM, so removing "if EXPERT" doesn't solve the underlying problem. Rafael, does this ring any bells for you? I don't remember a connection between PME and ASPM, but maybe there is one. > To cut a long story short: > At least on some systems this change has unwanted side effects.