public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2
@ 2016-08-18 19:12 Matthew Wilcox
  2016-08-18 17:31 ` Dan Williams
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Matthew Wilcox @ 2016-08-18 19:12 UTC (permalink / raw)
  To: x86, linux-kernel, linux-nvdimm; +Cc: Matthew Wilcox

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

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

end of thread, other threads:[~2016-08-19 16:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18 19:12 [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2 Matthew Wilcox
2016-08-18 17:31 ` Dan Williams
2016-08-18 17:50   ` Matthew Wilcox
2016-08-18 18:02     ` Dan Williams
2016-08-18 18:05       ` Matthew Wilcox
2016-08-18 18:15         ` Dan Williams
2016-08-18 18:26           ` Matthew Wilcox
2016-08-18 19:12             ` Dan Williams
2016-08-18 19:56               ` Matthew Wilcox
2016-08-18 20:16                 ` Dan Williams
2016-08-18 21:26                   ` Matthew Wilcox
2016-08-18 19:12 ` [PATCH 2/2] x86: Turn down the scary 'no PCI' warning Matthew Wilcox
2016-08-19 16:06 ` [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2 Konrad Rzeszutek Wilk
2016-08-19 16:46   ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox