From patchwork Fri Jul 7 02:23:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Chen X-Patchwork-Id: 13304331 X-Patchwork-Delegate: kw@linux.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B43FEB64DC for ; Fri, 7 Jul 2023 02:23:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbjGGCXd (ORCPT ); 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?= =?utf-8?q?=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 Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Precedence: bulk List-ID: X-Mailing-List: linux-pci@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 Tested-by: Achal Verma --- 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);