Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2903656pxb; Tue, 24 Aug 2021 10:15:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt2MycYgDSeNX5K9Tv0q5357S5Wyyz0DW0gYC42YXfjJHXVEzRl+J5WoOzCvUMV4uIjtcW X-Received: by 2002:a17:906:c182:: with SMTP id g2mr41348079ejz.507.1629825301281; Tue, 24 Aug 2021 10:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825301; cv=none; d=google.com; s=arc-20160816; b=AAjz6iwVN0GTQxGtE4OgUHXyHBqNIlr5HqCaSx1pCfkTRS73TP4opPebToNW5/zUnU Y5b0ushTVENIPjBIIbEyzjQYWl4vDAwVWWY5ZiLReIYFygDXGcle/AcAdirJSV/Ldk5N xSsXsyk3DgYhKe6Vj0VBwEWY1Lg6fz7pdeuYKQzNKNQ08VXS9bPEN5j57NosYDFlb5Gr pm74HvrDMnuVlVf4oxoHcYDcRFadCAffYJ1kqlrPjvkjsRYF+NI89Gli9AJh9zkKOWHK 3szzfJO56CiT3zW1c6rRJm8zLnfohwVlGnCyXtz8BAuDYIVl/a9H5uSVzHrJ48RUjIhf /sGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K9VS9XyRkEUDhC/Hex/upP2M/myoAyp8n0gpCSjOX34=; b=QmaUs5Cif9LW1CpomDrAyUgY/AVMGTN+XnpuIB1M976FeUunCPQCU18JXEzBy/goTb 2TXCqcc8gJs8zVBXIGkWWtT1XaQwNtpm1EsjGXvtx1fNYeyj3mnCyLZYjYDD/3EJreJI 6x5jVV2RzygfzsMYDK//+7Jdas4y1wS6ZsDBgw+58hyKE/gqaXxkPUl87KyYXeIpPh8e ONRSYbp8JOn8F0nbV9MgNjv18+umuL0cV2PaoRULZImhMOeNmnuQmAv2QVUlEZm2ZR+G Wi2x9JztkbgOiy/D2nkmGYDMQBLMN5KOojyYiU3SlnbuOWs/yeVjDHZOCnR+ROaCiRW/ DSJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KBm0ubSQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si928206edc.11.2021.08.24.10.14.34; Tue, 24 Aug 2021 10:15:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KBm0ubSQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239811AbhHXROA (ORCPT + 99 others); Tue, 24 Aug 2021 13:14:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240220AbhHXRKP (ORCPT ); Tue, 24 Aug 2021 13:10:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F0C92613A7; Tue, 24 Aug 2021 17:00:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824439; bh=4HBTG/THShO6MFTxEnYpxg4RxDyQQ/jBfgn+vi0GY+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KBm0ubSQp7JnXb080yhVVcl+np1PZqX5W6uWtccRiSqjfMUMroL6tjlSqtO6GOFX1 29+8Zn/uNLQlv9CuvB61fUhZSPL3hHfSwlELXRzO0dP6jCQe1nUeJ6aBmYTN0I/cms eaTuaFH+R9Kg/krFeC+iNmijhBvKHJqatCterO1EwaDi8A1h6ttWRccpBp6/104c5E wIGLIwCeygwyXY37fS780C3UspzP/GR1qy461ipB7H20wOTzRe/l93VdNX0dUbNtX5 y63/4wwfgAHRUeeAp/+D2LRbLiXm23B/Gz79fDHSHGnDnP01gLA8ScpbEPE0pVeGDR mx5KJhHm6WOiA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marcin Bachry , Alex Deucher , Bjorn Helgaas , Mario Limonciello , Prike Liang , Shyam Sundar S K , Sasha Levin Subject: [PATCH 5.10 91/98] PCI: Increase D3 delay for AMD Renoir/Cezanne XHCI Date: Tue, 24 Aug 2021 12:59:01 -0400 Message-Id: <20210824165908.709932-92-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165908.709932-1-sashal@kernel.org> References: <20210824165908.709932-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.61-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.61-rc1 X-KernelTest-Deadline: 2021-08-26T16:58+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcin Bachry [ Upstream commit e0bff43220925b7e527f9d3bc9f5c624177c959e ] The Renoir XHCI controller apparently doesn't resume reliably with the standard D3hot-to-D0 delay. Increase it to 20ms. [Alex: I talked to the AMD USB hardware team and the AMD Windows team and they are not aware of any HW errata or specific issues. The HW works fine in Windows. I was told Windows uses a rather generous default delay of 100ms for PCI state transitions.] Link: https://lore.kernel.org/r/20210722025858.220064-1-alexander.deucher@amd.com Signed-off-by: Marcin Bachry Signed-off-by: Alex Deucher Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org Cc: Mario Limonciello Cc: Prike Liang Cc: Shyam Sundar S K Signed-off-by: Sasha Levin --- drivers/pci/quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index bb1122e257dd..cd2401d4764f 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -1905,6 +1905,7 @@ static void quirk_ryzen_xhci_d3hot(struct pci_dev *dev) } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15e0, quirk_ryzen_xhci_d3hot); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15e1, quirk_ryzen_xhci_d3hot); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x1639, quirk_ryzen_xhci_d3hot); #ifdef CONFIG_X86_IO_APIC static int dmi_disable_ioapicreroute(const struct dmi_system_id *d) -- 2.30.2