Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7400819ybi; Thu, 1 Aug 2019 07:39:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMw2WoKWaAgaD8uPZ/qE98Ta4Vzs44dExZu2XWfToNEQhP9o+2UcG76xXAhucK4N+dKG7B X-Received: by 2002:a17:90b:d8a:: with SMTP id bg10mr9124720pjb.92.1564670348646; Thu, 01 Aug 2019 07:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564670348; cv=none; d=google.com; s=arc-20160816; b=UKWraYoL07FvM6RXai7Z/CgJ/z2pjdv5zejnuBgbKnijMNSHlLUyY0+1NNZMJyft8V Bd/MdBGY0hvOujtDkEusDHgNF+HquUL1HsmKAuzhy9KNivklVePCRBxN4ubRYQDNK3VL 4+BPiaNIWW9fX8taYQCwuWroOiC64Wdl4V+zsZSacEv2hhERu71HqJQH5dMDHcfi8TuT z1uE0PVL6MjMksP0EQYx+n+eBa2c+WzqfU3F0ntC25ifgwejlSoEIjaZFH4bu3hHFnTW diKu0/Ue0IHsK/2KW6NjtuPGEvhn5mpDsIjCWwsdLVQn69HReRaiHypRMMxP8iBobH2g 2DwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Jbmbojz2/TychDJudnHb5FLoVy68HPFk3gyystNOymg=; b=Ny6fht3FbYR2F4Y5I9NQOeHR3KsE48vg1x/dJm6vo1kdk4E8n2EYixbrsqs4lhYl03 IX5HG9ox8eTQcbxp39zXYpwOLpbDUEYwpnPtaMRxzQIY8AwVBtcTCioPVOS/DkcVweVi CjScTpYw/GiMy8kGvzUvHQ44cp0cCF1krYw0/1C+7bgU8KuGA7AWPkJE1tAdJPoWWslt LoIAxQDmCL/qbKTf2wXlXiz4yVo1vudxk69f9TH1z66OpCGS3ODJ3d2VzXsZFy1IE2rB YcQALgB4rtHdkmvZakHPy44q603LaBH1+KLFxizH+UxNfOQU51K5LiGFY0zGOeOCkC3z 5tOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IL+igxJQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si4100956pju.48.2019.08.01.07.38.52; Thu, 01 Aug 2019 07:39:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IL+igxJQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731604AbfHANK1 (ORCPT + 99 others); Thu, 1 Aug 2019 09:10:27 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:10573 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731449AbfHANK0 (ORCPT ); Thu, 1 Aug 2019 09:10:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1564665026; x=1596201026; h=from:to:cc:subject:date:message-id:mime-version; bh=Jbmbojz2/TychDJudnHb5FLoVy68HPFk3gyystNOymg=; b=IL+igxJQX9rmQrMXxEsW7CA1z8VPukyqADhANDOGGmF/ygLHJTaQj+Pq GXk/+LIhI8wKg0OyZ01LjpTIvs/CSSyDaY9tEBXADuIlEz8HGO4glnHjA yHrEDdGgT8hh22m0QReU42slZfnzBTZFqxyfWvm33yEM1wGHe4HXlM4Ln U=; X-IronPort-AV: E=Sophos;i="5.64,334,1559520000"; d="scan'208";a="407626797" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-6f38efd9.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 01 Aug 2019 13:10:22 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2c-6f38efd9.us-west-2.amazon.com (Postfix) with ESMTPS id F1B14A27A3; Thu, 1 Aug 2019 13:10:21 +0000 (UTC) Received: from EX13D19EUB003.ant.amazon.com (10.43.166.69) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 1 Aug 2019 13:10:20 +0000 Received: from ua9e4f3715fbc5f.ant.amazon.com (10.43.161.219) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 1 Aug 2019 13:10:10 +0000 From: Hanna Hawa To: , , , , , , , , , , CC: , , , , , , , , , Subject: [PATCH v4 0/4] Add support for Amazon's Annapurna Labs EDAC for L1/L2 Date: Thu, 1 Aug 2019 14:09:52 +0100 Message-ID: <20190801130956.26388-1-hhhawa@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.219] X-ClientProxiedBy: EX13D16UWC004.ant.amazon.com (10.43.162.72) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds L1 and L2 caches support for error detection and correction for Amazon's Annapurna Labs SoCs. Alpine SoCs supports L1 and L2 single bit correction and two bits detection capability based on ARM implementation. Changes since v3: ----------------- - Added include for smp.h sysreg.h - Use scnprintf instead of snprintf - Move write_sysreg_s after valid check to minimize the window between read/write. - Use IS_ERR_OR_NULL instead of IS_ERR, because edac_device_alloc_ctl_info may return NULL. Changes since v2: ----------------- - Use BIT for single bit instead of GENMASK - Use BIT_ULL and GENMASK_ULL for 64bit vector - Fix the mod_name/ctrl_name. Changes since v1: ----------------- - Split into two drivers - Get cpu-mask according to l2-cache handler from devicetree - Remove parameter casting - Use GENMASK() in bit mask - Use FIELD_GET() - Update define description PLRU_RAM -> PF_RAM - Use sys_reg() and read_sysreg_s() - Remove all write/read wrappers - Check fatal field to set if the error correctable or not - Remove un-relevant information from error prints. - Update smp_call_function_single() call function to wait - remove usage of get_online_cpus/put_online_cpus - Use on_each_cpu() and smp_call_function_any() instead of loop with for_each_cpu. - use buffer for error prints and pass to edac API - Remove edac_op_state set - Add for loop to report on repeated errors of the same type - Fix error name of the TLB to be L2_TLB as written in ARM TRM - Minor change in Kconfig - Minor changes in commit message *** BLURB HERE *** Hanna Hawa (4): dt-bindings: EDAC: Add Amazon's Annapurna Labs L1 EDAC edac: Add support for Amazon's Annapurna Labs L1 EDAC dt-bindings: EDAC: Add Amazon's Annapurna Labs L2 EDAC edac: Add support for Amazon's Annapurna Labs L2 EDAC .../bindings/edac/amazon,al-l1-edac.txt | 14 ++ .../bindings/edac/amazon,al-l2-edac.txt | 20 ++ MAINTAINERS | 12 ++ drivers/edac/Kconfig | 16 ++ drivers/edac/Makefile | 2 + drivers/edac/al_l1_edac.c | 158 +++++++++++++++ drivers/edac/al_l2_edac.c | 189 ++++++++++++++++++ 7 files changed, 411 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-l1-edac.txt create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-l2-edac.txt create mode 100644 drivers/edac/al_l1_edac.c create mode 100644 drivers/edac/al_l2_edac.c -- 2.17.1