From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C24E1C433E0 for ; Thu, 7 Jan 2021 10:40:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6422F2312F for ; Thu, 7 Jan 2021 10:40:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6422F2312F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=//SnMnFQra/jBnFec26pkEuFCkHAy6kWqDLHQt68Cx8=; b=LuqHG2/HcijawEDKD33M/51cyR BkiCQOj/MDLc116j4e0tcavpgByBQ1bQ/cl0SQXWLRr5RpbBegKCVwup+UzCH+0Vf4+KFlN1uAuA7 bOEd/YTcK991NDwvF7QTPzvpy9Cz6SvoybrzYeEnYQPbhdEIu8Gf4gUMK2q+qBEjqrjzmQR2AoRIc bvFL7J4zrVt+GAzS0KFvnsVpIy+nTxK8aytbmi1UI4/XuIU3fy1PE6smfAiWaw2SYJTYLfjv9MwLv rQ2uEFJZBqNvnnDazW1HjzCa5fjoCucV+aFXMd8vd2guWtSLcFDHZN4EwJqkCz5obilCCToDlCUY3 DBQOF9Fg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxSgb-00044u-Pz; Thu, 07 Jan 2021 10:38:33 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxSga-00044L-Es for linux-arm-kernel@lists.infradead.org; Thu, 07 Jan 2021 10:38:33 +0000 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxSgQ-0000bO-Jw; Thu, 07 Jan 2021 11:38:22 +0100 Received: from sha by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kxSgO-000766-Fm; Thu, 07 Jan 2021 11:38:20 +0100 From: Sascha Hauer To: linux-edac@vger.kernel.org Subject: [PATCH v3 0/1] Add L1 and L2 error detection for A53 and A57 Date: Thu, 7 Jan 2021 11:38:18 +0100 Message-Id: <20210107103819.13552-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210107_053832_521670_7B5FB368 X-CRM114-Status: GOOD ( 18.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tony Luck , Sascha Hauer , Rob Herring , Robert Richter , James Morse , kernel@pengutronix.de, Borislav Petkov , York Sun , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, It's been a while since I last sent this, so here's an update. Like Rob suggested I dropped using a virtual device tree node to attach the driver to, so from the original three patches series is only one patch left now. I think I have integrated all review feedback I got last time, please have a look. One thing that I find unfortunate in the driver is that I have to register the "cpu" hierarchy under edac for all CPUs. Only the CPUs supported by this driver actually count anything. On JUNO for example we have four cortex-a53 cores (which are supported by this driver) and four cortex-a72 cores (which are not supported). Nevertheless we create the directory hierarchy for all eight cores. I don't know how I should work around this, but maybe James has an idea. As usual, feedback welcome. Sascha Changes since v2: - drop usage of virtual dt node (Robh) - use read_sysreg_s instead of open coded variant (James Morse) - separate error retrieving from error reporting - use smp_call_function_single rather than smp_call_function_single_async - make driver single instance and register all 'cpu' hierarchy up front once Changes since v1: - Split dt-binding into separate patch - Sort local function variables in reverse-xmas tree order - drop unnecessary comparison and make variable bool Sascha Hauer (1): drivers/edac: Add L1 and L2 error detection for A53 and A57 drivers/edac/Kconfig | 6 + drivers/edac/Makefile | 1 + drivers/edac/cortex_arm64_l1_l2.c | 218 ++++++++++++++++++++++++++++++ 3 files changed, 225 insertions(+) create mode 100644 drivers/edac/cortex_arm64_l1_l2.c -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel