Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2909360pxb; Tue, 24 Aug 2021 10:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEcUCB76ylP0h9RdwA7EfV0SuNtgDW3KRvUsCDtcrvRfTybFACipCMRuuM3p7whmScowW9 X-Received: by 2002:a17:906:bb03:: with SMTP id jz3mr43402252ejb.79.1629825740908; Tue, 24 Aug 2021 10:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825740; cv=none; d=google.com; s=arc-20160816; b=WU8DCt4Jn97rSePW6iQEymGD048BYAIqbS60c71Weg+o0RcQFbJRLjWhTRZisfdc0j SRIMbmBv/ASgyB918rWA+js1mgU9t2MGRdN3akqtM9gVjDkJYDIzcVbtIFEbSoh1oAj2 Sf/YHFgPUjmEl9VqUj6/UryMRQ6oa0ITiL62eVO+YwhqXMFcIv81lK3T4ERpGEMEJXua /Er4RQldSYlZz5YWD6cJspdKi37IIM+B85Wz6wRtPMRJANTlGjqYTSx+3zRzBIXUol1d Tjc1XN2487CWiSVJqh02G+LeLYULR9u58illz7PDu5uryHiHz6/qkHMPQuTyFzXnQ//a q7gw== 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=JpqS4NYZXzAid2A91mjxWopGU22DZ/dRZZRVSam09wg=; b=XL1wYkYpHneQqUtNZm/tPycMzwZsevvIKtGyLm/bBV0aIsoVuCkNchfTh6oh3cvxBv Vf+Hzrc2kEjLvRpe3qmv2+t84RzNniI8apxinur2+39H0irKqAnShpwJk/d7R0hw5pGG dnSSDsTQ6QuAi3noJZ+VrCQYdda7r4XpZLmfE/PLNhjNPtLq4Q5AgKwRnCIyhG8R6C1D UQ+879cdPkPZ8ZrROGZwsq3PyK8q+sQHkitnXsHNrNPux70qXHsHlnTEhPpgPvkLsWRb yd+WTir91HQPP8Vcjr53UoD4sT08cxCt6x6YUVt10Z67grgjvP7qg0DAENGWng8N+VV+ olCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DBpK6J2a; 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 j18si12865519edp.44.2021.08.24.10.21.56; Tue, 24 Aug 2021 10:22:20 -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=DBpK6J2a; 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 S232735AbhHXRVX (ORCPT + 99 others); Tue, 24 Aug 2021 13:21:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:56438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239937AbhHXRRo (ORCPT ); Tue, 24 Aug 2021 13:17:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8DD2161506; Tue, 24 Aug 2021 17:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824522; bh=vrPYyXrwUhYA/rv7JkB/yc9qz0B9e990INSv9DimcSM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DBpK6J2aT5dRU907VeeSfjDBHgKKn8nt0P/3NNwJvS51wjc8/nvYPgZ42A6Z7V3SU SYTMeWjE13pwBZ+vVDfDAapY1a4Q5owWGk0GnrIFlQVcle90z9EKY2sFB9u/c+cGJm ynSfienaTyAqo/XPFWXxEk5CR7mttsAi+UKEDbii4PBiATF+XJTKambw7hRD7CBoEO Sqi9iRaU/nofaSan+tPhrsXfg2WBBRMWeoLJrhc/pPRSQ2WhccI27KJrxCYJCkGm7c JYgL6YpBP3a4tMKY0PmYgfxZwxt2kmYn8QZIbs1BUyI3aSoYrfAC3lm68SbhTMpPBN iax5nOwg9PVag== 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.4 55/61] PCI: Increase D3 delay for AMD Renoir/Cezanne XHCI Date: Tue, 24 Aug 2021 13:01:00 -0400 Message-Id: <20210824170106.710221-56-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170106.710221-1-sashal@kernel.org> References: <20210824170106.710221-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.143-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.4.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.4.143-rc1 X-KernelTest-Deadline: 2021-08-26T17:01+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 6c1b936a94fa..0241f0dcc093 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