Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1465860

[PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2

From Matthew Wilcox <mawilcox@linuxonhyperv.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2
Date 2016-08-19 04:00 +0200
Message-ID <s7GtR-7go-49@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Matthew Wilcox <mawilcox@microsoft.com>

The Generation 2 Hyper-V virtual machine does not emulate PCI.
This check causes the call to pcibios_resource_survey() to be skipped,
and pcibios_resource_survey() calls e820_reserve_resources_late(), which
is where PMEM resources are added to the resource tree.  With this patch,
the PMEM devices now show up.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
---
 arch/x86/pci/common.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 7b6a9d1..d39e799 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -516,11 +516,6 @@ void __init pcibios_set_cache_line_size(void)
 
 int __init pcibios_init(void)
 {
-	if (!raw_pci_ops && !raw_pci_ext_ops) {
-		printk(KERN_WARNING "PCI: System does not support PCI\n");
-		return 0;
-	}
-
 	pcibios_set_cache_line_size();
 	pcibios_resource_survey();
 
-- 
2.8.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2 Matthew Wilcox <mawilcox@linuxonhyperv.com> - 2016-08-19 04:00 +0200
  Re: [PATCH 1/2] x86: Set up resources correctly on Hyper-V  Generation 2 Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-08-19 18:10 +0200
    RE: [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation  2 Matthew Wilcox <mawilcox@microsoft.com> - 2016-08-19 18:50 +0200

csiph-web