Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp678494pxb; Thu, 5 Nov 2020 10:03:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoNEnMEM93B4JoPpHMMl6b3W4l1Qa0pvUmI29uJxjne/2r6WvxCXqKFuRDLmBKVGK3nzPQ X-Received: by 2002:a17:906:680c:: with SMTP id k12mr3709449ejr.368.1604599394036; Thu, 05 Nov 2020 10:03:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604599394; cv=none; d=google.com; s=arc-20160816; b=YB3k4FJf09ugEntvzNvRvG8DmAkBnUj6FSUvid2TqAYhVS8CpKBLbsUiUux6xfnNz2 wDTjdlOvDTpjO49H96lHDk3l1tbolUD8w2pDmNWRDcyHmwK6sv8ZUKkr3b3OrY3pZR+K uJa10wzvOSE1PAKZ0AtHDFVKvlHs8CxK+ylH0RgW5HLymCWqKu93tMxfv8lBfPwSvAz5 pAF5UMr1RTDPpBa19K3j1ZSad8nYtIN2hKxdaxdSHs515yg2hiB0G63eeshtU3goXnsU TQnrCSU1tb+9emDSemAQq7M/h2OqxUOGz38UbgQ1Ljf4kckxt8B3arDRyCfgpRaBHtye J52Q== 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=ahb1hajEXmf42TyulIP15VZ3UikAswPjkkUxthUZ516hcLzfIutf4/pRXWobSn9dnz GPWeEyf9QnGiTV4Cj7rGZH52758eK2NilpczAGwM0wtyml+17e+yo49dZhFrbKSnKnoo 6JSnUP/7uX5x4rOZocqYjzdIIWR4t4wKPratOvy/xwt/bbYGR33t75DE4tPUttpAq7Sx s4OzU6REAkpspuC++FIuw5uwUaJXM8LhQiGPF8TGN8OCe4AVX4pVUqMKKxgrv81FByPA Tf1J287YU3YHIyAzIRFWKCHNgvl9A3+l/jppYCqYn2/3P4ykmpSn+6iEAfcpF0sfDr5R FRnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 bd20si1685988edb.98.2020.11.05.10.02.48; Thu, 05 Nov 2020 10:03:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731453AbgKESBZ (ORCPT + 99 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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-kernel@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