Message ID | 20200803121857.806357754@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=5b7Y=BN=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0158C433E0 for <stable@archiver.kernel.org>; Mon, 3 Aug 2020 12:45:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7FDCA20678 for <stable@archiver.kernel.org>; Mon, 3 Aug 2020 12:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596458716; bh=rRQsBuWultFzeA0SwrZlU9xbZ20iKD/hOXZx30bdjho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sQ9QveRZKqJtTWXuix4OW1S63RTR9nQa8Cm+LOnStf1zDp5ig1GD6Mc0At8Or+bgu CPurl3Jh6yOAYlY99jXdiwdLLuI8raNFWz02B5kcJ+tK5+t7ZtX+vyhC8WJy6Y8Vc/ f2CweKu7IdDiAGtgrnnWjDPDrBTzwluK6ClTWI9k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728511AbgHCM1m (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 3 Aug 2020 08:27:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:53520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728579AbgHCM1l (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 3 Aug 2020 08:27:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5CAF4204EC; Mon, 3 Aug 2020 12:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596457659; bh=rRQsBuWultFzeA0SwrZlU9xbZ20iKD/hOXZx30bdjho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0tsV24OdaUYSeGjIQ3CKU4Ac0amnZQxHXZsZWQhGXGozFhVlUT33X5Q8zSiQ5LhXM BIVS3FfRSK1/l2cmawoMFKmLXPrQhfqZemXYpB+wAXRmqiAioWueq6OIlD4kdR7RUn yjaN57uLyyeC8ZtAgFfHDkdKXPLJXaAH768BsFFI= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Robert Hancock <hancockrwd@gmail.com>, Bjorn Helgaas <bhelgaas@google.com> Subject: [PATCH 5.4 05/90] PCI/ASPM: Disable ASPM on ASMedia ASM1083/1085 PCIe-to-PCI bridge Date: Mon, 3 Aug 2020 14:18:27 +0200 Message-Id: <20200803121857.806357754@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803121857.546052424@linuxfoundation.org> References: <20200803121857.546052424@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2330,6 +2330,19 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IN DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10f4, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x1508, quirk_disable_aspm_l0s); +static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev) +{ + pci_info(dev, "Disabling ASPM L0s/L1\n"); + pci_disable_link_state(dev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1); +} + +/* + * ASM1083/1085 PCIe-PCI bridge devices cause AER timeout errors on the + * upstream PCIe root port when ASPM is enabled. At least L0s mode is affected; + * disable both L0s and L1 for now to be safe. + */ +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1); + /* * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain * Link bit cleared after starting the link retrain process to allow this