From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 577B2C35671 for ; Sun, 23 Feb 2020 12:21:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B90420880 for ; Sun, 23 Feb 2020 12:21:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="qr7So0Lf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727274AbgBWMVn (ORCPT ); Sun, 23 Feb 2020 07:21:43 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:6040 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbgBWMVn (ORCPT ); Sun, 23 Feb 2020 07:21:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1582460503; x=1613996503; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nFrfdEws7Mg6zyQ4vp2uvz+5RN3YBvaRiyf1ods/ycM=; b=qr7So0LfAjjfoRM5yCbNbM7ZmI8J/okB/A0/dO00fRpCisTTMj/L7E7J BYz9Ehz7LTuUxAfbP158YM9LUR6wEvROOV4pQYg4A3h/n6W/xApWRy2Zo ZIof30xn2KxA6/QqOTG93Jnu1v7Qij6pbGtT2tQXsa4eJWRcWtTQ7inYK k=; IronPort-SDR: bqmpiaEdSnFT+aLdoDqmhEhdjReMPlSgzPXC3sB/A+Tf7QRYOd3pEc4VN/VRkAa0HLpPJxLCgN KYGqsX5cogVw== X-IronPort-AV: E=Sophos;i="5.70,476,1574121600"; d="scan'208";a="26903876" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-c5104f52.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 23 Feb 2020 12:21:41 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2a-c5104f52.us-west-2.amazon.com (Postfix) with ESMTPS id C26E0A39EB; Sun, 23 Feb 2020 12:21:40 +0000 (UTC) Received: from EX13D12EUA001.ant.amazon.com (10.43.165.48) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sun, 23 Feb 2020 12:21:40 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D12EUA001.ant.amazon.com (10.43.165.48) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 23 Feb 2020 12:21:39 +0000 Received: from u961addbe640f56.ant.amazon.com (10.28.84.111) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Sun, 23 Feb 2020 12:21:37 +0000 From: Stanislav Spassov To: CC: Stanislav Spassov , Bjorn Helgaas , Thomas Gleixner , Andrew Morton , =?UTF-8?q?Jan=20H=20=2E=20Sch=C3=B6nherr?= , Wei Wang Subject: [PATCH 0/3] Improve PCI device post-reset readiness polling Date: Sun, 23 Feb 2020 13:20:54 +0100 Message-ID: <20200223122057.6504-1-stanspas@amazon.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Stanislav Spassov Enable the global maximum polling time to be configured on the kernel command line, and make per-device overrides possible. This allows the default timeout to be lowered while accomodating devices that require more time to finish initialization after a reset. When Configuration Request Retry Status Software Visibility is enabled on the parent PCIe Root Port, it is better to poll the PCI_VENDOR_ID register to get the special CRS behavior specified in the PCI Express Base Specification. Polling a different register can result in system crashes due to core timeouts when the Root Port autonomously keeps retrying the Configuration Read without reporting back to the CPU. Wei Wang (1): PCI: Make PCIE_RESET_READY_POLL_MS configurable Stanislav Spassov (2): PCI: Introduce per-device reset_ready_poll override PCI: Add CRS handling to pci_dev_wait() .../admin-guide/kernel-parameters.txt | 5 + drivers/pci/pci.c | 157 +++++++++++++++--- drivers/pci/probe.c | 2 + include/linux/pci.h | 1 + 4 files changed, 138 insertions(+), 27 deletions(-) base-commit: bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 -- 2.25.1 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879