From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753338AbbCYUZg (ORCPT ); Wed, 25 Mar 2015 16:25:36 -0400 Received: from mga09.intel.com ([134.134.136.24]:44177 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbbCYUZf (ORCPT ); Wed, 25 Mar 2015 16:25:35 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,466,1422950400"; d="scan'208";a="472623236" Message-ID: <1427315133.14654.3.camel@theros.lm.intel.com> Subject: Re: [PATCH 3/3] x86: add support for the non-standard protected e820 type From: Ross Zwisler To: Christoph Hellwig Cc: linux-nvdimm@ml01.01.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, boaz@plexistor.com, axboe@kernel.dk Date: Wed, 25 Mar 2015 14:25:33 -0600 In-Reply-To: <1427299449-26722-4-git-send-email-hch@lst.de> References: <1427299449-26722-1-git-send-email-hch@lst.de> <1427299449-26722-4-git-send-email-hch@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20.rez) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-03-25 at 17:04 +0100, Christoph Hellwig wrote: > Various recent bioses support NVDIMMs or ADR using a non-standard > e820 memory type, and Intel supplied reference Linux code using this > type to various vendors. > > Wire this e820 table type up to export platform devices for the pmem > driver so that we can use it in Linux, and also provide a memmap= > argument to manually tag memory as protected, which can be used > if the bios doesn't use the standard nonstandard interface, or > we just want to test the pmem driver with regular memory. > @@ -154,6 +166,9 @@ static void __init e820_print_type(u32 type) > case E820_UNUSABLE: > printk(KERN_CONT "unusable"); > break; > + case E820_PROTECTED_KERN: > + printk(KERN_CONT "protected (type %u)\n", type); I don't think we want a newline in this string.