From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754882AbcHSB4K (ORCPT ); Thu, 18 Aug 2016 21:56:10 -0400 Received: from p3plsmtps2ded04.prod.phx3.secureserver.net ([208.109.80.198]:33980 "EHLO p3plsmtps2ded04.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178AbcHSBzY (ORCPT ); Thu, 18 Aug 2016 21:55:24 -0400 x-originating-ip: 72.167.245.219 From: Matthew Wilcox To: x86@kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@ml01.01.org Cc: Matthew Wilcox Subject: [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2 Date: Thu, 18 Aug 2016 12:12:54 -0700 Message-Id: <1471547575-14748-1-git-send-email-mawilcox@linuxonhyperv.com> X-Mailer: git-send-email 1.7.4.1 X-CMAE-Envelope: MS4wfGaj0ne1fp6xR14DDfUPMA+91jXHnTXXb5U69b+JyITmV6VLY/AqzHd01QNxPE8hCiAFWsWHdzlNtt4HpShrmvmF8IajgUL2UNwQ/3YZqUIEhSTAxM0R tu0Z/dVsamXIS6s2kfRn4Iln/r/JmQN/AxfT+GEI+WznPhrP7RLuXxd9bcG4wCp+8ZA5BjEIMfflMSz0ZoaDroU1eC5y0RpSmVdlp5WiSECxfkSvWRi8Oi97 n1qZp1T+XRlZGTIvRU4epbPZ55xUrN7GNGTHRyWAeaWCu3VLIro4St7N2qT6xwTH Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox 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 --- 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