Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp254020lqr; Wed, 5 Jun 2024 05:19:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoMNw9D3hFg8Ypgo91e9csjaxibvFAHfDUxhumcO9/g+WoYPOvrsyr6vwAPOV6VdZHuxocbuQiEX8AHSbE0D8gLf2aqjxCiqRfZL3YPA== X-Google-Smtp-Source: AGHT+IF+iKefrFDbeYQLQxvB1BxCa9rXIHsbxTUcRtV5DYoW+VY7q5XzArLsb8KN4Fb3wLskVTAz X-Received: by 2002:a05:6a00:4f84:b0:702:6515:f757 with SMTP id d2e1a72fcca58-703e5a1358bmr2513596b3a.25.1717589962708; Wed, 05 Jun 2024 05:19:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717589962; cv=pass; d=google.com; s=arc-20160816; b=w/nSFQD+gYKXnYSkJjWyZDhfJ6mRJvlAhl/I73iAJB8XSXIf7TdJ7ayOgGpDcUYu84 1JhisVtgzFrm+NoUZYfjUE0RyZ+gKJXBvZ992x1L8qXF0P1gj503sbo8r4apZ1PbHksz viKwusW/GhJ/4QB6do7zwpVGil0/1yruStgF/qJmOP4NiBVFL6dt8IQj1lJlkbNggto2 EAnJueioAu3tRUctSxQeWY8Y3bjFoR2WpR79UFJaYwC4fHqwJrN2XobE+nOyvEPEjT3q KwYPI86RkfEq2agfzMpoFQr8A/mQCBPkuIVxF2a44krkWEt2TeiPql2/o4V+obrUSjBH ZWjQ== 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=oWI9N1L2XDbOSh6K7WI5HbvXCCSDeDROzr0ZYu5ikxk=; fh=jq0TcgYngSQwbltgliWAVWX/omiG6aquwscJiJYcDBA=; b=QdugOW1GE7G47QKP16oUu1TZDqUZ5cSP/krfvOzEi20p002BCjuCnbWlz+TFdV7USn gTEEqCzs9s8EnXT3NAMRfq6d0D4Vtsabl2s9+VNrgvnAgmLuBP23dyUWfXN3Ys16puQ+ SA1yPluuUI/Z74krp/MB9WMK6xOY/nkRdZGO43qe/LxM3idjPgyxmJUgxZ66Nvb4bN1q 7g5+ggt/+Gkk/+hKhqVDYE7EjUCS1D+MKtKEraeEfx6GEwWonwm54ExOxw+Co9kWLeV8 7x7N6vjXHzy1wuEq+UZSK+Ffd4x07D7YT+2fhg1w2T/j4lwmAEknu1Ap8Nb2h8sS+xGq jKqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NsUDqLOK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202363-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. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-703f1887f4dsi612202b3a.364.2024.06.05.05.19.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NsUDqLOK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202363-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 79454B2644B for ; Wed, 5 Jun 2024 12:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28E3A1AC457; Wed, 5 Jun 2024 11:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NsUDqLOK" 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 338041AC43B; Wed, 5 Jun 2024 11:52:40 +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=1717588361; cv=none; b=RjkBGCum7YtfVyfZVuT9O9vQA4U4CdXuL83eTJPNsukLiXmYkTOIVBnuXbNoz0i0oupJKp9v1qZDnqYfM3ANLa4cIwtnIuB0eXrSIzjZ1TuPLPezwzKJt543tpu4w+k6dJYZ/7LaCFEGLvTyufkdf7QjqzpubtspNYcAlrxJjvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588361; c=relaxed/simple; bh=Wd5yavJ7pURd5nGUlmUaojvmHgkhAPRCHPo6Bm+QanE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X4Wmv8uuOL3p3CoClsDy1tKsXHnZzjuGJ2oPqz+0JGnI6jwOE+aZ/4JP3/aG/92NVHAznfGLEtFDLtIe+x+2e2R2K5UFjldvFGMikIeNPK2C0GTqq/oKpSOs5LfVd0q+5VHvLgPy+wO2XfVbSZGyWtMLhMzeKmg+m2cj0YUE1lo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NsUDqLOK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2F3CC32786; Wed, 5 Jun 2024 11:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588360; bh=Wd5yavJ7pURd5nGUlmUaojvmHgkhAPRCHPo6Bm+QanE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NsUDqLOKBRylWu+uxT027qYrh+/b1/B+8Znpw4XGoMNRvOsCsneRVTRA6bCaRU7fy r9aUmdHZkcdE9afTTobxhGNY+nHFT3p1jyAZN+cmV5Gj1uQHCR3RQTj5GGhJtNTfpG xXW4O/LHEVlpNcngP1aAaQvhRPGku4SHMBo6lcox1c3Q3tRy+kn6PMRFFPztZFH7IH mkZYJM/0xcUwPYhtT0FdGtAlm0jz2BlIkYO4QttYO9qoUggWmLUSioiEeNxXgLXTGR H8qatA+c6+wjUMeRDFf4Pyo9FsuNiYy263JdTYoZT3kKgtnO5PXV+Cnlobp8tVh3kn B3CwH9KTCmPFA== 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.6 08/20] PCI/PM: Avoid D3cold for HP Pavilion 17 PC/1972 PCIe Ports Date: Wed, 5 Jun 2024 07:51:51 -0400 Message-ID: <20240605115225.2963242-8-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605115225.2963242-1-sashal@kernel.org> References: <20240605115225.2963242-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.6.32 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 dddd30deea32b..26c9d16cb60c3 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -3040,6 +3040,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