Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7523591imu; Thu, 27 Dec 2018 23:19:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN7J26m8qv2lJ5su8GBWk56hERtj3jHtVQSDbWf/y//QWSC5fqADA0zPwlEEO1AeUkYsieZ/ X-Received: by 2002:a17:902:3383:: with SMTP id b3mr25976628plc.170.1545981545842; Thu, 27 Dec 2018 23:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545981545; cv=none; d=google.com; s=arc-20160816; b=d37FwvCRxBj1nm0K81P8oiEbZEPM/fBY6Zeo8Rputb6vjQZfGM1CVbNtBydkjQ30Np AM23g6Jpr4tDW1WXNoiqr82iG16rvL0Cha1x4yaNXzAa6229XUI0tDhCht2ZfJ5xhxXk WbsRYC9qgqOH2FbdNsZFqMcWmKH7FLa1Gk5VQ5ouyS/7+UDES+c7iQiX6XxC8jiCnRjX EHOYkeNwAHW1Irskmxq8VAjUyX42VjAKhx+gGRInT6YX39N46LaqItiQjmb2OCOgfrLA 2PoullCJxA5s1dhQD+oFHR5AG8a6zrtcM1+ImfyI7gNCUPYELCNSs42wiD1mZIJ4TtH4 JQ0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zAjCO3GnuR7K5LykI+2+0VuB0+2IVvgrxN27c6QBKuM=; b=flI5PXDM0r+PAv68jWhaEmnQGj3WwRm6hNpdWz6hXtZ3smbKfRbkL868teK0TAT+SF o0lymxGGAKUUp8Ku9lPG1/HlJrK9PeF7tRbRgTV8ehYvObrLvsFYGbjYOynTKC7HkhBK JAQxqo2SHtqR+VXKRhpodbMPguZTCDkNiDeXIwgevpmy4nCy4/qTGL3nHRPJduyik263 IpZuwJoX7sMs4asI92Oes2y1TOo85qxj8ynVgLDbOqpFSlUqWe4cXaQ+hmmXMuKg/tY0 oTZbHW4wDAJdxUWS/nQkScPBck2AxmmMTQG8ka31HfdXZTdQQ9N5ycSF4JnxQnswTBGH fSXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L+nL6fBG; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a34si24680590pgb.458.2018.12.27.23.18.26; Thu, 27 Dec 2018 23:19:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L+nL6fBG; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729147AbeL0TcU (ORCPT + 99 others); Thu, 27 Dec 2018 14:32:20 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45778 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbeL0TcU (ORCPT ); Thu, 27 Dec 2018 14:32:20 -0500 Received: by mail-qk1-f195.google.com with SMTP id y78so11389560qka.12; Thu, 27 Dec 2018 11:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zAjCO3GnuR7K5LykI+2+0VuB0+2IVvgrxN27c6QBKuM=; b=L+nL6fBGB68bgCmWUTBV8p4elnCb/9wH8Hf0dO7WF3Csk8nhG6AF1w/gPOqIZncq68 udkbk9UmTSxHS0HNnPEUEU9WZ6PaB1ZcQKp0+HacB1TMvdOWRjwVw4RwgGnKcw46QSNn Phld/Tv2zx2aAbW4lFVnlQ2w3d2JY4Al+LMzqQZKmUaQQc538rYZ1aGDxRwD2dhZ4/kX FhqiRpLRSURikdn5zXL+pI89VvrcO8z+N1zXnfz22WTRcvokvqHj5c8iPY9DIyFDuZMJ Bx6EfCrhC7pYka5a5C+fb0c1yY283/FP3K9H9ZzPuMAAbJzOJp6lr2Rgae3j0WQJ0tMT 39Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zAjCO3GnuR7K5LykI+2+0VuB0+2IVvgrxN27c6QBKuM=; b=pD8BBDFlLfD5Cq336HECdUeNY0wN8dBPWQC8eWdakSDeee361BIDMV3GLWI3gyRF8J i2SLHUmc+8r+5kRuENV6siOCYIaDOS964Kam7XrUPvCTQhYQ2zq9AnqQy1SEuQuouwTq Grpzn1wDuMfW2pdV6CsyzDLv6fFnljmambkwkeSHNqbNdw1cNMNdr9LFQhWLWTHbjRJR EjzRBzwvmDB5uqCCK8QVgFBXaeI07ry9yXs2H5mRuc1wkdkQbj72riD1Qgfe4VpTX58I XaWXOTVBhPWYIDf5QpaJ+PgRu5ZlPhYZAlO2amrhjTJ3KjCl0zVf3PqpDVWapLkJl7aB I02Q== X-Gm-Message-State: AJcUukcZ7UbCq2qxZgqQdKoMynNtBsfrDp9Zxbbvo6J/3lmFa8nY21n8 iWUMNhw225VWRVSxkfZ7xr49JtLxJMcE32pk4s0= X-Received: by 2002:a37:9281:: with SMTP id u123mr23363934qkd.0.1545939137848; Thu, 27 Dec 2018 11:32:17 -0800 (PST) MIME-Version: 1.0 References: <20181226131446.330864849@intel.com> <20181226133351.106676005@intel.com> <20181227034141.GD20878@bombadil.infradead.org> <20181227041132.xxdnwtdajtm7ny4q@wfg-t540p.sh.intel.com> In-Reply-To: From: Yang Shi Date: Thu, 27 Dec 2018 11:32:06 -0800 Message-ID: Subject: Re: [RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM To: Dan Williams Cc: Fengguang Wu , Matthew Wilcox , Andrew Morton , Linux Memory Management List , Fan Du , KVM list , LKML , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi Content-Type: text/plain; charset="UTF-8" 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 9:13 PM Dan Williams wrote: > > On Wed, Dec 26, 2018 at 8:11 PM Fengguang Wu wrote: > > > > 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. > > No, it does not depend on a future BIOS. It is correct. We already have Dave's patches + Dan's patch (added target_node field) work on our machine which has SRAT. Thanks, Yang > > Willy, have a look here [1], here [2], and here [3] for the > work-in-progress ndctl takeover approach (actually 'daxctl' in this > case). > > [1]: https://lkml.org/lkml/2018/10/23/9 > [2]: https://lkml.org/lkml/2018/10/31/243 > [3]: https://lists.01.org/pipermail/linux-nvdimm/2018-November/018677.html >