Message ID | 1892e291fa4.1219137911620526.2248312811348305435@linux.beauty |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2970306vqx; Thu, 6 Jul 2023 19:28:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXRUOd8Azoq6e5Ykpn8T+EWXnIq3N7CTK8zfnWfdjPVZg2mpvd4ATDWLSX3KRhqGcE27U0 X-Received: by 2002:a05:6871:54e:b0:1b0:8288:e698 with SMTP id t14-20020a056871054e00b001b08288e698mr4075795oal.55.1688696892877; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a17090a6e0500b0026315d77374si989510pjk.151.2023.07.06.19.27.58; 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 S231407AbjGGCXd (ORCPT <rfc822;hadasmailinglist@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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=<me@linux.beauty> 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 <me@linux.beauty> To: "Vignesh Raghavendra" <vigneshr@ti.com>, "Tom Joseph" <tjoseph@cadence.com>, "Lorenzo Pieralisi" <lpieralisi@kernel.org>, =?utf-8?q?=22Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski=22?= <kw@linux.com>, "Rob Herring" <robh@kernel.org>, "Bjorn Helgaas" <bhelgaas@google.com>, "linux-omap" <linux-omap@vger.kernel.org>, "linux-pci" <linux-pci@vger.kernel.org>, "linux-arm-kernel" <linux-arm-kernel@lists.infradead.org>, "linux-kernel" <linux-kernel@vger.kernel.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770727032730003647?= X-GMAIL-MSGID: =?utf-8?q?1770727032730003647?= |
Series |
[1/2] PCI: j721e: Allow async probe
|
|
Commit Message
Li Chen
July 7, 2023, 2:23 a.m. UTC
From: Li Chen <lchen@ambarella.com> 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 <lchen@ambarella.com> --- drivers/pci/controller/cadence/pci-j721e.c | 1 + 1 file changed, 1 insertion(+)
Comments
On 7/7/2023 7:53 AM, Li Chen wrote: > From: Li Chen <lchen@ambarella.com> > > 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. I have tested this along with: https://lore.kernel.org /all/1892e2ae15f.f7e5dc061620757.4339091752690983066@linux.beauty/ But I couldn't find second patch in this series. > > Signed-off-by: Li Chen <lchen@ambarella.com> Tested-by: Achal Verma <a-verma1@ti.com> > --- > 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);
---- On Tue, 11 Jul 2023 14:16:01 +0800 Verma, Achal wrote --- > > > On 7/7/2023 7:53 AM, Li Chen wrote: > > From: Li Chen lchen@ambarella.com> > > > > 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. > I have tested this along with: > https://lore.kernel.org > /all/1892e2ae15f.f7e5dc061620757.4339091752690983066@linux.beauty/ > > But I couldn't find second patch in this series. Sorry for my mistake, the second patch is just the link you mentioned(https://lore.kernel.org/all/1892e2ae15f.f7e5dc061620757.4339091752690983066@linux.beauty/), I accidentally removed its "2/2" prefix. Should I post v2 to fix the subject issue? > > > > Signed-off-by: Li Chen lchen@ambarella.com> > Tested-by: Achal Verma a-verma1@ti.com> > > --- > > 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); > Regards, Li
On 7/11/2023 2:13 PM, Li Chen wrote: > > ---- On Tue, 11 Jul 2023 14:16:01 +0800 Verma, Achal wrote --- > > > > > > On 7/7/2023 7:53 AM, Li Chen wrote: > > > From: Li Chen lchen@ambarella.com> > > > > > > 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. > > I have tested this along with: > > https://lore.kernel.org > > /all/1892e2ae15f.f7e5dc061620757.4339091752690983066@linux.beauty/ > > > > But I couldn't find second patch in this series. > > Sorry for my mistake, the second patch is just the link you mentioned(https://lore.kernel.org/all/1892e2ae15f.f7e5dc061620757.4339091752690983066@linux.beauty/), I accidentally removed its "2/2" prefix. > > Should I post v2 to fix the subject issue? I think you have to ask maintainers for this. > > > > > > > Signed-off-by: Li Chen lchen@ambarella.com> > > Tested-by: Achal Verma a-verma1@ti.com> > > > --- > > > 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); > > > > Regards, > Li
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);