From patchwork Tue Nov 15 16:41:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xie XiuQi X-Patchwork-Id: 13043987 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5C388C4332F for ; Tue, 15 Nov 2022 16:25:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kMObQW/yf+6Ll/kH9nBudK0QbXOsJ7wWm0bVCMK8NX8=; b=UCf1ARWCouh9S+ vxVQ2qIj+AAQX/L29Ykwy4a3J6SJScGxaTsOuR53gUrvcPWxwnaKTpNqQVOz90BJWVgD9rS7d/x65 ZI3AKmcXhXXB2DghoP+grA4lsW9heQTarTGEKiepeveYMzazyCyjLgAyab4v7MpbK/m3QHbzpoGSU XayXtPQqBnUVCqkO7sbtXzsZhR2U0UxEoSeFld+VQP/nz2nvfcmhC2CF31Ji1TeKGEPvms0lU8Jxp 0bp4Cwvwoq2MiKfTaTvamSlHBhXOTE8WWj6PCsSdKG3Nu5ceXiy7TFIc4jIiGunoV5EiOS8bhzuWY ckJnru1snAsWtM7gGI1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouyj5-00CiQT-LK; Tue, 15 Nov 2022 16:23:55 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouyim-00CiDu-8w for linux-arm-kernel@lists.infradead.org; Tue, 15 Nov 2022 16:23:38 +0000 Received: from canpemm500001.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NBWbb1rxszqSMb; Wed, 16 Nov 2022 00:19:39 +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; Wed, 16 Nov 2022 00:23:25 +0800 From: Xie XiuQi To: , , , , , , , , , , CC: , , Subject: [PATCH v2 0/2] arm64: fix error unhandling in synchronous External Data Abort Date: Wed, 16 Nov 2022 00:41:44 +0800 Message-ID: <20221115164146.106005-1-xiexiuqi@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500001.china.huawei.com (7.192.104.163) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221115_082336_518106_4D46E0F3 X-CRM114-Status: UNSURE ( 8.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. PATCH 1: fix compile warning reported by kernel test robot. PATCH 2: kill current process for unknown errors in when an SEA occurs.. --- v2: fix compile warning reported by kernel test robot. Xie XiuQi (2): ACPI: APEI: include missing acpi/apei.h arm64: fix error unhandling in synchronous External Data Abort arch/arm64/kernel/acpi.c | 6 ++++++ drivers/acpi/apei/apei-base.c | 5 +++++ drivers/acpi/apei/ghes.c | 14 +++++++++++--- include/acpi/apei.h | 1 + 4 files changed, 23 insertions(+), 3 deletions(-)