Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6999568imu; Thu, 27 Dec 2018 10:15:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Wda6lsCJBCyoqVKSLUoxeontwInOWExAn7P5XjczcWLQl11aPRMyatXsNSCHF01IyqnQC X-Received: by 2002:a62:be0c:: with SMTP id l12mr6798069pff.51.1545934541126; Thu, 27 Dec 2018 10:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934541; cv=none; d=google.com; s=arc-20160816; b=SXVTOfYJp5o2SLjS+iLGKmF5mYLp5PByc7codZn3OwhcirW9r3BchoHokLVoGL62d3 yDJpzkotCIkiKo4iKVZrPeVfQvYAXRr/W0SV0lC0dHiWG8rWe5qPglTpqUduS9X6NCBD D3jS1jtueAYuIwIMrEwVOM2UW5ak41HrYZTClZMxuuTWkzA80USW0PookuCANuikVDrx RYKXxDDXSotGKaQmXTos+PgsuTetdMp7LwVsZzkRYt26wnS7nP8InnlRScLR4+eGnMNf 0pkWo1T5QggA5y65h4zBYETp1zBCBg8Q5dwf2zrO9OY2GT6pepfw5jP1IrJ+GeqPUrmu DOPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VQpYRctTnvTDDmFNgCRLpxKg0adb7IHLdX61Ij5YiHo=; b=DhSgRLVOEiUANWPFqrbUf7GMrZlZmLQ4Uor20bA68Lfw1rkF86JmX4b/m0gDDsB/EG D1h3bpjuFx3QOT2HDQBb2kT5JY0V3fyGYALxH6h5rrP2+Vrp3i/I/AC70JniEyezuN/s c+X/+1WI2BBBvTrsRjKCcfyTEYo8xkqShgxUt8HosoWGtnw10FxWb0ZyE6AweKCtsdBl 8Sb5OX4m+QipFw2+z1UpZXffZG6LHbPkdmvQJfUEagE5y77PzuImrDmH1DqxTpyJLNrN DHI7pEH0omIXSK/u2Sp8IdtnvcN4Dpb5PXeX2bYQnXLy2Xou4O5+6tqwtdPbPdBHdA2Y nJCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si18071046pgj.558.2018.12.27.10.15.24; Thu, 27 Dec 2018 10:15:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728964AbeL0ELh (ORCPT + 99 others); Wed, 26 Dec 2018 23:11:37 -0500 Received: from mga06.intel.com ([134.134.136.31]:56032 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbeL0ELg (ORCPT ); Wed, 26 Dec 2018 23:11:36 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2018 20:11:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,403,1539673200"; d="scan'208";a="113511082" Received: from wangdan1-mobl1.ccr.corp.intel.com (HELO wfg-t570.sh.intel.com) ([10.254.210.154]) by orsmga003.jf.intel.com with ESMTP; 26 Dec 2018 20:11:33 -0800 Received: from wfg by wfg-t570.sh.intel.com with local (Exim 4.89) (envelope-from ) id 1gcN1A-0004IK-H2; Thu, 27 Dec 2018 12:11:32 +0800 Date: Thu, 27 Dec 2018 12:11:32 +0800 From: Fengguang Wu To: Matthew Wilcox Cc: Andrew Morton , Linux Memory Management List , Fan Du , kvm@vger.kernel.org, LKML , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi , Dan Williams Subject: Re: [RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM Message-ID: <20181227041132.xxdnwtdajtm7ny4q@wfg-t540p.sh.intel.com> References: <20181226131446.330864849@intel.com> <20181226133351.106676005@intel.com> <20181227034141.GD20878@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181227034141.GD20878@bombadil.infradead.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 26, 2018 at 07:41:41PM -0800, Matthew Wilcox wrote: >On Wed, Dec 26, 2018 at 09:14:47PM +0800, Fengguang Wu wrote: >> From: Fan Du >> >> This is a hack to enumerate PMEM as NUMA nodes. >> It's necessary for current BIOS that don't yet fill ACPI HMAT table. >> >> WARNING: take care to backup. It is mutual exclusive with libnvdimm >> subsystem and can destroy ndctl managed namespaces. > >Why depend on firmware to present this "correctly"? It seems to me like >less effort all around to have ndctl label some namespaces as being for >this kind of use. Dave Hansen may be more suitable to answer your question. He posted patches to make PMEM NUMA node coexist with libnvdimm and ndctl: [PATCH 0/9] Allow persistent memory to be used like normal RAM https://lkml.org/lkml/2018/10/23/9 That depends on future BIOS. So we did this quick hack to test out PMEM NUMA node for the existing BIOS. Thanks, Fengguang