From patchwork Sun Jun 11 17:19:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 10603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2150320vqr; Sun, 11 Jun 2023 10:46:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZFmZbALDL7WPuC4WHpKH9/0q1WFteIKItY/c0H7NutiNDooIQq1UiT559mtyjE9LJcu89 X-Received: by 2002:aa7:ccce:0:b0:514:a4da:408e with SMTP id y14-20020aa7ccce000000b00514a4da408emr3764873edt.2.1686505581657; Sun, 11 Jun 2023 10:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686505581; cv=none; d=google.com; s=arc-20160816; b=ex7AbGhXSQVV8/aA5mlGX5c/bf/vgcSyZAmaDYubofNmaQ5GSd/rCdTyqTeaFC7kgg 141hqx5FBplfxG+Id6NWT0SMTYEhML6e7au8dsLTBsrzmyV1vvHYF3g2e7K5Ykw/UL/j sW+3X+jyZngel4jXDwqW0yqKZA5iCUiRehZ+tL+isZtCsWPnv/p2frmjFylwgIrqmYNJ r7ZHtghKP5euGtq8qHpyMWQsTmYTAE5eyYaDCHaFADkvIYDKM17lCzhUhN+3ZrOsR2bJ VOA+XSqUTmprnyH8mRe7RLznLlzj7coVzdWCsOpCoeEGkOpSmfJ7yUkNRV87DFlTqBjT wzCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=E3g1vQAHT/4Wbs/ixyekLAny06+i1sWxVERzlHQ1UfY=; b=JB5cwWrWASO5Hl9h6k2wQ6gmZIi0ehCO1iqsiokP/o/aigkX7Ixz+8gY0gWw8siIy1 iNw1G6MQ2aYlTf7IM6HfUOJkigvy/abBzkFCe4ZdqR/3TilPzHj2kjNuZsNrZpboUO27 TrvyhG5fWiMRBVF1K5rNloH+5UshT0so1SQxb80r7jNPaERFBgCFwX0lo/Oejn1aEcg8 z4ui8fTHOKaBB4Y0xE6sYCABjuvwFm9BdvVCBDQjVDoXHUAiSBgv4xytw5a3Kp/+s7Q8 vcVXjBlvw+DBaoHQEzoNrMRIxH83lZiJ2hT/KXTvX8IWHkN5dmYD8tHwxbINu9rAZU3X mzpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka22-20020a170907991600b00977d0db2c6asi3914374ejc.63.2023.06.11.10.45.57; Sun, 11 Jun 2023 10:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232887AbjFKRTM (ORCPT + 99 others); Sun, 11 Jun 2023 13:19:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbjFKRTK (ORCPT ); Sun, 11 Jun 2023 13:19:10 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1EE00E5F; Sun, 11 Jun 2023 10:19:10 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 1966992009E; Sun, 11 Jun 2023 19:19:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 134EB92009D; Sun, 11 Jun 2023 18:19:09 +0100 (BST) Date: Sun, 11 Jun 2023 18:19:08 +0100 (BST) From: "Maciej W. Rozycki" To: Bjorn Helgaas , Mahesh J Salgaonkar , Oliver O'Halloran , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni cc: Alex Williamson , Lukas Wunner , Mika Westerberg , Stefan Roese , Jim Wilson , David Abdurachmanov , =?utf-8?q?Pali_Roh?= =?utf-8?q?=C3=A1r?= , linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 00/14] pci: Work around ASMedia ASM2824 PCIe link training failures Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,HDRS_LCASE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768429277133278721?= X-GMAIL-MSGID: =?utf-8?q?1768429277133278721?= Hi, This is v9 of the change to work around a PCIe link training phenomenon where a pair of devices both capable of operating at a link speed above 2.5GT/s seems unable to negotiate the link speed and continues training indefinitely with the Link Training bit switching on and off repeatedly and the data link layer never reaching the active state. With several requests addressed and a few extra issues spotted this version has now grown to 14 patches. It has been verified for device enumeration with and without PCI_QUIRKS enabled, using the same piece of RISC-V hardware as previously. Hot plug or reset events have not been verified, as this is difficult if at all feasible with hardware in question. Last iteration: , and my input to it: . Maciej