Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp515413rdb; Thu, 21 Dec 2023 17:08:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGobRF8f6Cwr2eZzfI8nZJVTeH2Dcs7I4ajrLxK9UaVpP0GiwBe2RnafzQ0RPg9+j5I8CFU X-Received: by 2002:a05:620a:126c:b0:77f:ad10:22de with SMTP id b12-20020a05620a126c00b0077fad1022demr793013qkl.93.1703207293543; Thu, 21 Dec 2023 17:08:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703207293; cv=none; d=google.com; s=arc-20160816; b=A1WCHll/TAmzuHEB1IP+zbGb+CkRBJRkRQCdDOwfvAeCbtmFdgEP6xYEyw4nAJmIXc 9UgsBQN0JyQ2mjjLsVyzH0SPLoBFMl1OKAiL2PPnslenFrRVFSGnr9Ke9RlJCpBIglpH cTWIc4Ym07NZbX8/q9ldD3d3Ig3Gb+9nIg6ClTexJnCasLkxmp/84BhbphvL42FPOORM FJxSqbVf5Tm6XccRBuuByGE0wsE1NIhzam4JN7uHqMjcaxSTZ/eUh2KCUVQ7Kmbuyytm UMcwk26QA+g63gpN7wG2Jpn5B26eRYMZ7b289cHlcEOUdnsoNtRQPrbxYTmbdUinjXKZ xgfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=HIrAtSlOHZ+3GCW6CLInZHOgcziSzMR6DQ+1OWMtu6U=; fh=ZEZjALiITwPWWK0jQDDqHJyTvLnFlaA5z6XKlT3UrFE=; b=SErOhx0fp1wjJPO6Lb00UkvFq7hpznK7k9bDepEwsK/gIEaFNzOQnSEtEJxwxHLrvF 4uXR2MbdOT2zPak2+cPG31TZRjVb2q9fpnqpN1AqFxjuJGthneFResdixnvEoi9LzfVl p2spFN5wnVYYoFewISmNJqlpkPcBibJ9d6yGvc08j+bw5SMJbvmtyOH5YTH3apKG2wKE k+bGI3d+IeuhzQ/BsPC3KzzFo4F4O+x6WsDwPJMTM6LpfyUMVllnYGuiTLYG1g23dtOP 2rSLuhRgw/PxnBpNGdnjCZQpBkpVUYCZjl8KTh3hmxG5axGfTWjK6M4MKCpBdkr7kbgV vv2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p16-20020a05620a22f000b0077dc5232909si3077690qki.85.2023.12.21.17.08.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 17:08:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4DAFA1C240A5 for ; Fri, 22 Dec 2023 01:08:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58BFF139D; Fri, 22 Dec 2023 01:08:02 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E1BDA31; Fri, 22 Dec 2023 01:07:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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