Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp251116lqr; Wed, 5 Jun 2024 05:14:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhJx/0bC7aQ42dl5+oEEwDE5BTRYoFyhvZ2a3IuPKKGpWpb9zdInRSTvaWDoipxN85QFweHPuCKGuGLuQ6eXLWsmSlsklgE/1JUxZYRw== X-Google-Smtp-Source: AGHT+IHZkHcPLj40AzZuQpShHwmBMqOKtYSAOPMlqI28aCYu+ey5doc95mqf2/5Dvj69vaW9A8d0 X-Received: by 2002:a81:440b:0:b0:609:bfdf:8a32 with SMTP id 00721157ae682-62cbb5c2c9dmr23428757b3.44.1717589666507; Wed, 05 Jun 2024 05:14:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717589666; cv=pass; d=google.com; s=arc-20160816; b=IosI5SuvGGQhkWtL+rCTrU4Nxc/0iB5JOf95oKr9palgOJY+NLHU7TfcHr7rF4tTNU QWUs3U1w2l2M5Stj3bONWz0xlKxg2KO5DuSbC4JxIIXum+OlDjMtlCQsap42HA4Ldecb cUSH3hLV7FkZRr4ord8oQjbM3QyfTlatEaUmS0tvdQ2gVhNAY8xw0hFQceNzGJFa+aT8 fdv/WeCq5WSBjONjeve+mqk4H/hvhQGWeiL85Jds5OzfZbrnb9pkfxIxZqn32HgqkiJF /t2PW9NYKnVAhZRgkFs8iGFWqGp/UflVjahCWoXhXI+le4MnVWtQ1VjQEFag8xcElF5+ ZZwA== 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=h73/HP+aW2hiDsAO0Zv0i4znZJvYSExQtFFvYi9ivMw=; fh=jq0TcgYngSQwbltgliWAVWX/omiG6aquwscJiJYcDBA=; b=n2gsngrfa3t9obsxtiZ+E2VIP1NY1nZ6YTiuWwT/2jRauw6+mFd3diklR1pX9k8BLI DYjpIUn1lLOlMNCJuESG2nT8GelUZW5Sv9jxf7zVXTgb6w9tf6cZ9VsKLbqPmZiD61BW PvVEJT3Xv65JJJ5TT5gNNw1Rwlu28Eox/7KcK9AdqTO+ux/tOVF3ow1+MGywQd5TCZ4F Ciz7dY9KljMtJ0tvNN33n6wNIn6o5rT83bwxA8S2O06w6Qr0hfBxbLvMnnHiqTmX1wsj ZMZFlJhYG2QpBKaAvd11qAneZyW2epg9qnDBnx9dleFP4yR+L1wlRMHxdvkZbocjbBs9 PuJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTyIDU2i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b416c24si38083346d6.332.2024.06.05.05.14.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTyIDU2i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202396-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 399591C227B7 for ; Wed, 5 Jun 2024 12:14:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77166197A8C; Wed, 5 Jun 2024 11:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XTyIDU2i" 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 94ED2197A6E; Wed, 5 Jun 2024 11:54:24 +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=1717588464; cv=none; b=qtzjYD3gLNA9PGTwVO/rKOmtV3eaawOpKBj7Z6vOsOOoz3q+3eajt56lBPFAmNyQ15DaPvhU8uqb3SzCkzrC/re9r/dmOb+AmIOxfyqMRpWAIpihtkQVcsIqCmP7cPC1QbLN0aE90rjAhb98Rq2r2yDtwxUshzfczVhWMNvrvFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588464; c=relaxed/simple; bh=tFWbbzDKU0f0XeHhNfACXerJYRh7P8oDGFiSiIz9rFU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C4/aYHqypP04cEpUjVHc3QptL5O822qp1Ilc7Y2cUGwpX4csyJ4QB0sMvaowENMDTx2TxvqFRNrt0lN34RnothfhW99ohm5s0PJ3wO52KczB5ffp/XWZbDQmwpnftgJfmoN6k0On2yFgjMO0Q8L0oOT8XcSL4EjWpYa8/T1uXXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XTyIDU2i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F07C3277B; Wed, 5 Jun 2024 11:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588464; bh=tFWbbzDKU0f0XeHhNfACXerJYRh7P8oDGFiSiIz9rFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XTyIDU2ijVWN+ERYLvF3GYwbqx5Shwi6D+UTWsm9Tc2YFkZHx+sKlSLIqDRKfohOo +LJPFxMhX+/OY1ZiYkAPmqCEq2ziq7lArjv9olwE2CeeZ+otU28uch4MomVp7isTMd a+QkG0OEd2N36eP+H8oUx88rqrDMLuwZ7taPq+kkAjpoCfGNW+n/dEVGC6xpPLcC6A 1R4/geAIYeKso8FzQN+M4nbzP9wA68ElVmJ8BfennKQD0kbrZFD4O9HKhSIPI5n8B0 3t84uo3AdLL81jLe1wCSUPJ/aHzU+6/pBhIhaKo2IzbEfcwuA7gDp+K3nKTvSpfa3H tL5g8DUnO2FcQ== 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.15 5/9] PCI/PM: Avoid D3cold for HP Pavilion 17 PC/1972 PCIe Ports Date: Wed, 5 Jun 2024 07:54:03 -0400 Message-ID: <20240605115415.2964165-5-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115415.2964165-1-sashal@kernel.org> References: <20240605115415.2964165-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.15.160 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 36f1e604191e5..67216f4ea2151 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -2901,6 +2901,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