Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4944826rwl; Mon, 10 Apr 2023 20:41:44 -0700 (PDT) X-Google-Smtp-Source: AKy350ZRJb6g0Cxqm1TFzlToGE9UqB8ESDxVIatDDU7ZWAwwBGyv3TLh3J5aNmAaUFs0Goy7A5mF X-Received: by 2002:a17:907:6d8e:b0:94a:5925:58af with SMTP id sb14-20020a1709076d8e00b0094a592558afmr10355001ejc.22.1681184495344; Mon, 10 Apr 2023 20:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681184495; cv=none; d=google.com; s=arc-20160816; b=sGq8UkSyGsC7bU1yOXngkbr2HQRyMrLbNOK5fDNSghd4MFo5pfsQLsaOvx1VZjn44v XtXIj5W1QaCL6Z4Ob7lrbNyvvHIktXlsGlzv2PyBNdJiJgydVef1vSnZP0nTs8Ep13CI 8yD2BpKtR4Qm7ZX2FbfIyRPJk8v/gWZ9EV/2cDb9/8IIZuAy7Re4Jh/tOh38ZGj72Nnj g6B7WMUlgKsUAvZqPwDkY18+AnB2mr6fFyQGH+OG2oQ5hDw9tob3c9l/FN4lOkOWN5gD cC3iby1cSBiPBkNCq3LXTYvvjTMQBBbFg4z3EYNhP0FbsUzbnnv5ghfqZNs4iJCbjiMF AVVA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a17090613cc00b0094a7e290a9fsi3736610ejc.157.2023.04.10.20.41.10; Mon, 10 Apr 2023 20:41:35 -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 S229996AbjDKDkJ (ORCPT + 99 others); Mon, 10 Apr 2023 23:40:09 -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=20Wilczy=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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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 --- 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