From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754717AbcHSQHC (ORCPT ); Fri, 19 Aug 2016 12:07:02 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:32540 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754083AbcHSQHB (ORCPT ); Fri, 19 Aug 2016 12:07:01 -0400 Date: Fri, 19 Aug 2016 12:06:51 -0400 From: Konrad Rzeszutek Wilk To: Matthew Wilcox Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@ml01.01.org, Matthew Wilcox Subject: Re: [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2 Message-ID: <20160819160651.GA7478@char.us.oracle.com> References: <1471547575-14748-1-git-send-email-mawilcox@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471547575-14748-1-git-send-email-mawilcox@linuxonhyperv.com> User-Agent: Mutt/1.6.2 (2016-07-01) X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 18, 2016 at 12:12:54PM -0700, Matthew Wilcox wrote: > 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; > - } So shouldn't this be gated on whether the platform is HyperV? > - > pcibios_set_cache_line_size(); > pcibios_resource_survey(); > > -- > 2.8.1 > > _______________________________________________ > Linux-nvdimm mailing list > Linux-nvdimm@lists.01.org > https://lists.01.org/mailman/listinfo/linux-nvdimm