From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932256AbeATHV6 (ORCPT ); Sat, 20 Jan 2018 02:21:58 -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 Date: Fri, 19 Jan 2018 23:19:37 -0800 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 Sender: linux-kernel-owner@vger.kernel.org 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; }