From patchwork Thu Aug 18 19:12:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 9288541 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B06946086A for ; Thu, 18 Aug 2016 17:24:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FF52292AF for ; Thu, 18 Aug 2016 17:24:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94ABB292BC; Thu, 18 Aug 2016 17:24:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 57BFE292AF for ; Thu, 18 Aug 2016 17:24:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 873C91A1E12; Thu, 18 Aug 2016 10:24:44 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from p3plsmtps2ded04.prod.phx3.secureserver.net (p3plsmtps2ded04.prod.phx3.secureserver.net [208.109.80.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8C4801A1E08 for ; Thu, 18 Aug 2016 10:24:42 -0700 (PDT) Received: from linuxonhyperv.com ([72.167.245.219]) by : HOSTING RELAY : with SMTP id aR2bbfvWE3I9PaR2bbBFJF; Thu, 18 Aug 2016 10:23:41 -0700 x-originating-ip: 72.167.245.219 Received: by linuxonhyperv.com (Postfix, from userid 528) id 337BC1904D9; Thu, 18 Aug 2016 12:12:59 -0700 (PDT) From: Matthew Wilcox To: x86@kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org 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 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthew Wilcox MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP 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();