Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp300677lqr; Wed, 5 Jun 2024 06:37:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdlh12yhULpvUF+UjUQ9UdDL1k4ZWByz5jcGraIbMmfpjAJ20bQerS/9KG14cDQxAdp+FM9m3RCA7Q6/PlhiRk9sYdQl6OMGguiaPfVg== X-Google-Smtp-Source: AGHT+IGLiar+UPckR09seqTG0Cps/veamRCpq/ZaB7usxEIG2ZKK5NLfjPGiM9PB9Vz9GcOw2FBa X-Received: by 2002:a17:902:f551:b0:1f3:b55:e247 with SMTP id d9443c01a7336-1f6a5a699bamr27605135ad.55.1717594650113; Wed, 05 Jun 2024 06:37:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717594650; cv=pass; d=google.com; s=arc-20160816; b=QRfyn4ayaEqBQKtm5+/iDexm9YP4f1lIa1xFYtV82ThOBZRv9rZDPclt6JsummIAa0 X50dxWz4ZVpClYJ7iUYeYqqhyvCvblzgIXiERzLYjj+C+2Jz0U7HGqvVWn8TFfe/mJjS sf/zJbpqgqaWIXKpgn7sA2QI09kwncMgVcNy90Ian/iETCeHuNCxT/sJKW2Y/5/VVBIk h97x2C5ic13LoenmcEVpzzMawtHZ5m3prFY4fGN3ZKe2SfCiCQNu2dwgc7z7w9MAFVL7 s3FO7HiFkNECcJgG11X/Ygv1eHIvtmlOWjLp7EUMd3os5XnFde/h9Pu8AfxonYyWaECX k1Jw== 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=COknJR3mU3sy2A6TOL4JRh2g25KmPf2WTA9muQ2GlXs=; fh=jq0TcgYngSQwbltgliWAVWX/omiG6aquwscJiJYcDBA=; b=L8ln9Mn6zhKN9rVnzirE0g908Oehg6RRpHLtP6rhDSI5/q9WkXK2L3wSjNnov72Nfs Cef6xpKcsKXIA8XPwBGnpxb/W2IsLGsa+oHwl2FQ8rGuSt4bfHE81cRshGROoPfLwE3q 1upFCIfEPxNbnwZsOt7dbSF4xdTxZeEPnrJx2WFBIB3b3LFuVWpAT2tPyxQ5hHvHyQZ5 iYAadMKa12qtfXYqykwVxcVwog2InvqBC9rQcPUlrFiAIC9ytvDaOR+IzzixgyjuPR3u X6wqz3iqDrQ5iLJWXL90OUdEIJjfyF4zWXXToUgqfyS3IAXvZeaISdqWNiR6TOJzs7Tb vEvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aHQ3+o0T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202410-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f632366996si105334375ad.170.2024.06.05.06.37.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aHQ3+o0T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202410-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 A992C29526D for ; Wed, 5 Jun 2024 12:17:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DCDA1B5EF5; Wed, 5 Jun 2024 11:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aHQ3+o0T" 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 9222A198A0A; Wed, 5 Jun 2024 11:55:08 +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=1717588508; cv=none; b=hs+4v/v47jNvYHbWZ2Mtxx2Wolmi6yiF2GMvrJj6UZB7114ip1i3KpDTI0SeWCgx2HUD/unmqcMlI8VZXxxhtqFJ65PDK2mHoN7csub9F6iD1ywLjZaascGlQbxWf/wtXZ08+/mH2fp255mHeTvsoT9+CHzRxLZIJKac3biQHhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588508; c=relaxed/simple; bh=+cBXV3mzAmKOx0ZUkuAPK7a9zlIlZdwUozGVJj62rIo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V2P8cc905G5MbOj6iNvjeW06YCGbBQYAiEO738RWmQ0J2/N5Ssf2CE5KEzp8xwIw1tgEFkvDZLOTqU7KkynK1LzhRKVJYAhq7D2bgoYynNIv/gIfgKL/ADrasrSJqvgQKqaJOfKb9MEU64HrdfF/jDV9x8KQXMyx9J827SMcXs4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aHQ3+o0T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0EE0C4AF09; Wed, 5 Jun 2024 11:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588508; bh=+cBXV3mzAmKOx0ZUkuAPK7a9zlIlZdwUozGVJj62rIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aHQ3+o0TFKC8vD2XGILgWSdTAOKyeEzlIXQ0BB9cNAdR8sL0571insVFHRQhqmdQ0 ShbeaNwZIdLMkyN72hQkovnXBRj25PMb4coNJ+qRTeD6PCbff+pAvJzQ8H5nvYl62/ c0QzkuGyqjLbsNcM5IBQxpbd6W1GHIUeIMPbTPlJ5U2Tvjn0sZHZUBDenFN3vdyfXb gM7l7kl3negBKAP9tNWbiC5BBW3gRNZoEXD1qksTpiaRmG/4tKNe1Mm0aCleduR7gC eCOZl5QyEuH3cew5FeeORqzBEMMUQBkQGW1cAI6+ABYbY0qsUGUKJ+DDOQCVFwnHdb /INRQrYhtVBaw== 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 5.4 3/5] PCI/PM: Avoid D3cold for HP Pavilion 17 PC/1972 PCIe Ports Date: Wed, 5 Jun 2024 07:54:56 -0400 Message-ID: <20240605115504.2964549-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115504.2964549-1-sashal@kernel.org> References: <20240605115504.2964549-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 5.4.277 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 64c89b23e99f7..deafd229ef8b4 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -2626,6 +2626,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