Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2482903rwo; Thu, 3 Aug 2023 10:00:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlE3waUeFpYVT9bRwfaVdGfzVG766m5XiPxdpO07A/z5tVXhcYkv/QbJvASx/1K5Gr3Q6aT7 X-Received: by 2002:a2e:8ec3:0:b0:2a7:adf7:1781 with SMTP id e3-20020a2e8ec3000000b002a7adf71781mr8309345ljl.2.1691082053391; Thu, 03 Aug 2023 10:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691082053; cv=none; d=google.com; s=arc-20160816; b=GLViNFNkHTONg5AaUi4BKAuQeNEl1bcif6KWhgjiwz4LveTliEBAmyd/fYK+Wantgl 6bVikAyQTOx5BlH8ae3DeZ0HYMBUCasbu12HkNgeMr49YSVqTXFhQGP1kiuTiTzvZnhm LNjYMOp5PlxfQNFZrJlyL5FM7Q04bly/GhfxURNPiRv/7l3/RzLWfyWI7hr8T6/x9diO RgXmnR+e495+/vVCOloCsFIqRrkfQBPbPI1FyE6BqApYtCCxKnyZc7pyC5Y8JoiGVkmp Oaga414oUKRKKqx7oLyqgTqu8kQgVxja2mIaU6lvo+Hjx3HgtXULeonM7ybmbdtJqyff nSbg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Br4gKEYAqXZFg6CooHcqDl830/zCKPAZUoG5Ssei+Q4=; fh=PYsUxyYBoeR8aVGc6wEuFOd8Lu70Fb0yvIlt4lY6rDo=; b=InoiOqAiWETT7t7qgQb4vm8AvX6bduvEppC6uGsBEhS5gdCEZI6l2IywFC/NePYt4F a38igv3WG51i7U/rr8cbzajMI4Cqo/ZcNwAYLXBBBKhKcTHXXz9caJMLFAy8ILYhXnsX CQAwh6LXQB61XAe4i8hqob0Lk04lXYctg9OxMRy6IvLekNzBTFiw51ZbYfn2+/hF04ku 761mlFvEUDRjoAOBf1hOIHJcfqAQvR+bNlfwRTYgr+WbQvD7WUlfdjt4UihfiLNgMpOp r9+Fb07n2jX2o29qqvlW529r8Zw3VgOICDCbuYBEkhP/6cSPtDTbenJq1an7f6NFdnfN 0bgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="J74i/c46"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p14-20020a170906784e00b009925144d755si86836ejm.461.2023.08.03.10.00.27; Thu, 03 Aug 2023 10:00:53 -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=@intel.com header.s=Intel header.b="J74i/c46"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234153AbjHCPPL (ORCPT + 99 others); Thu, 3 Aug 2023 11:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236988AbjHCPPF (ORCPT ); Thu, 3 Aug 2023 11:15:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B89EC1713; Thu, 3 Aug 2023 08:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691075686; x=1722611686; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gQ71cFEQdSQQ+sgcBE2/3AzkL69DgqJAsfRaCidqc5U=; b=J74i/c465vh0o81QpjWLMWKvUNAmXPnjKUInvilEiK6zM6CEvzeySIap ulqAuKY9O3qrDO9kW+T4VNqF1owzQpZfO8Y5mb7GB7eO/0i85KBben36r 234hJfbUYM6xIaAqQ1W60n/R6GSETtxdler7pcSv/e5ujYrsbXcVfn/BM SGSYWWbTxT86dScMKPZBVDJIMZw8kZFO0BMKnD2yUwcplpa7XmGBSemqf 14qpsG+tTGrBGP6DL+ubn3r48O8N5Ng2oT2AjDha9mZdw8l1eECLptRUU sJ6x6ZlmdetDRRSBTtNca3Z1wnWDoPuI0FK1mXCktFSVGZt8ZnmzBwpob w==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="433751259" X-IronPort-AV: E=Sophos;i="6.01,252,1684825200"; d="scan'208";a="433751259" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 08:14:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="795008846" X-IronPort-AV: E=Sophos;i="6.01,252,1684825200"; d="scan'208";a="795008846" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 03 Aug 2023 08:14:43 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id B03713ED; Thu, 3 Aug 2023 18:14:54 +0300 (EEST) Date: Thu, 3 Aug 2023 18:14:54 +0300 From: Mika Westerberg To: Mario Limonciello Cc: "Rafael J . Wysocki" , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Iain Lane , Andy Shevchenko , Kuppuswamy Sathyanarayanan Subject: Re: [PATCH v8 2/2] PCI/ACPI: Use device constraints instead of dates to opt devices into D3 Message-ID: <20230803151454.GZ14638@black.fi.intel.com> References: <20230802201013.910-1-mario.limonciello@amd.com> <20230802201013.910-3-mario.limonciello@amd.com> <20230803050118.GV14638@black.fi.intel.com> <06cf76ba-de5f-caaa-d1c4-9d34adf15a52@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <06cf76ba-de5f-caaa-d1c4-9d34adf15a52@amd.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 Thu, Aug 03, 2023 at 06:38:45AM -0500, Mario Limonciello wrote: > On 8/3/23 00:01, Mika Westerberg wrote: > > Hi, > > > > On Wed, Aug 02, 2023 at 03:10:13PM -0500, Mario Limonciello wrote: > > > @@ -3036,11 +3044,8 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge) > > > if (dmi_check_system(bridge_d3_blacklist)) > > > return false; > > > - /* > > > - * It should be safe to put PCIe ports from 2015 or newer > > > - * to D3. > > > - */ > > > - if (dmi_get_bios_year() >= 2015) > > > + /* the platform indicates in a device constraint that D3 is needed */ > > > + if (platform_constraint_d3(bridge)) > > > > This for sure causes some sort of power regression on the Intel > > platforms made after 2015. Why not check for the constraint and: > > > Are you sure? I saw it as an explanation of how Windows could put the > systems into D3 when there is no other PM related ACPI objects. I'm concerned if there are no PEP constraints on some of the affected systems this now leaves root ports into D0 then, no?