Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp244683lqr; Wed, 5 Jun 2024 05:04:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQnuiXaGKL7uJJrlW9VIaC5twziAMBy0Jzy4Is2J0sgCWjP72aY0QpYXNzVK7QJ5dRxfunzsHaof84upqINc9Yi3lWKVlncKST6tohMA== X-Google-Smtp-Source: AGHT+IFef2RXKr4h7gautH3JBlEEej4GUGiMvvIqSUryGb0l87PvKxbjkfbHfD7scqaKwFU88jnT X-Received: by 2002:a05:6a20:9754:b0:1a7:23ae:4421 with SMTP id adf61e73a8af0-1b2a345cf87mr6855034637.24.1717589083695; Wed, 05 Jun 2024 05:04:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717589083; cv=pass; d=google.com; s=arc-20160816; b=lwxyYa9UJ4oVITcOn5uRmMMElI3vKmoNOAHRglfBwzPKYba5okjkXSWdcj/18iYPgk LCPJi4tr+BxnkDJuccGqFNeyHFMP6bjBPK1gwoPz8MG4h+OWvahk97eyc3a3egvKqhM7 7r7rfxuBfm3Y2jl2INVhOiizNHzbAZd/TTSiPpCkF2+ik4tjMkd35YMwydP4zDJHkNSu ULbIwLnFSJbeqtROziiEvZb2SkhsnRvxEn7yiEMWvkIjNFJ4wdGwkd086sMGKOfWr6bo GdPoMRv9uutSoTsdnGL6DujKYDimx2enRwgY6shVoLgsgH4HHwOKRW88SmZEi/ktvIT2 HGOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=K89jugIZl43tIKWVI82StNx2RoMZoKShwMaGazZqaAY=; fh=jq0TcgYngSQwbltgliWAVWX/omiG6aquwscJiJYcDBA=; b=i8BP+LRebwRhE/cLt/Wc4Z6xa9/MiJjLog3sE2z0D5Z68zbMF1vanmHOL6MQIY1Bd2 rqMgimh+iGC5WYLYDaICE3Wa73vqU1WyO8EZ+1BF0IcAhxzguW8bnFGg5OhbQ0xuX8Xa I+lhBTtnPax1rU4jNFNQwhMqS7zcsv419824Fot8+OcRNd9RgGMa7AK5hxbhDuvM5v6s yOXi7kcBQpaMfQOAiWWLJ1KSUH7pgCxcovTS2Kl9oPghg5/gFNSGQA2rNiRIijz3gFdw A+Z1F5YbMH+Ia3YMuuTm4IjOETDzy8amwjjmB5wBQaKb3PVIPmbED4zPV7P0N1t1fuLf yU0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stowOefZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202340-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c894d62433si7456489a12.535.2024.06.05.05.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202340-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stowOefZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202340-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202340-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A44E928ABFD for ; Wed, 5 Jun 2024 12:00:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F8BB199222; Wed, 5 Jun 2024 11:51:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="stowOefZ" 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 AD87A196447; Wed, 5 Jun 2024 11:51:20 +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=1717588280; cv=none; b=FhRle2igddCeNzjKhHIp1ZRygz6ikR30L00Ed3JqlJjgtg7m6EjF6qy3uGitD1eG32YFtgf6Q+UQrnWfVOAzaK641S6xEHO9L/L2UhnPtD1G4kKdulpTG4gvU8uTB3rhPQyyVZVLdnjvZP1qsHdC6M+aLCzGPpATeKrr+WQrqsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588280; c=relaxed/simple; bh=rRQUm+myxZNtOJ+uW/XBpLTEyCUl7O0pdnjWtfBwhc8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nFOPWe2MxlEEhM6ebXINbV7bmaSyGE0d5zjGUvy2w9+iUDQt6yQ2yGtIVHWUy1+bSawRUSx3TTQAr42lza9JiTXOq/fgUpvuQoGwfYyC22YSQR2srHkWY+LzYssxWQjhN3m5Fmc/M4vuiZhiHq5ZFeshOaGybEo6ATVm2RlGRzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=stowOefZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C856C32781; Wed, 5 Jun 2024 11:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588280; bh=rRQUm+myxZNtOJ+uW/XBpLTEyCUl7O0pdnjWtfBwhc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stowOefZJNiUfn6JIwg1g4KpJDlh8lCefnGDQkQvFD81hxDmasOs/7pF9PhMXZ9jM 0syfgPlck1CShyyOMXSt0PDx3xlwnQ9JghsxNkgqFilHhJXrutajYh4JYj+i89TPDi 3TVuWKn5fAPbziXFjfwFGYgiIcaki0TCqIGDsQzz7buBaXwb11M36+DS8WXhEMjcwm wgzEbo4lN3xEWY1d1FDKoMi09/xSDNk3y1rzmqOuB/VDMKCKonIOZKFjmwkoEeOjuF ucAFbbpVSMQoHaPZd7xZptMEfdt/KW6UzQwhGGdirGPY0ulrfK3mU2r0LXPOZRfJFx atdiZADnwThTw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mario Limonciello , Eric Heintzmann , Bjorn Helgaas , Sasha Levin , linux-pci@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 09/24] PCI/PM: Avoid D3cold for HP Pavilion 17 PC/1972 PCIe Ports Date: Wed, 5 Jun 2024 07:50:19 -0400 Message-ID: <20240605115101.2962372-9-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115101.2962372-1-sashal@kernel.org> References: <20240605115101.2962372-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.12 Content-Transfer-Encoding: 8bit From: Mario Limonciello [ Upstream commit 256df20c590bf0e4d63ac69330cf23faddac3e08 ] 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 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 runtime PM. 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 D3cold from being used. Link: https://lore.kernel.org/r/20240307163709.323-1-mario.limonciello@amd.com Reported-by: Eric Heintzmann Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3229 Signed-off-by: Mario Limonciello Signed-off-by: Bjorn Helgaas Tested-by: Eric Heintzmann Signed-off-by: Sasha Levin --- drivers/pci/pci.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index c3585229c12a2..9d5d08a420f1a 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.43.0