From patchwork Tue Apr 11 03:39:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 81704 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2313272vqo; Mon, 10 Apr 2023 20:56:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZjKD3chqhjdMU78wB+rpTXGViAsHPaoKf9I06e5A9IDrsuQ0lvvaaVyL3RyYJYl36FBFn2 X-Received: by 2002:aa7:df85:0:b0:501:c3de:dc5c with SMTP id b5-20020aa7df85000000b00501c3dedc5cmr11449655edy.18.1681185389899; Mon, 10 Apr 2023 20:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681185389; cv=none; d=google.com; s=arc-20160816; b=LGLxiZqSmc8H0dyH4MwEuqd8BR3ltS+fnvFrdgAU1hLGNJFQjlayNbo7zh4eZhNYdL KMflYEYc8VQzUk6b8cLBClMFhHVLT40ot/KwSNbgjBMOSgMHZo2SI2ciA1Ghlo3Ik5Wk OtIUN7ECOV+0mIz3OQpPQBsDXXjCbwCxEFnRqfBw2uVww7YHf7hvM6Wo9POrrHWw9Dka Wo50QnE7/a4ppjFYaivEFkaSX2mke2Tj6DAjjqyt7TJUxBJQqBHYHt38viDJ352p8wb7 t/e/x6SSc/3OCVD4JSPfQ8Zg3OnM010E6zJ69/5wfeQ4vf0y/jGETTh04tcNFPlXPAwd zUaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=89b/UOPhg9WZ4IKzO2lC1Ctz22C69o+lP7Er3kTcyUw=; b=wcNYwExP1ogUK8ULP9TBM2+8UCkYRwH7eyhfHVXsrb7AHga1LhJVAwjB1hAVTIQ3Xr XbSPxo2Y4TUJpdH9tPV4H6b1lHTuLHcO077GCsfvDXmWXhPl2fWUBMGDDfowtyLrnVnv Hg9kVJYLtDXrOFRSPwOZYG6he067Hwnnamo8ugjIiSmdbg7pNJrM2bRq5BXuEIhl7TJ5 OaDzk1N0Cpk2UkvVn+YJopV/m/5P3GTX5WJkH7rizrynzK7PJAk5jCLm3+hpslModdLF M/xpRDMRIA/SWhN8Xk00oBUIi8TQ0UVEjk/sJ7/Mu5HeeWKMzGtqyVvnAtusrfzktW8/ 5yOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=RPaStXy+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=baikalelectronics.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020aa7d503000000b00504a29c39a0si1481633edq.256.2023.04.10.20.56.05; Mon, 10 Apr 2023 20:56:29 -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=@baikalelectronics.ru header.s=post header.b=RPaStXy+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjDKDkL (ORCPT + 99 others); Mon, 10 Apr 2023 23:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbjDKDjv (ORCPT ); Mon, 10 Apr 2023 23:39:51 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DD5881BF7; Mon, 10 Apr 2023 20:39:47 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id CC478E0EAC; Tue, 11 Apr 2023 06:39:46 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= baikalelectronics.ru; h=cc:cc:content-transfer-encoding :content-type:content-type:date:from:from:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=post; bh=89b/UOPhg9WZ4IKzO2lC1Ctz22C69o+lP7Er3kTcyUw=; b=RPaStXy+rPXL tP9QeXwbzfB/eRuy4xGVEGeuIp5YdOZKvNjg3QJkKRWr6tKQ7oEV5dbU8A7y7tgX Sw8uI/UA8gT4VLwU2xvJAwajz60SN9BHXM8jO3RLrlF/NEhIYi3lAe8Am6/YkyBZ Xx3nX7nlhRjdm+y31UvWuRH/6dXrNHk= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id A5359E0E6A; Tue, 11 Apr 2023 06:39:46 +0300 (MSK) Received: from localhost (10.8.30.38) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Apr 2023 06:39:46 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Jingoo Han , Gustavo Pimentel , Vinod Koul , Manivannan Sadhasivam , Yoshihiro Shimoda , Rob Herring , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , Subject: [PATCH RESEND v3 03/10] PCI: bt1: Enable async probe type Date: Tue, 11 Apr 2023 06:39:21 +0300 Message-ID: <20230411033928.30397-4-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> References: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 X-Originating-IP: [10.8.30.38] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1762850651318862488?= X-GMAIL-MSGID: =?utf-8?q?1762850651318862488?= It's safe to enable the asyncronous probe type since the PCIe peripheral devices probing order isn't essential for booting the system. Moreover enabling that feature saves 0.5 seconds of bootup time if no any device attached to the PCIe root port. It's a significant performance gain seeing the total bootup time takes about 3 seconds. Suggested-by: Manivannan Sadhasivam Signed-off-by: Serge Semin Reviewed-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-bt1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pcie-bt1.c b/drivers/pci/controller/dwc/pcie-bt1.c index 95a723a6fd46..e36a20bf82cf 100644 --- a/drivers/pci/controller/dwc/pcie-bt1.c +++ b/drivers/pci/controller/dwc/pcie-bt1.c @@ -638,6 +638,7 @@ static struct platform_driver bt1_pcie_driver = { .driver = { .name = "bt1-pcie", .of_match_table = bt1_pcie_of_match, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, }; module_platform_driver(bt1_pcie_driver);