Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1767363lqg; Mon, 4 Mar 2024 03:16:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWEEoFWb+0gQ1+nc9uCqaz6ILbh+sT4/K529fz362T4kbcSUPvns8dw9shyyhPNV3eEnZEdhrV1uBKHOfT9PK/mohgtsM7EoMX6egvZg== X-Google-Smtp-Source: AGHT+IEYf07Cd3YPLsJxtV9CQcEeHyVnRQ676rt5ShGjIB9OBEuEXneNyP0Zbb27CbEJxbsg8ITT X-Received: by 2002:a05:620a:562b:b0:788:21c3:be69 with SMTP id vv11-20020a05620a562b00b0078821c3be69mr4324546qkn.30.1709550962873; Mon, 04 Mar 2024 03:16:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709550962; cv=pass; d=google.com; s=arc-20160816; b=f4hOEhiHTTX2zKepEUjN98ZPSAE/Sll32/ZpdRJqToaVpHHfJm54fmLSEpEfScD3CD 5Kycf4sfgB9q3AwOrdlfw2E73qpvH59Aq8cGDtUZJi1IVYitNpu1yfwbyby3goWw3Zxo lt+U1yIU3vI41cWyELm+E7A2F3sSo1UoO7BB9sN1n15kfRHjjRDjiG0yfCZe/u36hfMW lyiywfXOxQYSVaij2kwm2DuzmmpTjcfg+7HitCM6umxi0KYBdODMypC5oICffFuRk+lZ rErsAfdBp8OCSVoq2pEjk3eTuDI3xx17N6pqkHJT0aTFM6YyX6b+OsFflNp6AwkFatc5 MGug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+KToDONWSyU96YdlBLNtPCPCwLodjffJBV7loL7KhQU=; fh=cd5zeJod9Ub9QFGWbABP1yZY/5tWF9rpt6bzdq1+zqI=; b=rYN5VKg7epGhO4p1HtG39Ix3gXH5tqosSXSjPgmwF4lYmHEXmAP2tyrq2ItRk8Zf8P 0CHIypyQ51KxjQ2vNgONIOXHtxUhHhhcMcXzSI0Ays5u8c+rozeBqmtMtzOo1Mp3NDcT CiWJtAf6SfqNIgkpiUe4fHO8Gb5ds+6lVU/O9YdI0Ry1z0Cr1jrqIYQ+CjZVdC4MVr6g +BD/ikzSFaWc2PdApMx1XuuNPHyU6HRRH/QLDtc+97f5WhfOj4ES+l/rDq5z4AohEiY+ 7M3aoB4mF+vkkRuGrDVLIQyQVv2N0sqq0N8OD/bbceRZiXQU3h0+EkGzBg7RS/Nzwuwh 9HxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=PIUVzZKr; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-90494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.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 bs40-20020a05620a472800b007882ea4f08dsi645722qkb.632.2024.03.04.03.16.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:16:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90494-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; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=PIUVzZKr; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-90494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.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 010671C2347B for ; Mon, 4 Mar 2024 11:15:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1070C38DFA; Mon, 4 Mar 2024 11:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="PIUVzZKr" Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (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 A5176374FC; Mon, 4 Mar 2024 11:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709550928; cv=none; b=rKzCiKEu1bge9VBo//PBUlQXHcWOSNn+0Vq3d7ZPkqNbrhImTSVI1wErC5hLL+gmqUN4yzApWm711oUdBY5Cfuf/FXE8bVbNhhKSJOpQ9FFKwEEdmVAhQSBCzic+ITVxbwSFkEX9j9HDTD/rtnAm9cDVPk8kYJ6AaO7RS0DB1Y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709550928; c=relaxed/simple; bh=I+1LKBKyDdSD8etDBGgYa4NJ520rUBsIlRMiUVOajK4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tEA+uaREjF/BuNvzzwl9dNa5BMeK9inCWvvsNYzti3T7EUXomBQVdxlWYp1YhVYibzTKOK2dijGft2tzc8MuztDe6xWd+WKSamKF4rL5qj2BKyR2t9Pfw+yKxJ1XiskXeqweVnHeq7Q36txnUIH8KgPbBqvJtdAfVYIK8JQptYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=PIUVzZKr; arc=none smtp.client-ip=115.124.30.113 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 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1709550922; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=+KToDONWSyU96YdlBLNtPCPCwLodjffJBV7loL7KhQU=; b=PIUVzZKruNCk/DNJHFJvU5G+Z4hmYTUcimxbYwxFE+rMlc2hxzI1WSXcWQ4LIYllezlpe3/SSoH3kUEdySu5OTwe+9JJqs0h69v8Aefa4o8Zmvj76w4CNiqDiPLiBOdKy+H8Yj5M0WAnlQyCigHsSteIrlPoQkvhup9sWVqhULQ= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R691e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=tianruidong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0W1oM1bh_1709550918; Received: from localhost(mailfrom:tianruidong@linux.alibaba.com fp:SMTPD_---0W1oM1bh_1709550918) by smtp.aliyun-inc.com; Mon, 04 Mar 2024 19:15:21 +0800 From: Ruidong Tian To: catalin.marinas@arm.com, will@kernel.org, lpieralisi@kernel.org, guohanjun@huawei.com, sudeep.holla@arm.com, xueshuai@linux.alibaba.com, baolin.wang@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Ruidong Tian Subject: [PATCH 0/2] ARM Error Source Table V1 Support Date: Mon, 4 Mar 2024 19:15:15 +0800 Message-Id: <20240304111517.33001-1-tianruidong@linux.alibaba.com> X-Mailer: git-send-email 2.33.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds support for the ARM Error Source Table (AEST) based on the 1.1 version of ACPI for the Armv8 RAS Extensions [0]. The Arm Error Source Table (AEST) enable kernel-first handling of errors in a system that supports the Armv8 RAS extensions. Hardware errors will trigger a RAS interrupt to kernel, kernel scan all AEST node to fine error node which occur error in irq context and use a workqueue to log this hardware errors. I have tested this series on PTG Yitian710 SOC. Both corrected and uncorrected errors were tested to verify the non-fatal vs fatal scenarios. Future work: 1. UE trigger memory_failure other than panic. 2. Add CE storm mitigation. 3. Support AEST V2. This series is based on Tyler Baicar's patches [1], which do not have v2 sended to mail list yet. Change from origin patch: 1. Add a genpool to collect all AEST error, and log them in a workqueue other than in irq context. 2. Just use the same one aest_proc function for system register interface and MMIO interface. 3. Reconstruct some structures and functions to make it more clear. 4. Accept all comments in Tyler Baicar's mail list. [0]: https://developer.arm.com/documentation/den0085/0101/ [1]: https://lore.kernel.org/all/20211124170708.3874-1-baicar@os.amperecomputing.com/ Tyler Baicar (2): ACPI/AEST: Initial AEST driver trace, ras: add ARM RAS extension trace event MAINTAINERS | 11 + arch/arm64/include/asm/ras.h | 38 ++ drivers/acpi/arm64/Kconfig | 10 + drivers/acpi/arm64/Makefile | 1 + drivers/acpi/arm64/aest.c | 728 +++++++++++++++++++++++++++++++++++ include/linux/acpi_aest.h | 91 +++++ include/linux/cpuhotplug.h | 1 + include/ras/ras_event.h | 55 +++ 8 files changed, 935 insertions(+) create mode 100644 arch/arm64/include/asm/ras.h create mode 100644 drivers/acpi/arm64/aest.c create mode 100644 include/linux/acpi_aest.h -- 2.33.1