Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp118141imu; Thu, 24 Jan 2019 22:31:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4iTzlNuAMO1OzkLTIYPFXjtStfE4dhg3STih0sJ1skBQmSsgRYbJhu8V3cAf9kbCg/DTfK X-Received: by 2002:a17:902:298a:: with SMTP id h10mr9778559plb.312.1548397900894; Thu, 24 Jan 2019 22:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548397900; cv=none; d=google.com; s=arc-20160816; b=R1S+Mq5TSRboX9FwWQcysHjnMs+BcRVaVjXPphEsJUQOaZ7QiVTAexO07YSepixONd lnyqIYflkxB4dPATN7hBS/iDwMTISN4Hhyjf3eKbWBkxl73UwjKStiGQe4tiBDAsRXPT f0lvUiYkvW2vsmMCU7SYsyTvJHdJF8naHKVWPPiNJ0SCIZ5PUPmxT8zpwJpmymtt46G1 JiNSKQpKjgkXHrXcu6jOgIEzK/lOmxiR+cU7InSkQVi3ALRyGeROW2+/eHxOrmpfaPrA xlDAd/FECYC9V8q9nhmMQLOJYUUdL3zCw+EY6pCyB8bRpZNwyLbTWzK/0tYESmcgIW3B 0kyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3Mv5wuebRzoalbCk7v0arDMNle3VSxPxLSOwttSePtY=; b=LuAoSiQErfY56A2IoAiaMmoV/vUyNDLrMJW8lXUiexoOmB63IEvoVezYUnb7Sanjqj NTBYW6bjsJ/FElsfja5npc3n5Xim6aWD5FrJQMIkoBl+P5MPQgbcjSEgDeI3paW6wXIM sKHOqxWVQVxfPdy8MrlpWSWJk5xIM9dh3atEN+IixBIKHhVRBIPyMYP0yKREI47RgLY/ UWm+WF8VfCwn+fnL/hA9AG6UMGjM93VhsHCeorEn7m89QTCzYJDXz/XN7DBMwyQ/n4Hu seWrlDY/2Va2KhPd438e1NjytZFTkIrthMANp2eQyeQEs6FvpqoYB/cCLs/VpOzJM/h1 LFjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=gp70rwtR; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g187si23082680pfc.43.2019.01.24.22.31.03; Thu, 24 Jan 2019 22:31:40 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=gp70rwtR; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727558AbfAYG2L (ORCPT + 99 others); Fri, 25 Jan 2019 01:28:11 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:46092 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbfAYG2K (ORCPT ); Fri, 25 Jan 2019 01:28:10 -0500 Received: by mail-oi1-f195.google.com with SMTP id x202so6900401oif.13 for ; Thu, 24 Jan 2019 22:28:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3Mv5wuebRzoalbCk7v0arDMNle3VSxPxLSOwttSePtY=; b=gp70rwtRHbqz/Kj7KbZjRxy4Tiu+ZnkP1IVeLNRLzlqV6rncaLAO5NAGYGjGXoS8gK ghskggWCWW0/Y56HMc6J0RP/BEDdM+5S89h/5Cy1fqiGtUUAVQyXB/ORHmUGRy/oVpFD jMCs5wh+ZhweLK8ozanvFtp4ieRPha1WYgQeDsmnm9fl4UFMzOYA94+DeZs4uNwwoCdY +DxPEymsYhIVEz6R2Y6Vl89GH6bbLXa3U6ALFkXcsWfSqmY7Me4P6C8n9ndQBhvMktgI rRBQhQzH2Ybhz13Z/tt62bSi5xLOJbx7thOHGBEegMudekMopSbTeJ/KfrU9TP18CIEM DM2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3Mv5wuebRzoalbCk7v0arDMNle3VSxPxLSOwttSePtY=; b=CXEfgH3bgNxoKUIMuSnp3yBz2l7TMbziaIoeeu+SUGHnMoM28kQdu9JC4AoJkyGVLr uzukswwIIvjW+RvBbLRI1sJ4BuwurjUUA++Saj6CVOclL0UAOU1qsGHI7ea9av2VHkFE AbdvPXPaeWAz1UI84ntnSZ5mspAvTALrTSTqU94bNWv2fkQyify2G4B8DCLe7N2TZ26l Sv1uC5/hY4GdMAgVAkSFh2Lqgtw/2EioU4MO6hG0lRF70WyWWbUN6kl3scprp/TEd8tR dQPf5YO4yKyVwfWedO37fuRxUq2T4YKiaWbO71I50YiAr2ckaTt4aoV597mOY55QVLu4 ocCg== X-Gm-Message-State: AJcUukd3wqzeNtUiSGZtqMcNHAW0w5d7O+xVGvQykG9OwPd0/RB/lzm6 r3d/57olg7svcNcVlVYybuHvpWZbXhBgUcUg+lZe6A== X-Received: by 2002:aca:2dc8:: with SMTP id t191mr502126oit.235.1548397689037; Thu, 24 Jan 2019 22:28:09 -0800 (PST) MIME-Version: 1.0 References: <20190124231441.37A4A305@viggo.jf.intel.com> <20190124231448.E102D18E@viggo.jf.intel.com> <0852310e-41dc-dc96-2da5-11350f5adce6@oracle.com> In-Reply-To: <0852310e-41dc-dc96-2da5-11350f5adce6@oracle.com> From: Dan Williams Date: Thu, 24 Jan 2019 22:27:58 -0800 Message-ID: Subject: Re: [PATCH 5/5] dax: "Hotplug" persistent memory for use like normal RAM To: Jane Chu Cc: Dave Hansen , Linux Kernel Mailing List , Tom Lendacky , Michal Hocko , linux-nvdimm , Takashi Iwai , Ross Zwisler , Linux MM , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Fengguang Wu , Yaowei Bai , "Huang, Ying" , Bjorn Helgaas , Andrew Morton , Borislav Petkov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 10:13 PM Jane Chu wrote: > > Hi, Dave, > > While chatting with my colleague Erwin about the patchset, it occurred > that we're not clear about the error handling part. Specifically, > > 1. If an uncorrectable error is detected during a 'load' in the hot > plugged pmem region, how will the error be handled? will it be > handled like PMEM or DRAM? DRAM. > 2. If a poison is set, and is persistent, which entity should clear > the poison, and badblock(if applicable)? If it's user's responsibility, > does ndctl support the clearing in this mode? With persistent memory advertised via a static logical-to-physical storage/dax device mapping, once an error develops it destroys a physical *and* logical part of a device address space. That loss of logical address space makes error clearing a necessity. However, with the DRAM / "System RAM" error handling model, the OS can just offline the page and map a different one to repair the logical address space. So, no, ndctl will not have explicit enabling to clear volatile errors, the OS will just dynamically offline problematic pages.