From patchwork Tue Dec 8 17:29:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 339756 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3885110jai; Tue, 8 Dec 2020 09:32:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJFNqX3oDjGPmOcK8L6lUW7bSmOE+orTbcwbYheqnxXQF8RIm6OrFR5f4zaT5ZBmbA5AMe X-Received: by 2002:a17:906:82ce:: with SMTP id a14mr24269459ejy.421.1607448755025; Tue, 08 Dec 2020 09:32:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607448755; cv=none; d=google.com; s=arc-20160816; b=MOGJITMLt6+ynO0IkVma/6ciFUigl25DrhSzAE0w2WucYOu9S1lAwWVCRLgC3pExAq rZkOMfQtgIB+ipNZU+kWnfnM5tvlMM+1CylOKelkDNL2D2DGIIs7oVJv540qJ5S43+1M es8UggX68ujOAvZGfIbTdK6xi82Y6FcQQ9SlBYP+6cIpbBgevGqfLyB4GlidznbN3R9r hkXoBxnqk0bn4A8X3k9SDnaXUMqPeVuCuBfS/MJq9OZRW8qXQfpnQW+DDDuwkreHDhH9 VsUWnoggyY123Iu3vu0EmATA/R2Disa933/zBysuq/6b70dVSw4cWyLI1oDSBb4YZlfN Z8lw== 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=Dh2P8E/z1JtWyJFT3ZTcFnvTAVa669FQBvpdgZz7fVM=; b=02QsbKwlinrsJNtFkoS4+KGl+sMd8I6n1wm/VY72jXLtAbYqyNxqQdOO2O1uYPIgx+ LYvFppGhxuVQNuApsV4Hh7qozAnKpvVKoGcvmtcRDySYAjx3lj5jnep5L5DeUTx0Frjd Y78HdHCfsG5SM6N9W9oNoZAGRV6kXfjoW8hAQVCPTN6WI4SGLpx5B9yIBBmh6iOg0zUr Hb61htKeORS3f9V9yRCjVffMN+dh2h7bPJQHQav3KWaWCr7IAOlbo3U975vb2DSHviiQ 13JIYM7FnFNGVVR1sWKgR0aSQReT46XLOv7EeFZ2Qd8IlBQqi8QHuoxX+QXGiTlHQh2o Xg7A== 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 z22si8483325ejo.390.2020.12.08.09.32.34; Tue, 08 Dec 2020 09:32: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 S1728495AbgLHRbH (ORCPT + 5 others); Tue, 8 Dec 2020 12:31:07 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2222 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbgLHRbG (ORCPT ); Tue, 8 Dec 2020 12:31:06 -0500 Received: from fraeml737-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Cr6b76KMnz67NwN; Wed, 9 Dec 2020 01:28:19 +0800 (CST) Received: from lhreml715-chm.china.huawei.com (10.201.108.66) by fraeml737-chm.china.huawei.com (10.206.15.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 8 Dec 2020 18:30:24 +0100 Received: from DESKTOP-6T4S3DQ.china.huawei.com (10.47.26.232) 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.2106.2; Tue, 8 Dec 2020 17:30:23 +0000 From: Shiju Jose To: , , , , , , , , , CC: , , , , , , , Subject: [RFC PATCH 0/2] EDAC/ghes: Add EDAC device for recording the CPU error count Date: Tue, 8 Dec 2020 17:29:57 +0000 Message-ID: <20201208172959.1249-1-shiju.jose@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.47.26.232] X-ClientProxiedBy: lhreml713-chm.china.huawei.com (10.201.108.64) 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 cache information from the cpu_cacheinfo. User-space application could monitor the recorded corrected error count for the predictive failure analysis. More information in the patch headers. Shiju Jose (2): EDAC/ghes: Add EDAC device for the CPU caches ACPI / APEI: Add reporting ARM64 CPU cache corrected error count Documentation/ABI/testing/sysfs-devices-edac | 15 ++ drivers/acpi/apei/ghes.c | 76 ++++++++- drivers/edac/Kconfig | 10 ++ drivers/edac/ghes_edac.c | 171 +++++++++++++++++++ include/acpi/ghes.h | 27 +++ include/linux/cper.h | 4 + 6 files changed, 299 insertions(+), 4 deletions(-) -- 2.17.1