From patchwork Thu Nov 5 17:42:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 320659 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp652404ilc; Thu, 5 Nov 2020 10:01:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtNnN1XzkEt7XveW6e3/yW6b7tcKZwHdJ6xHkaITfskcsyK5b+1PTcP57s0QTsYV/NZSnB X-Received: by 2002:a17:906:9459:: with SMTP id z25mr3661316ejx.88.1604599296095; Thu, 05 Nov 2020 10:01:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604599295; cv=none; d=google.com; s=arc-20160816; b=XKXsJVhCU6WCUgzgnZ2Bti0SSW8KKo3MFwd3yGlPMYqEjm6cDWEqfUbKPwplvCxGvj hHdgHprCX4fYuEIsG0xeH9MtToXV7dzfjcdwPcaXpnDReEmmA8pCmEXg0EslMIBZ8pz1 ifyDjGh28nUWjFJHAbKHP7e2ynRUjHBGokHfTUrNc7SwuLOAkX7rZPGeTGdQmQLQE9wh cznr5dThp0THD3YqrCWrXK3nNS3rHVY9Nn0M6dQ3yNQoqNIB4JevLDpYYczZGftZqltz ZO+1DJoAPnX4U97LeIpug3Dw7ugjgY5XlZ755VAlWdIQJ3KRL+ay/zkIJBO8Ye5WdC9+ 8S8A== 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=vbxg1I3CDHolWc/a5Z0hd8fq1h9VfY6wXkSpafKBz5I=; b=e1jV53y6iXFXHLYFdNCmB8tyPaNKEmc76kvKzd0bwbqufaUrkt15uWXVDjsNC4kW2b EuLMYcgZVJrNDtoaRhq59TteKzbDPk2LvHdj4yXSUgHlrw/NjH40N+Rwm7Ehc/xckPlk sg2+AM3VhTvvwrnLzikqIoaKB9toYBoztLuwUQg7XnfFUHwlH3BPOu/0DBEjezaCg+HI kzwgu2PfEZ3LWHzqFq8urxd5tqZ7D4TpA9bWLiSK15hqKa3L3EiiRE1IPp05/cYvFKgz dmXprZhygahEdqr2glUjL15pccqh6Aq5IrcZqMmv9QIsSBp/MIy/831dWp1uLjfn0g/I EJnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu21si1791607edb.78.2020.11.05.10.01.35; Thu, 05 Nov 2020 10:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727836AbgKESBZ (ORCPT + 7 others); Thu, 5 Nov 2020 13:01:25 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2058 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbgKESBY (ORCPT ); Thu, 5 Nov 2020 13:01:24 -0500 Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4CRrRK75P1z67Htg; Fri, 6 Nov 2020 01:41:17 +0800 (CST) Received: from lhreml715-chm.china.huawei.com (10.201.108.66) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 5 Nov 2020 18:42:33 +0100 Received: from DESKTOP-6T4S3DQ.china.huawei.com (10.47.87.221) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 5 Nov 2020 17:42:32 +0000 From: Shiju Jose To: , , , , , , , , CC: , , Subject: [RFC PATCH 0/4] EDAC/ghes: Add EDAC device for recording the CPU error count Date: Thu, 5 Nov 2020 17:42:29 +0000 Message-ID: <20201105174233.1146-1-shiju.jose@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.47.87.221] X-ClientProxiedBy: lhreml745-chm.china.huawei.com (10.201.108.195) To lhreml715-chm.china.huawei.com (10.201.108.66) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org For the firmware-first error handling on ARM64 hardware platforms, CPU cache corrected error count is not recorded. Create an CPU EDAC device and device blocks for the CPU caches for this purpose. The EDAC device blocks are created based on the CPU caches information represented in the ACPI PPTT. User-space application could monitor the recorded corrected error count for the early fault detection. Jonathan Cameron (1): ACPI: PPTT: Fix for a high level cache node detected in the low level Shiju Jose (3): ACPI: PPTT: Add function acpi_find_cache_info EDAC/ghes: Add EDAC device for the CPU caches ACPI / APEI: Add reporting ARM64 CPU cache corrected error count drivers/acpi/apei/ghes.c | 79 +++++++++++++++++++++- drivers/acpi/pptt.c | 123 +++++++++++++++++++++++++++++++++- drivers/edac/Kconfig | 10 +++ drivers/edac/ghes_edac.c | 135 ++++++++++++++++++++++++++++++++++++++ include/acpi/ghes.h | 27 ++++++++ include/linux/cacheinfo.h | 12 ++++ include/linux/cper.h | 4 ++ 7 files changed, 386 insertions(+), 4 deletions(-) -- 2.17.1