From patchwork Fri Jul 7 02:25:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Chen X-Patchwork-Id: 116909 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2976031vqx; Thu, 6 Jul 2023 19:44:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlGFwHY1krKEwjWNt3l0YxhLCrJEoazjKsYoknYwAsOGOG3vMnYBcYTicGb1U+3elVZrvSXt X-Received: by 2002:a17:902:b707:b0:1b8:e2a:9ede with SMTP id d7-20020a170902b70700b001b80e2a9edemr154670pls.25.1688697846319; Thu, 06 Jul 2023 19:44:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688697846; cv=pass; d=google.com; s=arc-20160816; b=vCc3tZHNLUVgLrnrYFzBf5o9y8bj/WMBYpCe59jo1hmFFki4Ryk1d429HtPNhK2EuS qVyCQ4gj4zzoAGi9ZtgoYZq+Yfd5R7prLqYI+rsrOuZXToC75/hR4YH/mQbBZv7ReyOn au9alP3IbDZ9iKL5RUV8gzl8EEy2KeExZA36HwFkCEgQJ5Wj3ZbXxIyF9fvlXgzVRtF5 wvsKF1wQGON72OrUHQvIvJwV3JC1iklLiNl+plXOglEJGD0RE0EPFp+OaPoAmr7oW82M l4Zwgq8kZ87WoGun4oJAsYB0JHEf16knPNg6hue+RMxIaCQ+jWXWKwHC+E5JSRX1mgGJ 7fhg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a170902f54400b001aaf2ced278si2878620plf.430.2023.07.06.19.43.51; Thu, 06 Jul 2023 19:44:06 -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 S232185AbjGGCZV (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?= =?utf-8?q?=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770728032864608002?= X-GMAIL-MSGID: =?utf-8?q?1770728032864608002?= 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,