Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp801336imu; Fri, 25 Jan 2019 11:14:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zoo+EfhZeMDyh8pzAlpZs/4xrWkKadoacJDGKaIa0lcaH7wbikv5dz472YSRuiwAJ29+A X-Received: by 2002:a17:902:12b:: with SMTP id 40mr12025231plb.72.1548443650398; Fri, 25 Jan 2019 11:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548443650; cv=none; d=google.com; s=arc-20160816; b=yz5mv5JiPoMqRkmcGvSuNSlu2MZIWKXXIR+aSoo1CLzxHWrH4Z8Y6DmGXshVxSUAzp dwW12RjPrMOF0FNMmyw2x31S/hrXsG2lisXzSfRtJ1pbTzlG6EMBb1VDgAaDRUv/Cwwj 2WS+zn8Eix/5s4RrMaewfSLK1dqH6bKL3b5w7aJ9SwgGUh2rNEE0VnHYOz/UCnwP7WHK 3zMAFW0xJ7oFAX7UAWKSP3U2r8x/uXUmdIZc4qsAgvOrRexgnGT+DTd+ZPPKrAh3XLeO PPAZXtriVfbKF1qpyoyKu4wsdK1c3qfvUJK7tkes3cSS1hA7X6OUhdlCEHTxlo56SiIA 9OWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=e45pddu4T0w+FZczQB8gd8TNniiUMDMlHfFvF74y4JI=; b=BTnEEP20azV8iNzWQ1HXJuvYwHSZ0lYVLaF4rVBCD8Lzfqh6mV2z5AhGY1/XQ5F91d TOzjSZSz1GXV6I/bXO7+tTog6f7yhi8QI4mQtnKquO+xfglorhnrtunIyaZ0rz88y4Qc IiZKkIlKMRsAP8K+rquehnJcPuWTebviw6bedCxdCUrV9gNAXK98PpZv707XjqX15AJl UWP9pmHqoCmNGLP/g+5sfBCGroET0JVF9/1h/ge2K5WIABqCPWVHdzDA4G5bqV+ZklEl 3PWCD7YbvywlD27HcBSAaBJsS8sBnAu8o5F//CrASPqK7JvNiEAnAXExvFTy/vWA5qXS 9ZwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=ff8SwgtI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si19507466plt.273.2019.01.25.11.13.54; Fri, 25 Jan 2019 11:14:10 -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=@oracle.com header.s=corp-2018-07-02 header.b=ff8SwgtI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbfAYTMI (ORCPT + 99 others); Fri, 25 Jan 2019 14:12:08 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:34368 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfAYTMI (ORCPT ); Fri, 25 Jan 2019 14:12:08 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0PIxPSs188697; Fri, 25 Jan 2019 19:10:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=e45pddu4T0w+FZczQB8gd8TNniiUMDMlHfFvF74y4JI=; b=ff8SwgtIWxZPFtqsLadGhu4mtI0nERLxpNCxpKi9D7k2+TeF/luMhTQeV+PEMuZTfbsF 6AHkMy3tEYB4pBKt3ApVHu3f+2dRXwVVbbACswLUkCrwB27m+SYV03L43aSGHoW57DnH heskUdFNt+yoOsj6y3NZDFOx4MKSQN2mgEskUqqWZY29etnzxyZKLEFccoC0/3GwigSs khfLQQ5W+zK9QM4G8KipYG7LXJ1QcvX4uwiBNi8XNgwd+3q21Zypr/+/MFoguiF1rcMH D5956ArTpzsqnoAFx/wSxhkVrFAq1YlsT0Izr3/rmUSiIdd9sKnf8cGkp8hb6znBhrnS 4A== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2q3vhs7ckn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Jan 2019 19:10:25 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0PJAOSR022527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Jan 2019 19:10:25 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0PJAOMP028010; Fri, 25 Jan 2019 19:10:24 GMT Received: from [10.159.247.181] (/10.159.247.181) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Jan 2019 11:10:24 -0800 Subject: Re: [PATCH 5/5] dax: "Hotplug" persistent memory for use like normal RAM To: "Verma, Vishal L" , "Williams, Dan J" , "Du, Fan" Cc: "linux-kernel@vger.kernel.org" , "bp@suse.de" , "linux-mm@kvack.org" , "dave.hansen@linux.intel.com" , "tiwai@suse.de" , "akpm@linux-foundation.org" , "linux-nvdimm@lists.01.org" , "jglisse@redhat.com" , "zwisler@kernel.org" , "mhocko@suse.com" , "baiyaowei@cmss.chinamobile.com" , "thomas.lendacky@amd.com" , "Wu, Fengguang" , "Huang, Ying" , "bhelgaas@google.com" References: <20190124231441.37A4A305@viggo.jf.intel.com> <20190124231448.E102D18E@viggo.jf.intel.com> <0852310e-41dc-dc96-2da5-11350f5adce6@oracle.com> <5A90DA2E42F8AE43BC4A093BF067884825733A5B@SHSMSX104.ccr.corp.intel.com> From: Jane Chu Organization: Oracle Corporation Message-ID: Date: Fri, 25 Jan 2019 11:10:22 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9147 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901250148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/2019 10:20 AM, Verma, Vishal L wrote: > > On Fri, 2019-01-25 at 09:18 -0800, Dan Williams wrote: >> On Fri, Jan 25, 2019 at 12:20 AM Du, Fan wrote: >>> Dan >>> >>> Thanks for the insights! >>> >>> Can I say, the UCE is delivered from h/w to OS in a single way in >>> case of machine >>> check, only PMEM/DAX stuff filter out UC address and managed in its >>> own way by >>> badblocks, if PMEM/DAX doesn't do so, then common RAS workflow will >>> kick in, >>> right? >> >> The common RAS workflow always kicks in, it's just the page state >> presented by a DAX mapping needs distinct handling. Once it is >> hot-plugged it no longer needs to be treated differently than "System >> RAM". >> >>> And how about when ARS is involved but no machine check fired for >>> the function >>> of this patchset? >> >> The hotplug effectively disconnects this address range from the ARS >> results. They will still be reported in the libnvdimm "region" level >> badblocks instance, but there's no safe / coordinated way to go clear >> those errors without additional kernel enabling. There is no "clear >> error" semantic for "System RAM". >> > Perhaps as future enabling, the kernel can go perform "clear error" for > offlined pages, and make them usable again. But I'm not sure how > prepared mm is to re-accept pages previously offlined. > Offlining a DRAM backed page due to an UC makes sense because a. the physical DRAM cell might still have an error b. power cycle, scrubing could potentially 'repair' the DRAM cell, making the page usable again. But for a PMEM backed page, neither is true. If a poison bit is set in a page, that indicates the underlying hardware has completed the repair work, all that's left is for software to recover. Secondly, because poison is persistent, unless software explicitly clear the bit, the page is permanently unusable. thanks, -jane