Received: by 10.223.176.46 with SMTP id f43csp533591wra; Fri, 19 Jan 2018 23:23:07 -0800 (PST) X-Google-Smtp-Source: AH8x227aJrhLp4O6gqNbFFUx37WQ9hxi19NftYFlgzwt0UmfR2fLduv5Zc/B6X44kQukQMg1wuZI X-Received: by 2002:a17:902:b109:: with SMTP id q9-v6mr542920plr.181.1516432987638; Fri, 19 Jan 2018 23:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516432987; cv=none; d=google.com; s=arc-20160816; b=PBdBtJGx5EYFmllsgOsVFfvfOyXEVOBhhRdpDEa6/Tz0K8eBv6f2qRP7WCQ7Bwt5Kt toOOmumDW5hTIfj/Nig2J8C1NuP3XQ8BUiIjggbtDtQayc3aadZi2XQKCCkxRucFzaw6 juWEu4jKD0mipeo+wW7woIDvYPel/pDp6VFUHebYjW6qmT5rux6eatBPogOPir0RxZBA HPY0j8ZEO06t0Y3KPmseZNXI8Arrl6/kwURXoAvv28r3wJ6e23CTszy9n9Imo+2ag3Ec PclZVfIoe9COaplQYH2jKLWtVvNQE/RqWXGjRM6/p48+aSUKQf6scDaXYbGEF5hc3pEn 3Cag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=2RNXDEl1QlFVXhYFT0k+qC6JmY8QksHYBFKYXFGmeDc=; b=rPRSTUL47VN0bTOlQetAmNCF4ya7j9BbOx2Wavq0KJRSSIGr+QuuUkO5BpTzGJ7IgM acSU3FIitRF/1eFwfniv63kmd5qmXpkpX9/mQAnFCahmOexdpPQ5zrrOW+V0BtzFcVfQ dd2qv9DYzjAbi8ycvUmrWQ/Xv6OV6tsoBrLYAjvf8dEjysjoXWn6crFluS84ZCZ4u10Y obR/KRuVAqdVzKlyVBPA7MHf6EwadW7pEtQ3kFOJcoqgiSEgPp3x8CyNBWUlAJV+1RO2 FPkVVb1XrK6l+jWrCtiTtVbvbcUyvOPzKHTb3Jyhlqyn/hFAkrU/VYB3HiiwXi5tlg6s 8oPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t191si9615919pgd.227.2018.01.19.23.22.53; Fri, 19 Jan 2018 23:23:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932231AbeATHV4 (ORCPT + 99 others); Sat, 20 Jan 2018 02:21:56 -0500 Received: from terminus.zytor.com ([65.50.211.136]:43815 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbeATHVt (ORCPT ); Sat, 20 Jan 2018 02:21:49 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w0K7Jb3Q027754; Fri, 19 Jan 2018 23:19:37 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w0K7JbUH027748; Fri, 19 Jan 2018 23:19:37 -0800 Date: Fri, 19 Jan 2018 23:19:37 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jan Kiszka Message-ID: Cc: tglx@linutronix.de, jailhouse-dev@googlegroups.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, jan.kiszka@siemens.com Reply-To: tglx@linutronix.de, jan.kiszka@siemens.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, jailhouse-dev@googlegroups.com In-Reply-To: <51f5fe62-ca8f-9286-5cdb-39df3fad78b4@siemens.com> References: <51f5fe62-ca8f-9286-5cdb-39df3fad78b4@siemens.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/platform] x86/jailhouse: Respect pci=lastbus command line settings Git-Commit-ID: 3b42349d56c96e144401d2317d8eeb9937511423 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3b42349d56c96e144401d2317d8eeb9937511423 Gitweb: https://git.kernel.org/tip/3b42349d56c96e144401d2317d8eeb9937511423 Author: Jan Kiszka AuthorDate: Fri, 19 Jan 2018 11:06:30 +0100 Committer: Thomas Gleixner CommitDate: Sat, 20 Jan 2018 08:15:44 +0100 x86/jailhouse: Respect pci=lastbus command line settings Limiting the scan width to the known last bus via the command line can accelerate the boot noteworthy. Signed-off-by: Jan Kiszka Signed-off-by: Thomas Gleixner Cc: Jailhouse Link: https://lkml.kernel.org/r/51f5fe62-ca8f-9286-5cdb-39df3fad78b4@siemens.com --- arch/x86/kernel/jailhouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c index 2b7ebbe..b68fd89 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -119,8 +119,10 @@ static int __init jailhouse_pci_arch_init(void) /* * There are no bridges on the virtual PCI root bus under Jailhouse, * thus no other way to discover all devices than a full scan. + * Respect any overrides via the command line, though. */ - pcibios_last_bus = 0xff; + if (pcibios_last_bus < 0) + pcibios_last_bus = 0xff; return 0; }