Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2437852ioo; Sat, 28 May 2022 13:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6BYNdZd1L2FYvkZggFZUitA18/RQQ4g88jv1DILDM8WVrgMxkQmnhuaQoMZUE/01L9lFY X-Received: by 2002:a17:902:b205:b0:163:5c5b:e2de with SMTP id t5-20020a170902b20500b001635c5be2demr19125224plr.26.1653770482109; Sat, 28 May 2022 13:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770482; cv=none; d=google.com; s=arc-20160816; b=Ptu9dWWCs+BeR06NK9VD8x3g6eH2c+ji0n/2k2HMUxELRnobessKi/w0mTdSQ1XYzt eHGht4J8UaIiH1kCe6A8pJ27AprLjvT+xM0e3wnnhxre4W3vr+rtJ/4uBnk3DCgLjwDA XXASuP9A3FwEkA0q+JFL9kLb7IpiccARtGDKD57kUcNR/LDEnSaCuUTAi/bn+v4d7yON DHG86LaLy81JMr4K85jO28Dt1DiaNlCT1S1mjkXoFy2/Vs/W0LV2w6ANyB7iSBHCXuoZ qGGBbfCl0YzD+EQnWeDofzrA6ofaspKNTPALK6nlalYv0EPT6q9YEjG+nd7zm4cJg254 XlmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=rRpKdj7D4Y+lRcGkWZYYAlYoNbloXbMDg0kZp/Zyej0=; b=Z20P9CPNHJwmJjSdBjOuc0+0BbcHXxQ3c5LEKmePRLUvELccXZlAx8//VId8BJUZ3n rS7MHQ0bINjOV8yeVY3tcZy6/ocl1o3ICzFSfrKgu/C9oI2zYc7Ldl2Sa+pZFXa4es8p DcWRcy18KuVO9mHNUlVq2P+XaH5jWsARXPsg81u8lsoF7j8tyaY2qbK+DefeVzNnD1JH fwkzjxRf5tz6wcK+WPrKM9lpfRmSZ7ODXUMOJeHK11Qt0ZZnpbiK3tUTKUSCnuydyasf L4t9OOS0fjRD0OcBny5ClEEm9UsMbkBsc/KV97veAV4cFlmPr6YQhbNF/OwZ+jImOkmh A3Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=v7VOoOZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z11-20020a170902708b00b001634bddee5dsi8980244plk.221.2022.05.28.13.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=v7VOoOZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8E6111C4217; Sat, 28 May 2022 12:46:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349904AbiE0WeJ (ORCPT + 99 others); Fri, 27 May 2022 18:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbiE0WeH (ORCPT ); Fri, 27 May 2022 18:34:07 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BEED66AD5 for ; Fri, 27 May 2022 15:34:06 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id v5-20020a17090a7c0500b001df84fa82f8so5528281pjf.5 for ; Fri, 27 May 2022 15:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=rRpKdj7D4Y+lRcGkWZYYAlYoNbloXbMDg0kZp/Zyej0=; b=v7VOoOZkpPJGiNcbbmBNhkg0u0vfJwQtzOb+8mPfI/BS2SZrxPg/DAWcLbxllvMI4c oGwEfL4SO5jpBlgssIrRCObYlIv0dlREDRpOK6XyVgo4NTjT1nAGrBBJCn1imtu2Nyxo N/0cqUJ2+CqrUGGTq+l+V5k8wZiS4Tl9rZlANCrw5Kjlae4CjTpPto4eKnwnocgjW3Bz rRXsoWLNvmpnaON+jaCazEZwE/Xyt+4Wi9oSwG1MUEC5riFoeTrkzI7db8wtSleZzkWb lPYC2eYSdvAA/s2Swx2HILeshurFKjrem6qLmEMIMaDrg5eW9NA0Af7M+Fm2VLLPLLYz RlkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=rRpKdj7D4Y+lRcGkWZYYAlYoNbloXbMDg0kZp/Zyej0=; b=EXOzOW1QIj7XQ/kuTIqkMFuqJMco+Kut3cpu41WKcxUdYu7fi99Srj01zxG8BQy7JQ lRRVTjjV2ogcjT0e/KVst5mfhM7dEayW/Gehw6O+xpC7EI/ahLEc5t4UUqo+y/Vlrl83 OdblaNRw8yZB/6PwGkkYYUWFXb72JA1yPmb0T61voB6sEHyLLKPr7FQ1gnI8SOm12btM cn1+cfmhLiqa/6Vp/zhdcjyyCawnYO4xIkEK/gZNmpgRqyO3AAil+i8bVkYzZNIyQFOm 5Q46+sN/2npmPdDLQaoWwp8P7cdd7fVlRdlG/S+YNsLtczc4ZKp5riEj5kMgA7ZnmwEl vQ8Q== X-Gm-Message-State: AOAM532d3aLo8Mee0FShDIicRZ6+/+wNjVeE3xNWyltiDZwXYyRCCbtO a5hjwnM/G+ScJOYusfAA3k9xoQxSlqUVhN3TGWyWpQYnnPQ8Ng== X-Received: by 2002:a17:902:7296:b0:14b:4bc6:e81 with SMTP id d22-20020a170902729600b0014b4bc60e81mr45210939pll.132.1653690845634; Fri, 27 May 2022 15:34:05 -0700 (PDT) MIME-Version: 1.0 From: Dan Williams Date: Fri, 27 May 2022 15:34:04 -0700 Message-ID: Subject: [GIT PULL] LIBNVDIMM and DAX for 5.19 To: Linus Torvalds Cc: Linux NVDIMM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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-5.19 ...to receive new support for clearing memory errors when a file is in DAX mode, alongside with some other fixes and cleanups. Previously it was only possible to clear these errors using a truncate or hole-punch operation to trigger the filesystem to reallocate the block, now, any page aligned write can opportunistically clear errors as well. This change spans x86/mm, nvdimm, and fs/dax, and has received the appropriate sign-offs. Thanks to Jane for her work on this. It has been in -next for several releases with no known remaining issues. --- The following changes since commit af2d861d4cd2a4da5137f795ee3509e6f944a25b: Linux 5.18-rc4 (2022-04-24 14:51:22 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-5.19 for you to fetch changes up to f42e8e5088b9e791c8f7ac661f68e29a4996a4e3: pmem: implement pmem_recovery_write() (2022-05-16 13:38:19 -0700) ---------------------------------------------------------------- libnvdimm for 5.19 - Add support for clearing memory error via pwrite(2) on DAX - Fix 'security overwrite' support in the presence of media errors - Miscellaneous cleanups and fixes for nfit_test (nvdimm unit tests) ---------------------------------------------------------------- Dan Williams (1): nvdimm: Allow overwrite in the presence of disabled dimms Jane Chu (7): acpi/nfit: rely on mce->misc to determine poison granularity x86/mce: relocate set{clear}_mce_nospec() functions mce: fix set_mce_nospec to always unmap the whole page dax: introduce DAX_RECOVERY_WRITE dax access mode dax: add .recovery_write dax_operation pmem: refactor pmem_clear_poison() pmem: implement pmem_recovery_write() Michal Suchanek (2): testing: nvdimm: iomap: make __nfit_test_ioremap a macro testing: nvdimm: asm/mce.h is not needed in nfit.c ran jianping (1): tools/testing/nvdimm: remove unneeded flush_workqueue arch/x86/include/asm/set_memory.h | 52 ---------- arch/x86/kernel/cpu/mce/core.c | 6 +- arch/x86/mm/pat/set_memory.c | 49 ++++++++- drivers/acpi/nfit/mce.c | 4 +- drivers/dax/super.c | 14 ++- drivers/md/dm-linear.c | 15 ++- drivers/md/dm-log-writes.c | 15 ++- drivers/md/dm-stripe.c | 15 ++- drivers/md/dm-target.c | 4 +- drivers/md/dm-writecache.c | 7 +- drivers/md/dm.c | 25 ++++- drivers/nvdimm/pmem.c | 203 +++++++++++++++++++++++++++----------- drivers/nvdimm/pmem.h | 5 +- drivers/nvdimm/security.c | 5 - drivers/s390/block/dcssblk.c | 9 +- fs/dax.c | 22 ++++- fs/fuse/dax.c | 4 +- fs/fuse/virtio_fs.c | 6 +- include/linux/dax.h | 22 ++++- include/linux/device-mapper.h | 13 ++- include/linux/set_memory.h | 10 +- tools/testing/nvdimm/pmem-dax.c | 4 +- tools/testing/nvdimm/test/iomap.c | 18 ++-- tools/testing/nvdimm/test/nfit.c | 3 - 24 files changed, 359 insertions(+), 171 deletions(-)