Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6118416rwb; Mon, 5 Dec 2022 08:11:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FjT67vxcXmkcjJnOggp+o2GT2f1kCHa6B6cG/z7LwOHApPLuPS+1n3dueUZmuK/GVo4f1 X-Received: by 2002:a17:902:a5cc:b0:186:de87:7ffd with SMTP id t12-20020a170902a5cc00b00186de877ffdmr77094408plq.94.1670256683689; Mon, 05 Dec 2022 08:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670256683; cv=none; d=google.com; s=arc-20160816; b=Huc6ac1bCm0OeQ1ZBgybM8xckafU3dGW8fLk+y2sDUHYMja9S8X/FeC48BUtZ/YRY+ OI08VuzUjQETDs3ohSGecDmSHUikNrFGCgZkvaxFcVW6K/Xan9l6B5MX570LiWlhQiVh uCZVi53QzERiCVtNwXUsXKbGBazcNTu0QoumiK0FOzeHr8yRy6/buNNW/1j7yK7kBkQd jHUBiYNB0PN+qZ3hCm79gZW34wx51tAQ0bY6Qq41aM2QfVc09eNHSTffdQzq2aq5Ik2G PdipD4szRANxfKTyeJkWbhzmAjNvFiqfQkajRZhnldzR3ydo+X6xYIHOw05GDv6IwqIb PKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NpJVSz+4RVC+mxtU7Z3G8GWma1u0ueZ32Lr4PojUIRs=; b=SRREm1DApst8+grEVVqkaXoVtZMoVfm1cJ4QPsvexSonrSfkK0HIVNo7boRWZ6ph2f WTysylhNK9djVCAMesPIdPsRZTEVz3YSpAAykfhgSWnvHoKgD4FSR45dT9wx3ipXnJl7 cZwo879CRUjfWag+1BUdUWAb7YGEr/POElcPaigoS0+5sorr63XtLqZo3mOKq4q7sOTV mA75L3BGA1rbUDGtZDyECUDnDxML7PNbdkoEILRLT8or1pFiYa45QKDdZCNEC+jVueXp uo3zDWb5/CSU9IbZuhSXRxUc3NH2YcguzrjqjqFAAAZZ4A/HgZz6ejiSv7SEbjHDSnc/ YN0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a63d810000000b0043ce223c86dsi14842798pgh.843.2022.12.05.08.11.11; Mon, 05 Dec 2022 08:11:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232800AbiLEPnr (ORCPT + 81 others); Mon, 5 Dec 2022 10:43:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232887AbiLEPnc (ORCPT ); Mon, 5 Dec 2022 10:43:32 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89BC1AE76; Mon, 5 Dec 2022 07:43:30 -0800 (PST) Received: from canpemm500001.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NQnmZ61PtzJnfJ; Mon, 5 Dec 2022 23:39:58 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by canpemm500001.china.huawei.com (7.192.104.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 5 Dec 2022 23:43:27 +0800 From: Xie XiuQi To: , , , , , , , , , , CC: , , , , Subject: [PATCH v3 0/4] arm64: improve handle synchronous External Data Abort Date: Tue, 6 Dec 2022 00:00:39 +0800 Message-ID: <20221205160043.57465-1-xiexiuqi@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500001.china.huawei.com (7.192.104.163) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 This series fix some issue for arm64 synchronous External Data Abort. 1. fix unhandled processor error According to the RAS documentation, if we cannot determine the impact of the error based on the details of the error when an SEA occurs, the process cannot safely continue to run. Therefore, for unhandled error, we should signal the system and terminate the process immediately. 2. improve for handling memory errors If error happened in current execution context, we need pass MF_ACTION_REQUIRED flag to memory_failure(), and if memory_failure() recovery failed, we must handle this case, other than ignore it. --- v3: add improve for handing memory errors v2: fix compile warning reported by kernel test robot. Xie XiuQi (4): ACPI: APEI: include missing acpi/apei.h arm64: ghes: fix error unhandling in synchronous External Data Abort arm64: ghes: handle the case when memory_failure recovery failed arm64: ghes: pass MF_ACTION_REQUIRED to memory_failure when sea arch/arm64/kernel/acpi.c | 6 ++++++ drivers/acpi/apei/apei-base.c | 5 +++++ drivers/acpi/apei/ghes.c | 31 ++++++++++++++++++++++++------- include/acpi/apei.h | 1 + include/linux/mm.h | 2 +- mm/memory-failure.c | 24 +++++++++++++++++------- 6 files changed, 54 insertions(+), 15 deletions(-) -- 2.20.1