Received: by 10.223.176.5 with SMTP id f5csp36701wra; Mon, 5 Feb 2018 16:08:22 -0800 (PST) X-Google-Smtp-Source: AH8x226uDsaydl5ON3u2fhRybnkGA/CfR5PFNhxrRP0/XfcDvhI1b0ALsy5QGo5qxNdpfV5pNeH6 X-Received: by 10.99.96.88 with SMTP id u85mr399452pgb.231.1517875702458; Mon, 05 Feb 2018 16:08:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517875702; cv=none; d=google.com; s=arc-20160816; b=eMT+YiDru6wZmmtSoNeFiHRfRJH4TTWLWxxw7X/PO02hA+6d3G2kL2Asy3Rgpt6l9h OAq3/ZPUV/OEv14sxjh7xXREj/kOu8FEiYWEpNibNtNlrlsrWYqCikR2gWzwxtSo9nJx kDeHTBRykzkaxZiOue3DiZDdjXJd5nC+nTfxW7l9ICFDSpmNSaHhNjh7P8Emr1Asi+JS M81KZFSGVA+BHY9QLDZA8S5f2ET20NvH6fYqTooESMsKCnQszgFGs+DiUHfD7HXnaQS8 lF2fBE4M1EEW4YwcMFeNdwQLIfzQGAL8RTK9n24z4DZZxh3HSAYxqdmMAjlvkZUJIbls 5Lnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:cc:to:from:date:arc-authentication-results; bh=t+/0reEUEiZfzNQ+YEkIvsaycYJNz8B6gMJ/VFo99z4=; b=hCAdx8oK1kK/SPhkFv+tuBMd0hnTR7G8hqtkxoAGOQ2tZLaPdPvi4rhJqdG/HiBwXM KEUHvc/DPW38s+T8XxO+r4hdcHEGkSMn5lXiNjmrY0X7XRTzRVrH5wqbLh0Ghf043DnH +3tLVVmeYFePZpFwiDNWstQZ/t/fxv9DNw6tGq5Zz6lWZJZnA9j8Ri8dZ3IF9Qr8/1ty tTzCrdAO0nkCasc1d3KNVjrJ3KkxR1Bw0zOfmsx6tLznh7SUOnZ7QqIctZrhx2SoosTk tOyQFxDKNO+qEmCkF/rMna9wEf16TdQX4TXPlR28HTxraJAmc2QnPpGPePR8CeqjcQqs kdRg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si304743pgv.244.2018.02.05.16.08.08; Mon, 05 Feb 2018 16:08:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752362AbeBFAHV (ORCPT + 99 others); Mon, 5 Feb 2018 19:07:21 -0500 Received: from mga12.intel.com ([192.55.52.136]:4443 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308AbeBFAHH (ORCPT ); Mon, 5 Feb 2018 19:07:07 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2018 16:07:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,466,1511856000"; d="scan'208";a="201622130" Received: from theros.lm.intel.com (HELO linux.intel.com) ([10.232.112.164]) by fmsmga006.fm.intel.com with ESMTP; 05 Feb 2018 16:07:06 -0800 Date: Mon, 5 Feb 2018 17:07:06 -0700 From: Ross Zwisler To: torvalds@linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org Subject: [GIT PULL] libnvdimm for 4.16 Message-ID: <20180206000706.GA24568@linux.intel.com> Mail-Followup-To: Ross Zwisler , torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-4.16 ...to receive the libnvdimm update for 4.16. All of these commits have shipped in -next and have received build verification notices from 0day. There is one small merge conflict that Michael Ellerman also noted in his pull request. In Michael's tree the axonram driver was removed, and in our tree it received two small updates. The merge can be trivially resolved by just keeping the driver removed per Michael's tree. Regarding the vmem_altmap patches, Michal Hocko took a quick look and while it wasn't a full review he has future plans to reuse vmem_altmap in wider places in the memory hotplug code, so he's in favor of getting it properly plumbed. In case you wanted to inspect them or verify the merge I've also pushed the three topic branches for this cycle to our nvdimm tree: for-4.16/nfit for-4.16/libnvdimm for-4.16/dax --- The following changes since commit a7f2766ac7c359216da4e714dc117c881e39a74a: Merge branches 'acpi-gpio', 'acpi-button', 'acpi-battery' and 'acpi-video' (2018-01-18 03:02:16 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-4.16 for you to fetch changes up to ee95f4059a833839bf52972191b2d4c3d3cec552: Merge branch 'for-4.16/nfit' into libnvdimm-for-next (2018-02-03 00:26:26 -0700) ---------------------------------------------------------------- libnvdimm for 4.16 * Require struct page by default for filesystem DAX to remove a number of surprising failure cases. This includes failures with direct I/O, gdb and fork(2). * Add support for the new Platform Capabilities Structure added to the NFIT in ACPI 6.2a. This new table tells us whether the platform supports flushing of CPU and memory controller caches on unexpected power loss events. * Revamp vmem_altmap and dev_pagemap handling to clean up code and better support future future PCI P2P uses. * Deprecate the ND_IOCTL_SMART_THRESHOLD command whose payload has become out-of-sync with recent versions of the NVDIMM_FAMILY_INTEL spec, and instead rely on the generic ND_CMD_CALL approach used by the two other IOCTL families, NVDIMM_FAMILY_{HPE,MSFT}. * Enhance nfit_test so we can test some of the new things added in version 1.6 of the DSM specification. This includes testing firmware download and simulating the Last Shutdown State (LSS) status. ---------------------------------------------------------------- Christoph Hellwig (16): memremap: provide stubs for vmem_altmap_offset and vmem_altmap_free mm: don't export arch_add_memory mm: don't export __add_pages mm: pass the vmem_altmap to arch_add_memory and __add_pages mm: pass the vmem_altmap to vmemmap_populate mm: pass the vmem_altmap to arch_remove_memory and __remove_pages mm: pass the vmem_altmap to vmemmap_free mm: pass the vmem_altmap to memmap_init_zone mm: split altmap memory map allocation from normal case mm: merge vmem_altmap_alloc into altmap_alloc_block_buf mm: move get_dev_pagemap out of line mm: optimize dev_pagemap reference counting around get_dev_pagemap memremap: remove to_vmem_altmap memremap: simplify duplicate region handling in devm_memremap_pages memremap: change devm_memremap_pages interface to use struct dev_pagemap memremap: merge find_dev_pagemap into get_dev_pagemap Colin Ian King (1): libnvdimm, namespace: remove redundant initialization of 'nd_mapping' Dan Williams (8): nfit, libnvdimm: deprecate the generic SMART ioctl tools/testing/nvdimm: smart alarm/threshold control mm, dax: introduce pfn_t_special() ext4: auto disable dax instead of failing mount ext2: auto disable dax instead of failing mount dax: require 'struct page' by default for filesystem dax tools/testing/nvdimm: force nfit_test to depend on instrumented modules libnvdimm, namespace: make min namespace size 4K Dave Jiang (6): acpi: nfit: Add support for detect platform CPU cache flush on power loss acpi: nfit: add persistent memory control flag for nd_region libnvdimm: expose platform persistence attribute for nd_region nfit-test: Add platform cap support from ACPI 6.2a to test libnvdimm/nfit_test: add firmware download emulation libnvdimm/nfit_test: adding support for unit testing enable LSS status Jan H. Sch?nherr (2): mm: Fix memory size alignment in devm_memremap_pages_release() mm: Fix devm_memremap_pages() collision handling Jeff Moyer (1): libnvdimm, btt: fix uninitialized err_lock Logan Gunthorpe (1): memremap: drop private struct page_map Luis de Bethencourt (1): device-dax: Fix trailing semicolon Ross Zwisler (2): Merge branch 'for-4.16/dax' into libnvdimm-for-next Merge branch 'for-4.16/nfit' into libnvdimm-for-next Toshi Kani (1): acpi, nfit: fix register dimm error handling arch/arm64/mm/mmu.c | 9 +- arch/ia64/mm/discontig.c | 6 +- arch/ia64/mm/init.c | 18 +- arch/powerpc/mm/init_64.c | 17 +- arch/powerpc/mm/mem.c | 11 +- arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/sysdev/axonram.c | 2 +- arch/s390/mm/init.c | 7 +- arch/s390/mm/vmem.c | 6 +- arch/sh/mm/init.c | 10 +- arch/sparc/mm/init_64.c | 5 +- arch/x86/mm/init_32.c | 9 +- arch/x86/mm/init_64.c | 94 ++++--- drivers/acpi/nfit/core.c | 26 ++ drivers/acpi/nfit/nfit.h | 1 + drivers/dax/device.c | 2 +- drivers/dax/pmem.c | 20 +- drivers/dax/super.c | 10 + drivers/nvdimm/btt.c | 2 +- drivers/nvdimm/bus.c | 3 - drivers/nvdimm/namespace_devs.c | 2 +- drivers/nvdimm/nd.h | 9 +- drivers/nvdimm/pfn_devs.c | 27 +- drivers/nvdimm/pmem.c | 41 +-- drivers/nvdimm/pmem.h | 1 + drivers/nvdimm/region_devs.c | 13 + drivers/s390/block/Kconfig | 1 + drivers/s390/block/dcssblk.c | 3 +- fs/Kconfig | 7 + fs/ext2/super.c | 7 +- fs/ext4/super.c | 9 +- include/linux/libnvdimm.h | 11 + include/linux/memory_hotplug.h | 29 +- include/linux/memremap.h | 77 ++--- include/linux/mm.h | 22 +- include/linux/pfn_t.h | 13 + include/uapi/linux/ndctl.h | 56 +--- kernel/memremap.c | 174 +++++------- mm/gup.c | 7 +- mm/hmm.c | 13 +- mm/memory.c | 16 +- mm/memory_hotplug.c | 39 ++- mm/page_alloc.c | 6 +- mm/sparse-vmemmap.c | 67 ++--- mm/sparse.c | 43 +-- tools/testing/nvdimm/Kbuild | 4 + tools/testing/nvdimm/acpi_nfit_test.c | 8 + tools/testing/nvdimm/device_dax_test.c | 8 + tools/testing/nvdimm/libnvdimm_test.c | 8 + tools/testing/nvdimm/pmem_test.c | 8 + tools/testing/nvdimm/test/iomap.c | 7 +- tools/testing/nvdimm/test/nfit.c | 498 +++++++++++++++++++++++++++++---- tools/testing/nvdimm/test/nfit_test.h | 134 +++++++++ tools/testing/nvdimm/watermark.h | 21 ++ 54 files changed, 1122 insertions(+), 526 deletions(-) create mode 100644 tools/testing/nvdimm/acpi_nfit_test.c create mode 100644 tools/testing/nvdimm/device_dax_test.c create mode 100644 tools/testing/nvdimm/libnvdimm_test.c create mode 100644 tools/testing/nvdimm/pmem_test.c create mode 100644 tools/testing/nvdimm/watermark.h