From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752162AbbCZQCX (ORCPT ); Thu, 26 Mar 2015 12:02:23 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:33888 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbbCZQCV (ORCPT ); Thu, 26 Mar 2015 12:02:21 -0400 MIME-Version: 1.0 In-Reply-To: <55142A92.4060607@plexistor.com> References: <1427358764-6126-1-git-send-email-hch@lst.de> <1427358764-6126-3-git-send-email-hch@lst.de> <20150326090215.GA11520@gmail.com> <20150326093424.GA28217@lst.de> <55142A92.4060607@plexistor.com> Date: Thu, 26 Mar 2015 09:02:20 -0700 Message-ID: Subject: Re: [Linux-nvdimm] [PATCH 2/3] x86: add a is_e820_ram() helper From: Dan Williams To: Boaz Harrosh Cc: Christoph Hellwig , Ingo Molnar , Jens Axboe , linux-nvdimm , X86 ML , "linux-kernel@vger.kernel.org" , linux-fsdevel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2015 at 8:49 AM, Boaz Harrosh wrote: > On 03/26/2015 11:34 AM, Christoph Hellwig wrote: >> +/* >> + * This is a non-standardized way to represent ADR or NVDIMM regions that >> + * persist over a reboot. The kernel will ignore their special capabilities >> + * unless the CONFIG_X86_PMEM_LEGACY option is set. >> + * >> + * Note that older platforms also used 6 for the same type of memory, >> + * but newer versions switched to 12 as 6 was assigned differently. Some >> + * time they will learn.. >> + */ >> +#define E820_PRAM 12 > > Why the PRAM Name. For one 2/3 of this patch say PMEM the Kconfig > to enable is _PMEM_, the driver stack that gets loaded is pmem, > so PRAM is unexpected. > > Also I do believe PRAM is not the correct name. Yes NvDIMMs are RAM, > but there are other not RAM technologies that can be supported exactly > the same way. > MEM is a more general name meaning "on the memory bus". I think. > > I would love the consistency. One of nice side of effects of having a "PRAM" name is that we can later add a UEFI "PMEM" type where the distinction is thsy "PRAM" is included in the system memory map by default and "PMEM" is analogous to "IOMEM". Just a thought...