Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752769AbbDAHNB (ORCPT ); Wed, 1 Apr 2015 03:13:01 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:46589 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433AbbDAHM6 (ORCPT ); Wed, 1 Apr 2015 03:12:58 -0400 From: Christoph Hellwig To: linux-nvdimm@ml01.01.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, axboe@kernel.dk Cc: ross.zwisler@linux.intel.com, boaz@plexistor.com Subject: another pmem variant V3 Date: Wed, 1 Apr 2015 09:12:17 +0200 Message-Id: <1427872339-6688-1-git-send-email-hch@lst.de> X-Mailer: git-send-email 1.9.1 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1603 Lines: 37 Here is another version of the same trivial pmem driver, because two obviously aren't enough. The first patch is the same pmem driver that Ross posted a short time ago, just modified to use platform_devices to find the persistant memory region instead of hardconding it in the Kconfig. This allows to keep pmem.c separate from any discovery mechanism, but still allow auto-discovery. The other two patches are a heavily rewritten version of the code that Intel gave to various storage vendors to discover the type 12 (and earlier type 6) nvdimms, which I massaged into a form that is hopefully suitable for mainline. Note that pmem.c really is the minimal version as I think we need something included ASAP. We'll eventually need to be able to do other I/O from and to it, and as most people know everyone has their own preferre method to do it, which I'd like to discuss once we have the basic driver in. This has been tested on a real NVDIMM on a system with a type 12 capable BIOS. Changes since V2: - dropped support for the memmap= kernel command line override - dropped the not needed memblock_reserve call - merged various cleanups from Boaz in pmem.c Changes since V1: - s/E820_PROTECTED_KERN/E820_PMEM/g - map the persistent memory as uncached - better kernel parameter description - various typo fixes - MODULE_LICENSE fix -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/