Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31286599rwd; Thu, 6 Jul 2023 19:28:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlEzqwkrfgJRItA51jbegWg6og45ybumvwo95e4Q2P5sVSvQ7p/tQl1tpDqekWFFSWvsqnn+ X-Received: by 2002:a67:e94a:0:b0:443:6052:43a7 with SMTP id p10-20020a67e94a000000b00443605243a7mr2769348vso.32.1688696892695; Thu, 06 Jul 2023 19:28:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688696892; cv=pass; d=google.com; s=arc-20160816; b=Aw7nf5AUC540cnfnG2dsZko7fV1cRFFZcOlt4MUZUA0gTEoxgmqms8Kn9R8B7tRgUZ OEkRr0S+McLPsDZwEFab/tmA7or/4NfTH/WvLxTLv9lGBAA7Yx1WuK36LIKFjjnQXu65 GFWuPLlFziZo4yGpYZh4JKFEL8+7RbDnSjmf3gP9FUQkaNn4864ZOHevw2xGDMsPfRFN nLKsQ8bcNjm6V8PAnSpli4XRN4UcqwgfUyCVINGNQ+vwGczKCp8g11oOfjt7UrhkcXGD /our22D6SRWI0igCZyIACfVUvPdFAg2NvcocNQhH4SqiBBQ5xrUkN6lW7nT28FfcMEyr aHSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:in-reply-to:message-id:to:from:date :dkim-signature; bh=7pezz7Mu0y2xLl1qQuZUTIdWX+vqDQV14cg2rs2iL0I=; fh=MhWHoM/GJNWH9EMUQhAjqPj4fEMVuglB//A6mCb2m8w=; b=JFY3sIGHryTbe6dRWuXgjGZuB58O/YG6rocSIdqaLbCK3y+kZjegbKJYLRGR7yX2Y4 45SETWNO3la1QsFHMxM1r2VGKD+ykTZLPKVrw4YnJZcaqydPzJCeCmlFGQn4hndLOTgQ xGkH1fkhayE/I7dI3VwISr3SIX9PlBuXPHMukxN9JT6Wmhh4WEEploTbE7OhixFkFtqp Pszg1w1KZrDCxG8n327RPqvhpwXUZ328a3HpIwBUJWUfglOmcYv5cM1fVU6E/NURn4uo 2g7Fp24ZE5kJSeWqLBNi7Qh7Xa0xNli1oHRmQSDCs/wWCMu8dfkQ9bB8uEQKXvKhSByH D9sw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=DI04ZPM2; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a655802000000b0055befc66b25si2812332pgr.37.2023.07.06.19.27.59; Thu, 06 Jul 2023 19:28:12 -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; dkim=pass header.i=@linux.beauty header.s=zmail header.b=DI04ZPM2; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); 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 S231280AbjGGCXd (ORCPT + 99 others); Thu, 6 Jul 2023 22:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjGGCXc (ORCPT ); Thu, 6 Jul 2023 22:23:32 -0400 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE82B6; Thu, 6 Jul 2023 19:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688696596; cv=none; d=zohomail.com; s=zohoarc; b=IbokFj70kwmuMJoNgpTyJqzmlBhti36Iy5SeWnIY+Tjgf02NjLBA2gIdlkcDW1IN5xrhPEQprXTCA5jFMITXnTguH3I0N2elxp7NcUtaSxYl/mk4BOmZRYk83Rtr8pGOSrQmRFaTR4VSR4KqX8ejxUj5/swTtJlcMx4kU2oiwd4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688696596; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=7pezz7Mu0y2xLl1qQuZUTIdWX+vqDQV14cg2rs2iL0I=; b=bbVIER+Fmsb/0Ml0UnnVTmdTnZklVQOUYI9PX/BNx4Xh/qqjYVydKalP5SFjpRyk1PxqiaKpssKYaN59LGF49JvCTzR82HzRqvnWxbr4UwaV+HZGcOyTRdNecBmNCRDlP7rQMTHonOlAtW/KIqIxWNcnJcBh/AUY3rCXP2wZ10w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688696596; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=7pezz7Mu0y2xLl1qQuZUTIdWX+vqDQV14cg2rs2iL0I=; b=DI04ZPM28LJnBJ0JKurB2bCS7VrRIQbiDkPQO01jcfP/PcHTjMt0k2PEMY3QY5qZ 1xU2nMqnVnhUh1Z9stOGKQzAGxYPdco23ALvyYElujFALSEpS1M6HmsK3WhzWl29JOL g7a9gPP/r6d7AbNaVtGwn69dMmQbOvsqe8GBwH78= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1688696594594371.96988380364905; Thu, 6 Jul 2023 19:23:14 -0700 (PDT) Date: Fri, 07 Jul 2023 10:23:14 +0800 From: Li Chen To: "Vignesh Raghavendra" , "Tom Joseph" , "Lorenzo Pieralisi" , =?UTF-8?Q?=22Krzysztof_Wilczy=C5=84ski=22?= , "Rob Herring" , "Bjorn Helgaas" , "linux-omap" , "linux-pci" , "linux-arm-kernel" , "linux-kernel" Message-ID: <1892e291fa4.1219137911620526.2248312811348305435@linux.beauty> In-Reply-To: Subject: [PATCH 1/2] PCI: j721e: Allow async probe MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Li Chen I observed that on Ambarella SoC, which also utilizes the Cadence controller, the boot time increases by 1 second when no endpoints (including switch) are connected to PCIe. This increase is caused by cdns_pcie_host_wait_for_link. Enabling async probe can eliminate this boot time increase. I guess j721e also has this issue. Signed-off-by: Li Chen --- drivers/pci/controller/cadence/pci-j721e.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index e70213c9060a..660c13bdb606 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -561,6 +561,7 @@ static struct platform_driver j721e_pcie_driver = { .name = "j721e-pcie", .of_match_table = of_j721e_pcie_match, .suppress_bind_attrs = true, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, }; builtin_platform_driver(j721e_pcie_driver); -- 2.34.1