Message ID | 20230202181846.692-1-shiju.jose@huawei.com |
---|---|
Headers | show
Return-Path: <linux-cxl-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7159C636D4 for <linux-cxl@archiver.kernel.org>; Thu, 2 Feb 2023 18:18:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232297AbjBBSSy (ORCPT <rfc822;linux-cxl@archiver.kernel.org>); Thu, 2 Feb 2023 13:18:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231510AbjBBSSx (ORCPT <rfc822;linux-cxl@vger.kernel.org>); Thu, 2 Feb 2023 13:18:53 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C79A60CBD; Thu, 2 Feb 2023 10:18:52 -0800 (PST) Received: from lhrpeml500006.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4P76Pj2Rdpz688J2; Fri, 3 Feb 2023 02:14:33 +0800 (CST) Received: from P_UKIT01-A7bmah.china.huawei.com (10.48.151.167) by lhrpeml500006.china.huawei.com (7.191.161.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 2 Feb 2023 18:18:50 +0000 From: <shiju.jose@huawei.com> To: <mchehab@kernel.org>, <linux-edac@vger.kernel.org>, <linux-cxl@vger.kernel.org> CC: <jonathan.cameron@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com> Subject: [RESEND PATCH V3 0/4] rasdaemon: Add support for the CXL error events Date: Thu, 2 Feb 2023 18:18:42 +0000 Message-ID: <20230202181846.692-1-shiju.jose@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.48.151.167] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500006.china.huawei.com (7.191.161.198) X-CFilter-Loop: Reflected Precedence: bulk List-ID: <linux-cxl.vger.kernel.org> X-Mailing-List: linux-cxl@vger.kernel.org |
Series |
rasdaemon: Add support for the CXL error events
|
expand
|
From: Shiju Jose <shiju.jose@huawei.com> Log and record the following CXL errors reported through the kernel trace events. CXL poison errors, CXL AER uncorrectable errors and CXL AER correctable errors. Note1: This V3 patch set resend due to email delivery issues to some of the recipients. Note2: The default poll and read method in the rasdaemon to receive the trace events do not work due to a commit in the kernel trace system. Thus instead used the pthread way for testing the CXL error events. To do so, please make following change in the ras-events.c <change start ...> /* rc = read_ras_event_all_cpus(data, cpus); */ rc = -255; < ...change end > /* Poll doesn't work on this kernel. Fallback to pthread way */ if (rc == -255) { ... Shiju Jose (4): rasdaemon: Move definition for BIT and BIT_ULL to a common file rasdaemon: Add support for the CXL poison events rasdaemon: Add support for the CXL AER uncorrectable errors rasdaemon: Add support for the CXL AER correctable errors Changes: RFC V2 -> V3 1. Fix for the comments from Dave Jiang. RFC V1 -> V2 1. Rename uuid to region_uuid in the log and SQLite DB. 2. Rebase to the latest rasdaemon code. 3. Modify to match the name changes of interface structures and functions in the latest libtraceevent-dev, use in the rasdaemon. Makefile.am | 7 +- configure.ac | 11 ++ ras-cxl-handler.c | 378 +++++++++++++++++++++++++++++++++++++ ras-cxl-handler.h | 32 ++++ ras-events.c | 33 ++++ ras-events.h | 3 + ras-non-standard-handler.h | 3 - ras-record.c | 203 ++++++++++++++++++++ ras-record.h | 49 +++++ ras-report.c | 219 +++++++++++++++++++++ ras-report.h | 6 + 11 files changed, 940 insertions(+), 4 deletions(-) create mode 100644 ras-cxl-handler.c create mode 100644 ras-cxl-handler.h