Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31286730rwd; Thu, 6 Jul 2023 19:28:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlExWNyJyuLY6cAk5YH0SoPnrOABVUVGcdF/0FdwdsrG7osiDrO3hLAjiCFkjrQLg90fJU/G X-Received: by 2002:a17:902:daca:b0:1b8:902c:f8e8 with SMTP id q10-20020a170902daca00b001b8902cf8e8mr3625840plx.60.1688696900755; Thu, 06 Jul 2023 19:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688696900; cv=pass; d=google.com; s=arc-20160816; b=nuDwogO5BC7YcdlUruL0Tg3XKpCW77EjTpNn4HIWuoRhPE9iZjEMu/jov7RCf5mA6V kzUH7JsMArVmGXYum2OCgLDZCGpn4/u8F1c/E6OE5eErX7MlX8IIfZmvOf0XVlUwcdc/ cXdEwukadF8kCnmEgdBPwqL/qhj+l4enbHXjintq9eOPy6EVX0zqlN8HXZXxBMgoOtcz OQxb1OGYljxqnSdfLslk8aMVFG3vcQ0m7DVTdPYRY3zk8Le+0z283zB02ZyeorDn2T0v lzvwxZtK3T3kyq8JTwR8CvcfhPhpwp/RuMOPix+xPIGkXoT+TWjWpxISRQESbtlE3l4P bCRA== 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=ik2eT2U2tcZUtukNJ6ARDpEzq7gr9zv2EARephZUF7A=; fh=EAW02V4HiP/AgXwrZYwrmywnpE7Wm6cck1kNn458Ed8=; b=PGOAu2HeWkjPSAsvsvr5sgoHt6tk+xHC5PgXIEKG3+3HyYFCDSudRUXmFCUJABKtX/ OXTh5BqRYHL4DbiUZRx6Mz8UQ7QHpuasK/TAYW2uBPIHssem4+vItMKLW2+HacoDtDEu UiTQoqc6fKHqtrG1KeNeB1UJ5CfBw4kCYe3OfoBj/56bW46fZas641IP+avOAk49EL7D ZBFL5KO9k+0aQIOIgWlSdUMKhmbqUFzEFv31qkaqsF4nop2r4LhybDXmk6PjNXj8Ugwh d8gGgNhbYWK+cAdXZLOMx4xjz11hELmmupuqK5o9tq4VRgE1ZgTqJUoYkBsIff2gd+QW DNbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=VPcqvnAo; 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 z5-20020a170902708500b001b39e50bfdasi2391263plk.638.2023.07.06.19.28.08; Thu, 06 Jul 2023 19:28:20 -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=VPcqvnAo; 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 S232134AbjGGCZV (ORCPT + 99 others); Thu, 6 Jul 2023 22:25:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbjGGCZU (ORCPT ); Thu, 6 Jul 2023 22:25:20 -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 B8858B6; Thu, 6 Jul 2023 19:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688696711; cv=none; d=zohomail.com; s=zohoarc; b=hfya/VD4HCGSX9BIWKXyqEpBVt029ogQGcFDDA7NLfz3K/PMe8U7D6qTqIvUjF862OHu2jXUbuZyItXNiW1S8Vz+Cp7+Ww2r0w/y4XBB1gN6wZZh5SCdCulcjSyahSU+faTiRC0jCismLLI832TDe7Dff0lsMD7r/BzL9L8Q1Lk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688696711; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=ik2eT2U2tcZUtukNJ6ARDpEzq7gr9zv2EARephZUF7A=; b=WcVRMSUVebWK3HY5pO24PDR8WJ/zT6Mnw2nOkPnZlxeB80inJYDdHVdg/atLMtj353j1hs3rvGjdZ5tYwpK0yg4dlU44U9QBzfd/YFZlaeCCDYZpvSEhDKP4e08KQ2mrfyHg08XOdgVlLO5H4+nVT2KZYIxsFPEtzbCv3Nq9d+c= 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=1688696711; 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=ik2eT2U2tcZUtukNJ6ARDpEzq7gr9zv2EARephZUF7A=; b=VPcqvnAogxc1aNwjI32fgfI12Umh4Cui7+azKIRc3GZJX9kInDbptI9lZ5xY0TfD um/x2CV2zg8apK+QYZ7i/Ttk9guKKOoyZiMjOKbexg+H9tpeNefZjBUXTGmZ0AIVObI eQ+NhcjyGmprHYWBtdjwwOX+76KwuBF1UhkMWjaQ= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1688696709492195.79904115078568; Thu, 6 Jul 2023 19:25:09 -0700 (PDT) Date: Fri, 07 Jul 2023 10:25:09 +0800 From: Li Chen To: "Tom Joseph" , "Lorenzo Pieralisi" , =?UTF-8?Q?=22Krzysztof_Wilczy=C5=84ski=22?= , "Rob Herring" , "Bjorn Helgaas" , "linux-pci" , "linux-kernel" Message-ID: <1892e2ae15f.f7e5dc061620757.4339091752690983066@linux.beauty> In-Reply-To: Subject: PCI: cadence: 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 other platforms also has this issue. Signed-off-by: Li Chen --- drivers/pci/controller/cadence/pcie-cadence-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/cadence/pcie-cadence-plat.c b/drivers/pci/controller/cadence/pcie-cadence-plat.c index e091fef9c919..5177f18e1dfc 100644 --- a/drivers/pci/controller/cadence/pcie-cadence-plat.c +++ b/drivers/pci/controller/cadence/pcie-cadence-plat.c @@ -174,6 +174,7 @@ static struct platform_driver cdns_plat_pcie_driver = { .name = "cdns-pcie", .of_match_table = cdns_plat_pcie_of_match, .pm = &cdns_pcie_pm_ops, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .probe = cdns_plat_pcie_probe, .shutdown = cdns_plat_pcie_shutdown, -- 2.34.1