Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp706684rwd; Wed, 31 May 2023 04:27:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Xzyd1Qoi+RJGE8BftbZnBPzLJtMExbX0/OoDLATQPsGg30N5khVsTYnG/+++Qc4xSrFO/ X-Received: by 2002:a05:6358:9218:b0:125:80a4:4733 with SMTP id d24-20020a056358921800b0012580a44733mr2345019rwb.10.1685532444738; Wed, 31 May 2023 04:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685532444; cv=none; d=google.com; s=arc-20160816; b=eNFjLeHnb6yDfEQpEXcfrSJISYimBGzktY92S2R5twmrqydIEsRx/L7opQS8gYjhaD 0hpBHnBAA8EKBswQP2Wf8wWCQ8V8g1ZWLxwQi/s2x3+9ycGyc8yTGECU8cc4fkZuUj3V LCt23zq1qxJ8fX4lEbVLrwZ4qI3G2ocYvcTDRS8L8091fEiOwrY0PY1Y5XAPxQQNYjzC vWx0GuE7OoIEb2XkOtf6AfXrJ4s1RqqJ847kKCYSdaDaL36b8OoZGA5HUojQ3S2L6+i+ C/X/cwiYw01j831xhGGJ/EFNExuijThED5be4wE9f1KJqkbpdeA+lDtEC49R6E2PFH/Q uRgA== 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=rDVPfhGEyYaKZ/wYe36O1O/Fvo/RdUNSXrMV08kwDqo=; b=hspZouil6MbnD/j5jNjw4V4EQneNPhpDZcbMeATFMRdcBZmNYaKlYapCossxTqAWwM F+n430oQRCJoLeRfK/KiXog3mwSaSGQp7p4V3S2chs5Osl9fTECYWgKqth51LI5t/7L3 5o45Uy/dXirnxpOawoyj1Nks9iaC4vtR21q0G4x+tr8PTOOQFsE5ZtBJuMAHrdklEdA4 /eLOH22BdEZolL7y7skc8wb8q+QeSL2O/WSwJGekhRKp+29CFshXkXfhwrkd5aoLii1I J8wYMNLerstNM6DTL4uiwGRkTQQ/47y5IixrXywBhHKMaayYL+ROywCgzy4YXRZfDyL5 4q8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=Z7t4Hjyc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a17090aca8d00b002562fce8178si833734pjt.25.2023.05.31.04.27.11; Wed, 31 May 2023 04:27:24 -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=Z7t4Hjyc; 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 S232620AbjEaL0R (ORCPT + 99 others); Wed, 31 May 2023 07:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbjEaL0L (ORCPT ); Wed, 31 May 2023 07:26:11 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A5719D9; Wed, 31 May 2023 04:26:09 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id C53D1E0E1C; Wed, 31 May 2023 14:26:08 +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=rDVPfhGEyYaKZ/wYe36O1O/Fvo/RdUNSXrMV08kwDqo=; b=Z7t4Hjyc8npA bvL1aWDPH/h84BZBNv/oZf2Tpctb9Q/S3EpETMTlIZgyz5gVB2NHTAkYP0SfMnG+ HXyQFLc7e2E1ViPNfGlyjb3rXvxdqRTtoRXZ8b/2sXOaC5KEt6IGOl0gDF77YPG+ UnbEjfq37aQPm571IaQcVgakcqctd5M= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id 96DA0E0DE3; Wed, 31 May 2023 14:26:08 +0300 (MSK) Received: from localhost (10.8.30.6) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 31 May 2023 14:26:08 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Yoshihiro Shimoda , Rob Herring , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , Subject: [PATCH RESEND v6 03/11] PCI: bt1: Enable async probe type Date: Wed, 31 May 2023 14:25:54 +0300 Message-ID: <20230531112602.7222-4-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230531112602.7222-1-Sergey.Semin@baikalelectronics.ru> References: <20230531112602.7222-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.6] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 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); -- 2.40.0