Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5430037ybi; Sun, 7 Jul 2019 05:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTnKxzvtv8CQamikfCKzn4BhvxYQo0lYitQUdzrQEgpeBCAPC0JDC/kHsvv1l0hmTuKjCc X-Received: by 2002:a65:5b4b:: with SMTP id y11mr16001561pgr.244.1562500814360; Sun, 07 Jul 2019 05:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562500814; cv=none; d=google.com; s=arc-20160816; b=Pesvzvrcc5OhuDfCHH8lcSRcn5RG8DkubbsX3ypoQGtUx8aDCm5/Tmf3HRadcCm7Q+ G/OyQSmHqH3VzLuLnQ1WqEpL57pJkSu/i+/SKRZIHp0Vhb63jvNtAA0RDRlyyY3ryjGv +5BjPxlan2vnhZivm+GI7dbpAcijMApkxTw811Rgby6J6pSSgaJyGRiHsHSX+anBlRIg 3HSFGRmEZ+CZSEneGfeWKee+xAJE2vg/5AgJNCXD59IJbvcK6XaT4TgX2ieAib2azaL1 IqN3l3rMbX5FJhM4a71Qh/s/g1oUvLGZlKnXdGfpPoDk38094vhdbjjQTasACwXf2g7U oz8w== 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=AzRAD81nU2MwlCqn0AU1evNVTd1zGcE1O6MmxMHhUbc=; b=LVzRacRK14ERP4C2mL6JyDgyAFblHwtk6Jr503ThuHvWkvvX1ipDl6gkwX+jCrpaZP b9HF4bW9N92JqZZ+Ta/NE/VyG6kqlbYYGhnlFv0Z95DBbFA7X5CTSu3/gYAyfIj1MYp8 g5f/uFx9u/n6bGa8GAckoIW8DufNiLGFUu0pJ3+qMkG550UOWV89tY8IVxDgRur1X9sg WHNIXxf1HrPbIKku8JNY+GUQwjMTI0mbjm9sh+54xf1uJsMy1RYM3CO2ueIsHFzhMLcX tz+euS6YG0XxYFJV/2FWp5LKSLkmcPn6gi/WXNqAtSJi56qtxLm+RZw2eu7NxKNra3ts plLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=GFC9qHny; 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 k1si14655514pgh.69.2019.07.07.04.59.59; Sun, 07 Jul 2019 05:00:14 -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=GFC9qHny; 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 S1726660AbfGGL6V (ORCPT + 99 others); Sun, 7 Jul 2019 07:58:21 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:4688 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfGGL6V (ORCPT ); Sun, 7 Jul 2019 07:58:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1562500698; x=1594036698; h=from:to:cc:subject:date:message-id:mime-version; bh=AzRAD81nU2MwlCqn0AU1evNVTd1zGcE1O6MmxMHhUbc=; b=GFC9qHnyD7oytVt8NNIq0OZ9KzASQKyzbCEPBow8lcxylNWJIZRR3+Lg ydYRouHrvTGm6Lbw9CMjyJGhB0y/SmepzuPpEti5Gl+ddNO1vMfp27bB3 q8ecW/Bv7QOpOJP2mghfnk4pDZ9VH5kyjyjfJSbIkSEaCGb/JKFqyWQSY c=; X-IronPort-AV: E=Sophos;i="5.62,462,1554768000"; d="scan'208";a="773526810" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 07 Jul 2019 11:58:15 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com (Postfix) with ESMTPS id D2DE8A230C; Sun, 7 Jul 2019 11:58:15 +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; Sun, 7 Jul 2019 11:58:15 +0000 Received: from ub6d44c9ce3e25c.ant.amazon.com (10.43.161.16) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 7 Jul 2019 11:58:06 +0000 From: Hanna Hawa To: , , , , , , , , , , CC: , , , , , , , , , Subject: [PATCH v2 0/4] Add support for Amazon's Annapurna Labs EDAC for L1/L2 Date: Sun, 7 Jul 2019 14:57:34 +0300 Message-ID: <1562500658-14717-1-git-send-email-hhhawa@amazon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.16] X-ClientProxiedBy: EX13D12UWC004.ant.amazon.com (10.43.162.182) 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 support L1 and L2 single bit correction and two bits detection capability based on ARM implementation. 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 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 .../devicetree/bindings/edac/amazon,al-l1-edac.txt | 14 ++ .../devicetree/bindings/edac/amazon,al-l2-edac.txt | 20 +++ MAINTAINERS | 12 ++ drivers/edac/Kconfig | 16 ++ drivers/edac/Makefile | 2 + drivers/edac/al_l1_edac.c | 154 +++++++++++++++++ drivers/edac/al_l2_edac.c | 185 +++++++++++++++++++++ 7 files changed, 403 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.7.4