linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/jailhouse: Respect pci=lastbus command line settings
@ 2018-01-19 10:06 Jan Kiszka
  2018-01-20  7:19 ` [tip:x86/platform] " tip-bot for Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2018-01-19 10:06 UTC (permalink / raw)
  To: x86, Thomas Gleixner
  Cc: Jailhouse, H. Peter Anvin, Ingo Molnar, Linux Kernel Mailing List

Limiting the scan width to the known last bus via the command line can
accelerate the boot noteworthy.

Signed-off-by: Jan Kiszka <jan.kiszka@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 2b7ebbe9043d..b68fd895235a 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;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:x86/platform] x86/jailhouse: Respect pci=lastbus command line settings
  2018-01-19 10:06 [PATCH] x86/jailhouse: Respect pci=lastbus command line settings Jan Kiszka
@ 2018-01-20  7:19 ` tip-bot for Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Jan Kiszka @ 2018-01-20  7:19 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: tglx, jailhouse-dev, linux-kernel, hpa, mingo, jan.kiszka

Commit-ID:  3b42349d56c96e144401d2317d8eeb9937511423
Gitweb:     https://git.kernel.org/tip/3b42349d56c96e144401d2317d8eeb9937511423
Author:     Jan Kiszka <jan.kiszka@siemens.com>
AuthorDate: Fri, 19 Jan 2018 11:06:30 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
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 <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jailhouse <jailhouse-dev@googlegroups.com>
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;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-20  7:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 10:06 [PATCH] x86/jailhouse: Respect pci=lastbus command line settings Jan Kiszka
2018-01-20  7:19 ` [tip:x86/platform] " tip-bot for Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).