From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4A41C46CD2 for ; Fri, 22 Dec 2023 01:08:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2371C6B007E; Thu, 21 Dec 2023 20:08:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C01E6B0080; Thu, 21 Dec 2023 20:08:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 060BA6B0081; Thu, 21 Dec 2023 20:08:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E4AC36B007E for ; Thu, 21 Dec 2023 20:08:01 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id BAC01A0432 for ; Fri, 22 Dec 2023 01:08:01 +0000 (UTC) X-FDA: 81592667562.05.E77908B Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by imf20.hostedemail.com (Postfix) with ESMTP id 7212E1C0011 for ; Fri, 22 Dec 2023 01:07:58 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of xueshuai@linux.alibaba.com designates 115.124.30.110 as permitted sender) smtp.mailfrom=xueshuai@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703207280; a=rsa-sha256; cv=none; b=ivdur3wE3nCVDuKY/U5OSjKNgUj3OV5ERV0HCfBUYvA9jC/Lk585OaBj86l28vNB457P/I jgV0CPJ6VJTW+2OvFCdhGdetI3M55lzXbEm2vxUaJy3IhVTGWRmrDH8GN4AaqmN+OOOoQl t0+41Q9LLNJhfUBKYiAECoBhp30kZnk= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of xueshuai@linux.alibaba.com designates 115.124.30.110 as permitted sender) smtp.mailfrom=xueshuai@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703207280; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HIrAtSlOHZ+3GCW6CLInZHOgcziSzMR6DQ+1OWMtu6U=; b=YW1iriOmnF64TtCAhbams/X0O8TbgTgftR7OALBXCE7FznzqfN8miAeMn9+e28IggUKKIf cIiU7RXbP5jExbgUuiE8/Fb/Y1xcxLFkjru1KSVVtSwPiWf8LyzksJr20QglSROhriQmBe yKLODwuDIpO0Jshg8B7we771e+4/aIM= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=34;SR=0;TI=SMTPD_---0Vyz1YYc_1703207271; Received: from 30.240.112.165(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0Vyz1YYc_1703207271) by smtp.aliyun-inc.com; Fri, 22 Dec 2023 09:07:54 +0800 Message-ID: Date: Fri, 22 Dec 2023 09:07:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 1/4] ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events To: "Rafael J. Wysocki" Cc: bp@alien8.de, wangkefeng.wang@huawei.com, tanxiaofei@huawei.com, mawupeng1@huawei.com, tony.luck@intel.com, linmiaohe@huawei.com, naoya.horiguchi@nec.com, james.morse@arm.com, gregkh@linuxfoundation.org, will@kernel.org, jarkko@kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-edac@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, stable@vger.kernel.org, x86@kernel.org, justin.he@arm.com, ardb@kernel.org, ying.huang@intel.com, ashish.kalra@amd.com, baolin.wang@linux.alibaba.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, lenb@kernel.org, hpa@zytor.com, robert.moore@intel.com, lvying6@huawei.com, xiexiuqi@huawei.com, zhuo.song@linux.alibaba.com References: <20221027042445.60108-1-xueshuai@linux.alibaba.com> <20231218064521.37324-2-xueshuai@linux.alibaba.com> Content-Language: en-US From: Shuai Xue In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 7212E1C0011 X-Stat-Signature: dqbxf73njr3pruqgnkauuursqdthxek5 X-HE-Tag: 1703207278-566454 X-HE-Meta: U2FsdGVkX1+UhWFYW1+At9T5PEgGSf6vg/kO05zawJCUJI1drloM08k2UXo4yiNn0YTYLuRJL2VmEKV/aFpdGqdzv2V9YZAFsF1D3vrbQWqqG8IxeYBZfI7+X2WWu+5X+AJlpRlFXEQNqdEmGPv5WJ/Zz7qcUTDoEqYWyd0MmXZiCADo5gh6Hu7sSV5DH1tj+O2WuRm4hAQYkVOrjjEAtbOzJg3Li/jUL0ycRHoeptAGehCK7sIpwelPKjQ+0N2Jzt5zj3QQfgmwBDdRy3KHfR1sAJzAHY0B+uDwmfv0sKG5aQKT8mfv8/vRnJujRiNWpNZvB4jasPC/3MEOCiR0DxRMI1FJsx+YqR1CTja0MR2kKLh8EDxiq3H3npnxCTmBfRNRLl6E7yf7cEmq7nb/IK92p7JocAUdePI7ib5UwiHKW3wNUvqzPb2WsksJwU2KQ30j6kv+MUAiM0Xs+9Kqb9m6Me4XmTKtoMZmglj0CCEzYbNWOfY6HiIXX97ePUHc+KSXzgrTcOtLgktmBW8m4PZlVKPsMf/ng5v1MHEkGrMJC/YXs3Gt2SLva5DZCHzvKot4cDpUJvRi5jnr7uqzlRfa001RFFpwqxq8+qfympsc8sKfibQU1dLnmaWns9th+YWRXFDBimgGaB/X21Zc1GBejw6s3atCHM3URj0gWEsf1pwqc89g/R7eXEorgxLwSc6cH02VsXTV8qAUD8hGGipyJppYwyeh5bdk96W1djAGjMw4ZKWF/89sB9Lnk7adRqqvqIP1pbx8DRsxgntxIHKp7fvzffCaFg/QHEHkfcWgMkNZkOftBbCEEFerxsAmzkrho75pnqWg4vLkGFQ7QAZmdnrb+ZMx3HxZU6HVa/NwEpHhLrGGnmsreyC98HZ3yLmkcs1SOzA9K8ROuHRq9BP56CJ/rpAv/whv7uPZeL+S2lVyTMXx0hTNg28WJ+0VX940TSOX9dymFV2RQx/ qwz9Z05S aIudy3S/PtpAe2eFXX1q6Azhq3Rzg4pQSCXMHqO9aOsT1oE+x2/T89nf4Jde3+YHmgZgKFpC7uTvXNk0iyurspIXJSnoaRkSvDOjAy7ooVDoGfp6JwUSMwWX0ILrs9c5TDH8P7qyKiX/lTgUkeQX+mbHMqFWjhaD/NybnhR4homK9aGp7DUCIuIN2lgtDwb9Ljj/JMwLTKEOc2c76U67X9FtUGuBhRmHsbrXsuvueLLhYl1aA6QsVjquwMftX/XscJifOA2t5q3Yv8e8r0j7UxqW78PFBOvgfDg8BEdB1/gOhrhfngznkKpr5xR2R57WS6C0VR8uHy4WHBdeNbUV6utiqPg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 2023/12/21 21:55, Rafael J. Wysocki wrote: > On Mon, Dec 18, 2023 at 7:45 AM Shuai Xue wrote: >> >> There are two major types of uncorrected recoverable (UCR) errors : >> >> - Synchronous error: The error is detected and raised at the point of the >> consumption in the execution flow, e.g. when a CPU tries to access >> a poisoned cache line. The CPU will take a synchronous error exception >> such as Synchronous External Abort (SEA) on Arm64 and Machine Check >> Exception (MCE) on X86. OS requires to take action (for example, offline >> failure page/kill failure thread) to recover this uncorrectable error. >> >> - Asynchronous error: The error is detected out of processor execution >> context, e.g. when an error is detected by a background scrubber. Some data >> in the memory are corrupted. But the data have not been consumed. OS is >> optional to take action to recover this uncorrectable error. >> >> When APEI firmware first is enabled, a platform may describe one error >> source for the handling of synchronous errors (e.g. MCE or SEA notification >> ), or for handling asynchronous errors (e.g. SCI or External Interrupt >> notification). In other words, we can distinguish synchronous errors by >> APEI notification. For synchronous errors, kernel will kill the current >> process which accessing the poisoned page by sending SIGBUS with >> BUS_MCEERR_AR. In addition, for asynchronous errors, kernel will notify the >> process who owns the poisoned page by sending SIGBUS with BUS_MCEERR_AO in >> early kill mode. However, the GHES driver always sets mf_flags to 0 so that >> all synchronous errors are handled as asynchronous errors in memory failure. >> >> To this end, set memory failure flags as MF_ACTION_REQUIRED on synchronous >> events. >> >> Signed-off-by: Shuai Xue >> Tested-by: Ma Wupeng >> Reviewed-by: Kefeng Wang >> Reviewed-by: Xiaofei Tan >> Reviewed-by: Baolin Wang >> Reviewed-by: James Morse > > Applied as 6.8 material. > > The other patches in the series still need to receive tags from the > APEI designated reviewers (as per MAINTAINERS). > > Thanks! > Thank you :) I will wait more feedback of other patches from MAINTAINERS. Cheers, Shuai