Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29582127rwd; Wed, 5 Jul 2023 14:13:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlGinqaLj9aqcfrU+6MquYku4HZ9hAoJWxtChmRTAgj75V/dswuqqmuOPBjmCIyTV15tVh3b X-Received: by 2002:a05:6808:124c:b0:3a3:91f8:d3da with SMTP id o12-20020a056808124c00b003a391f8d3damr17439896oiv.13.1688591604051; Wed, 05 Jul 2023 14:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688591604; cv=none; d=google.com; s=arc-20160816; b=njr8pGMGManlUnfjTumxUD0YrCojAZFnvnRqdWuqNjzQx636sixXhZPnw1ROGlWfM9 LtAqtiFFANimRCahkBqPXITcigGSZizDJm2xdF3OGWpxjgugFvQpc3WJYC16aYSKzp4L 3JGcTXlPwixyC1N3TbkRffLuwYpgNrBxcwMFKeztaoTnCz8UhAT20Co0fbXai7OUWbNK MYnyWiazoz+SXhTY+lXzxHMGgwK3AuUql5IEJ/6t038a5djXPQeQ9QUeZNy1ElZTl7lh aHXpBaia9JH34ZnaETItlrAtSrL00Sv02H/NsT2rVfDJk/JwAjCsuRBhVOiDTaYFD7xX zIKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=DOv8XvdjFiYf37o+Nlj/j8GGL6DXmSp/0RPhooeeW5g=; fh=pE7u2yHohEb/Rkfl8++QoL9y8hjov+TUPybDPTQE39o=; b=cGnaQePzrew0gjAJVljYt2iXiaIRDp9v8ehu7HjCgzfH9co+zyZURzCGfSIorv20UY +hdT+Cn/CT8JKpL/rObcq5HOUn32YCaRD4YwCQfBCcqUfiJggD/vAWlJRw2n/m8D8LL2 iXWdQ5YB1jjwTPiEeJA5bIkpKtY0b0dxE43SQx/TpmZIA6Z2UvewttnfHt392zohISvu QZLkEpCLH8bI+cwM+zsTXipQP975urGSHp55MbbU3RjwU0gWIo0tN/Ke8CoaUPFRP2vA V6hHzjcmzg686+Wc7kMEWI08ghNKIedtdZpZ47Wardf9ITVCifUfpS1ueUBvyj5xUzBz m63A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TJPC1G02; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020aa79f8b000000b006826f3512ffsi10745393pfr.234.2023.07.05.14.13.10; Wed, 05 Jul 2023 14:13:24 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=TJPC1G02; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233352AbjGEUGW (ORCPT + 99 others); Wed, 5 Jul 2023 16:06:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232618AbjGEUGU (ORCPT ); Wed, 5 Jul 2023 16:06:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD11188; Wed, 5 Jul 2023 13:06:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A8141616FB; Wed, 5 Jul 2023 20:06:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA81FC433C7; Wed, 5 Jul 2023 20:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688587579; bh=z5pOaz2o7vAP2YYNhfS0EUOnW70/UEHkLQ7tR3WqAaY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=TJPC1G02VrF+X/MQY3zvnWf6w99sv8SGZs9esbh15UwTqy6jsR65e63GQtj722Ga+ sq/DUutey0colk4gWe6ebEUHNlsAzuvaAMfhFi48dzCaiPsgGA1nBM9bqPRdSOvBWQ 2wuAP8qRvEJSBlQknfZWecUcsfm6SmBXo9yISo4Ce991HvVCsB9Gvojx/CkIoqYIPo dU9ELI48fKtEvId/VkyrFa4H/lvR2vO14QoutBBvhAN2as+ABkqX4wALhxwK/Vi2Ag y+QEdaIyU1c8hHh20mDzai1AswiWVRQy6XL3s+kRSwzExHpWC6f/jhrRDU4sc8QqWj jnfdHKJhlNhFg== Date: Wed, 5 Jul 2023 15:06:17 -0500 From: Bjorn Helgaas To: Kai-Heng Feng Cc: Kuppuswamy Sathyanarayanan , linux-pci@vger.kernel.org, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Vidya Sagar , Michael Bottini , "Limonciello, Mario" , intel-wired-lan@osuosl.org, bhelgaas@google.com, Mika Westerberg Subject: Re: [Intel-wired-lan] [PATCH] PCI/ASPM: Enable ASPM on external PCIe devices Message-ID: <20230705200617.GA72825@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, Jun 28, 2023 at 01:09:49PM +0800, Kai-Heng Feng wrote: > On Wed, Jun 28, 2023 at 4:54 AM Bjorn Helgaas wrote: > > On Tue, Jun 27, 2023 at 04:35:25PM +0800, Kai-Heng Feng wrote: > > > On Fri, Jun 23, 2023 at 7:06 AM Bjorn Helgaas wrote: > > > > On Tue, Jun 20, 2023 at 01:36:59PM -0500, Limonciello, Mario wrote: > > It's perfectly fine for the IP to support PCI features that are not > > and can not be enabled in a system design. But I expect that > > strapping or firmware would disable those features so they are not > > advertised in config space. > > > > If BIOS leaves features disabled because they cannot work, but at the > > same time leaves them advertised in config space, I'd say that's a > > BIOS defect. In that case, we should have a DMI quirk or something to > > work around the defect. > > That means most if not all BIOS are defected. > BIOS vendors and ODM never bothered (and probably will not) to change > the capabilities advertised by config space because "it already works > under Windows". This is what seems strange to me. Are you saying that Windows never enables these power-saving features? Or that Windows includes quirks for all these broken BIOSes? Neither idea seems very convincing. > > > So the logic is to ignore the capability and trust the default set > > > by BIOS. > > > > I think limiting ASPM support to whatever BIOS configured at boot-time > > is problematic. I don't think we can assume that all platforms have > > firmware that configures ASPM as aggressively as possible, and > > obviously firmware won't configure hot-added devices at all (in > > general; I know ACPI _HPX can do some of that). > > Totally agree. I was not suggesting to limiting the setting at all. > A boot-time parameter to flip ASPM setting is very useful. If none has > been set, default to BIOS setting. A boot-time parameter for debugging and workarounds is fine. IMO, needing a boot-time parameter in the course of normal operation is not OK. Bjorn