Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp289090lqj; Wed, 10 Apr 2024 10:23:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmIR7HrW8fl2MF8aqPmyY6W3v+dh/tJalyvXRiA/hHovvJY5rKy3odiZzN844W790ptoEf7FfRKjCrLeLD+K4qSl+9GLLE5R/52AHJcw== X-Google-Smtp-Source: AGHT+IE+xcs0o21Z0bgRfRGLcXZHqKYyMoh/eMMUWhB1dnyFRQ8q0w8IdViApOTTFfvrlwhnRpGf X-Received: by 2002:a17:902:9348:b0:1e2:a449:da15 with SMTP id g8-20020a170902934800b001e2a449da15mr2888589plp.15.1712769821097; Wed, 10 Apr 2024 10:23:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712769821; cv=pass; d=google.com; s=arc-20160816; b=ku3FBxPguh/giLrQwWCqgW5eoDgAzd9qJFeiZYaEvZ9cMD/1S++y457dg9W6SJjgiQ Sp89oO+qHzR2jY5t6RQbwagLb3se7NvQNEb3fAxEctV7tQetOX/RcX7SqWuyUxQJlrcW O045Q1c7ynms4agCiogCsoLB+Z2ZfIsYqaSjv/GY++tOkWRGJboRssKie+CgjP5mTaG2 yU+8CwOjLDVCW8Yfie3oOWe34bLMdK43dlhLRTNj4GyleJNal088xGmSK3B4mJOSHaTd gUe4Y5fwS5Ab9m0ANRBzGlPGek7ksftb+GhgVpoyHYlEUYEDJVLNh4vBEGPAKzVIiArX Rj4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=auu79/kitlPIXzdrB505neHxmkZ2SrPDeLN/IkRD/Dg=; fh=gQFu346yAKmmllgrSTe+hD9E2as8N2WCe8UufP1uyD0=; b=X/9NlQc3t/4A2pgymsEjMSfvYnGiOmCr0ISSl4emJof+JEJwUBqbWyyYHR2buUI49t GBm427EHTaSgX5R9MIqaMLaP0mqTPtJdlQ7THw5eGJewjav4njg6/0HG3uuJntA/6T53 bC+OTZekZzEEb2Qydygftr/sdI9QfVKW+eRJbmqGijF3695lFhaYJQKe/eLG7mR1CvNv amPd+96qk8UFAx873yPaJMlv4wHGtWaUZAbMZczVq4iAPIUSOacxi1v2xgMfO2ZES2vR 7Jr2RqvJv5Ufz+2Bfzt+m9pKNWsbEzJyBDC7hgxRmtFMorGF35lwrkVf5+pU8kn+HEwS gr8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rrlISI/1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q12-20020a170902dacc00b001e27ad324d4si11285925plx.155.2024.04.10.10.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:23:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rrlISI/1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8C101B272CA for ; Wed, 10 Apr 2024 16:46:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F20AB17B50D; Wed, 10 Apr 2024 16:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rrlISI/1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22EA73C38; Wed, 10 Apr 2024 16:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712767602; cv=none; b=KzqU9GhrvLV3kD8ebFIYNQ4+3Knn9rj/AYZ2IC7sMCj436VvSISOt4eV64Fcw22N3suX4zKSoqp6EK+kKceg115tqYJvg+T5NOKJwh2+tXcp33wt5iwtb7nrDQ39ZqQlJa2lVR06/EChGmFzfENoqrY0b8t7tATXJALMq7knai8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712767602; c=relaxed/simple; bh=qii5UQvff+KsRQSbgkC2NNYV6wkpNnpnheroe4v9t/w=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=JqUVJTSNBfUDi7iQYK2SzUAPNriyCWeHXFr4Q9WJSqwpQEtv3fs9BYfnpIAuEBAZrDLCFD8NcrSReFf6lgTqPwMMxArIomJTyZQC6IRqgo5jZaYjFuBN243y1kXFz1AvfV4CzWb9qxzNw/n1rOdyJ8aDlP6OKGzrAz/kNIcQ8I8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rrlISI/1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B60AC433C7; Wed, 10 Apr 2024 16:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712767601; bh=qii5UQvff+KsRQSbgkC2NNYV6wkpNnpnheroe4v9t/w=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rrlISI/1hPx3IK1LGSir1GMuUTLKufF2CXZlbXUh8V3HTisTyPo/IdycxxKaDl5Sl YNca5UxKCfT6KMSIaF389cW7WNDhKt4WD2Ebkne3OzYkvLkJUTIG9/rvoHYzGFzdd9 66E4j2QaPDntzVWR39GfbQSw3AEjHLhTc9ZgwcEDYzv3Bybv5gy8RpS7AxbaefoeWe EYv0mkkgmKazPoD6f1tM954DWU8fGndLL/dyhlUfHu7y1ZW0UNIgX7HmziGLEeo0kL cE+xC9JOoQYcwVaJC7JLE45R4W1loTLRhedDrHdpPrP6FCeRFuIcbFx9RiSRKuVpfv OgS+je+X/CZrg== Date: Wed, 10 Apr 2024 11:46:39 -0500 From: Bjorn Helgaas To: Mario Limonciello Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Heintzmann Subject: Re: [PATCH] PCI: Add a quirk for preventing D3 on a bridge Message-ID: <20240410164639.GA2145972@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240307163709.323-1-mario.limonciello@amd.com> On Thu, Mar 07, 2024 at 10:37:09AM -0600, Mario Limonciello wrote: > Hewlett-Packard HP Pavilion 17 Notebook PC/1972 is an Intel Ivy Bridge > system with a muxless AMD Radeon dGPU. Attempting to use the dGPU fails > with the following sequence: > > ``` > ACPI Error: Aborting method \AMD3._ON due to previous error (AE_AML_LOOP_TIMEOUT) (20230628/psparse-529) > radeon 0000:01:00.0: not ready 1023ms after resume; waiting > radeon 0000:01:00.0: not ready 2047ms after resume; waiting > radeon 0000:01:00.0: not ready 4095ms after resume; waiting > radeon 0000:01:00.0: not ready 8191ms after resume; waiting > radeon 0000:01:00.0: not ready 16383ms after resume; waiting > radeon 0000:01:00.0: not ready 32767ms after resume; waiting > radeon 0000:01:00.0: not ready 65535ms after resume; giving up > radeon 0000:01:00.0: Unable to change power state from D3cold to D0, device inaccessible > radeon 0000:01:00.0: Unable to change power state from D3cold to D0, device inaccessible > ``` > > The issue is that the root port the dGPU is connected to can't handle > the transition from D3cold to D0 so the dGPU can't properly exit runpm. > > The existing logic in pci_bridge_d3_possible() checks for systems that > are newer than 2015 to decide that D3 is safe. This would nominally work > for an Ivy Bridge system (which was discontinued in 2015), but this system > appears to have continued to receive BIOS updates until 2017 and so this > existing logic doesn't appropriately capture it. > > Add the system to bridge_d3_blacklist to prevent port pm from being used. > > Reported-and-tested-by: Eric Heintzmann > Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3229 > Signed-off-by: Mario Limonciello Applied to pci/pm for v6.10, thanks! > --- > drivers/pci/pci.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index c3585229c12a..9d5d08a420f1 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -3102,6 +3102,18 @@ static const struct dmi_system_id bridge_d3_blacklist[] = { > DMI_MATCH(DMI_BOARD_VERSION, "Continental Z2"), > }, > }, > + { > + /* > + * Changing power state of root port dGPU is connected fails > + * https://gitlab.freedesktop.org/drm/amd/-/issues/3229 > + */ > + .ident = "Hewlett-Packard HP Pavilion 17 Notebook PC/1972", > + .matches = { > + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), > + DMI_MATCH(DMI_BOARD_NAME, "1972"), > + DMI_MATCH(DMI_BOARD_VERSION, "95.33"), > + }, > + }, > #endif > { } > }; > -- > 2.34.1 >