Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp509983rwb; Wed, 7 Dec 2022 01:12:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EEq+zvkseuBVcyBbsT6SUR7cCiOXg6DJ+RTtOxLJaBoyz8Dne7LaAluRlyLhmk9Q6P8DB X-Received: by 2002:a17:906:c011:b0:778:f9b6:6fc with SMTP id e17-20020a170906c01100b00778f9b606fcmr77509949ejz.580.1670404329579; Wed, 07 Dec 2022 01:12:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670404329; cv=none; d=google.com; s=arc-20160816; b=0ZmMxeJ3lzHA8lb/+ZQhyqMOkpWn7Dg9LJ+99xc5QukqGmCXMrklqEGg+3pVMQL0i0 WbZpm68fbbufl7sDf/OztcVkyZmd3nBKKzy6BdbMnM6oQxaR7UKriTqFGLhTd6tJIU2h EZE35283tNyqWR8RqiR0Neim81OPJWTgcviXz/L349jEnLy5r6DBreWuHS+yaL2G+QwA O70uy6Yz2p7jFVlR2ZMDEg4laR+uUVDPIGLl4d7lixXlErKRktHCj1A1onV15iclZLvD 6eHCSq2cE0yLsvWKWet2Y3MHDQehac4B/aDM0u5ORW0MTfkMhIHZwDVITlxGqLQhw5ut 08zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:feedback-id:dkim-signature:dkim-signature; bh=JFoXxMClww2l4RygoD+XW2GsjAAbe5uznYYD7nEj5+A=; b=i+WOW7bdSc36idvcsclh9T5Fy8oMPu97VHz8Z3QR7PQJQo7+tmpiu1NqiCWI1Akq+W MPqxWOihBIuoQN7WqTUGbjfZBqdTGDzBXNOC/H+crpk6bUcjSqQ5hEoZZzLLgW1stPpE X6LluvkxsNnBqtuakSHMeANv8N4a6e0XuixHzuTZZILpi/X7DILa23v3c4zTvv0m8+4L P+EmKCowgCySVAryKTKd1qniF184FMx/mx+7AR+6ZnZrihLPkKlxfdwhdwA7zyzI/hQ5 UzbOa/aLTPOx4CfITFGOJKIJt6optcpW/gKa3P7qxyIe+WbsktZcuiO9937UEP7qpnaT emvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=Am+3Xd9p; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="ou/WWNWj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa28-20020a1709076d1c00b007add6c835a9si14160558ejc.867.2022.12.07.01.11.51; Wed, 07 Dec 2022 01:12:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=Am+3Xd9p; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="ou/WWNWj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbiLGJFr (ORCPT + 77 others); Wed, 7 Dec 2022 04:05:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiLGJFp (ORCPT ); Wed, 7 Dec 2022 04:05:45 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB6526AC2; Wed, 7 Dec 2022 01:05:44 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B2C0F32009E1; Wed, 7 Dec 2022 04:05:42 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 07 Dec 2022 04:05:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1670403942; x= 1670490342; bh=JFoXxMClww2l4RygoD+XW2GsjAAbe5uznYYD7nEj5+A=; b=A m+3Xd9pOm+9ctEko/ry4U6uTcBmcKTxoSXhrOYjFkNzs/UPFQ3eYMIW6MPgw2H6r W71NHDCfNlVOyxGK6QEtxyF8rdWdUjylzGuvSzy+iI1cTIyDvUZOhVgBzXAR4pdP zDSd0d9YPMphKkyku5QEjEG38WA26pdIxpRsHBm55ScFgaM4uCv5/xQ+rjaYprZL A+fvdT8D23+KOupjIeylZk5InsaqGNrVUifuJpVIM5mUkn0HoOyyvrRmtFXSq5Yl X1CHYaDxQcHEXMHnut+AsYWLGLPjewjytElsnMWmy1+yzdHdszmkfkCF+BE8Ba8Z d1Ny7AxdMcZGwGVoyRnaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1670403942; x= 1670490342; bh=JFoXxMClww2l4RygoD+XW2GsjAAbe5uznYYD7nEj5+A=; b=o u/WWNWj8Jc92d/UtZbf4Nr+ZIPhRQ0768ZQ/Sf+INAMi26NBhtJLUu9aNRQpIK9I Dam5k6gOJvt4nfYzC9GRZMJosLhHrmL/Pm/8dRS05pKgo6R9gGptihDfIDu9dNYb HJvCMcVklYC9LtlK36zKlfetDEM/mF5y2GF8AGbWq1D7lUzoNiZJRbGbSlQDH9p5 ACR3p5CiE0mnOoBA0RkzabymijwuKJmhCobq8TlPRt9je7WUgCesGxbKkEguZVG+ l1xHMxvwWGFnyNSwJOpnHQtIhs6OMDxTKMQ74pAabh6fLRKqrS/w9WScvW5DyFCy 4gxPK3Ki3pdCGhXaZWGPw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkuffhvfevffgjfhgtgfgfggesth hqredttderjeenucfhrhhomhepnfhukhgvucflohhnvghsuceolhhukhgvsehljhhonhgv shdruggvvheqnecuggftrfgrthhtvghrnhepteegteefhefhteegleejudfffffghfekle eijeeugfffteeiudefvdetteeuuedvnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehluhhkvg eslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Dec 2022 04:05:35 -0500 (EST) Message-ID: <8b8c7ae512291532ea227b8a1c3f87c460e11e2f.camel@ljones.dev> Subject: Re: [PATCH V8 0/4] PCI: vmd: Enable PCIe ASPM and LTR on select hardware From: Luke Jones To: "David E. Box" , nirmal.patel@linux.intel.com, jonathan.derrick@linux.dev, lorenzo.pieralisi@arm.com, hch@infradead.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, michael.a.bottini@intel.com, rafael@kernel.org, me@adhityamohan.in Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 07 Dec 2022 22:05:28 +1300 In-Reply-To: <20221103021822.308586-1-david.e.box@linux.intel.com> References: <20221103021822.308586-1-david.e.box@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.2 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-11-02 at 19:18 -0700, David E. Box wrote: > This series adds a work around for enabling PCIe ASPM and for setting > PCIe > LTR values on VMD reserved root ports on select platforms. While > configuration of these capabilities is usually done by BIOS, on these > platforms these capabilities will not be configured because the ports > are > not visible to BIOS. This was part of an initial design that expected > the > driver to completely handle the ports, including power management. > However > on Linux those ports are still managed by the PCIe core, which has > the > expectation that they adhere to device standards including BIOS > configuration, leading to this problem. >=20 > The target platforms are Tiger Lake, Alder Lake, and Raptor Lake > though the > latter has already implemented support for configuring the LTR > values. > Meteor Lake is expected add BIOS ASPM support, eliminating the future > need > for this work around. >=20 > Note, the driver programs the LTRs because BIOS would also normally > do this > for devices that do not set them by default. Without this, SoC power > management would be blocked on those platform. This SoC specific > value is > the maximum latency required to allow the SoC to enter the deepest > power > state. >=20 > This patch addresses the following open bugzillas on VMD enabled > laptops > that cannot enter low power states. >=20 > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D212355 > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D215063 > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D213717 >=20 > David E. Box (3): > =C2=A0 PCI: vmd: Use PCI_VDEVICE in device list > =C2=A0 PCI: vmd: Create feature grouping for client products > =C2=A0 PCI: vmd: Add quirk to configure PCIe ASPM and LTR >=20 > Michael Bottini (1): > =C2=A0 PCI/ASPM: Add pci_enable_link_state() >=20 > =C2=A0drivers/pci/controller/vmd.c | 96 ++++++++++++++++++++++++++-------= - > -- > =C2=A0drivers/pci/pcie/aspm.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 54 ++++++++= ++++++++++++ > =C2=A0include/linux/pci.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 |=C2=A0 7 +++ > =C2=A03 files changed, 131 insertions(+), 26 deletions(-) >=20 >=20 > base-commit: 247f34f7b80357943234f93f247a1ae6b6c3a740 I'd like to confirm that this patch series solves the VMD power issues present on the ASUS ROG M16 (GU603) laptop range (PCI dev ID =3D 467f). The difference is quite drastic.