Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1471719ybl; Thu, 5 Dec 2019 01:53:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw3rtoGzAc1oft3yngrR2pUuGElFbfe1y9dS0UxeTVt8xvsWjWTR2hKv4wGXrWWRfgxbGxS X-Received: by 2002:aca:cdca:: with SMTP id d193mr684888oig.152.1575539637252; Thu, 05 Dec 2019 01:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575539637; cv=none; d=google.com; s=arc-20160816; b=bSo3r94ZKAzGP3rwoj6Xjxq0d113TbYOGzc9oU2Xw65JXabONrChiLCKEcTL//ECL8 woqWOBW8vFYhtyRDfUHTGQpD/9ule+9XOZ/Ekux3mQmS0RQuaEtqN8jmjLv+22cgywkP SNy4oRrSFvk+eOcTyKC+cvaiMaYvRbwVtTr+4qefYqDzjvBG2sUiE4tXhhOxrjZIs+AQ GVOOTqr6SHpkhKpm9z2dYwFoTNPxyMPI53vipRbgvTpE3x6bPUGvI2kWipLFsuIMLrpb 73F6RNj+TIwPCqfL21FEK3O+0Dn+CBIvxTZ+G6Z1NtHrseNaIyVac5FVEM90QX3242en jiHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:dkim-signature:dkim-signature; bh=xKuTvAXTmXEOQMXPmGEIYEFP82PMWcyZtfzlsYVOGVA=; b=YmaIV7Bul0azh71w2RTmt5/dMiWcnAcHxNIHAeynqHPsEIz751OvZidAmK6bQ88km1 pEFugPJ1lbHc8uFoCuxraUBEQpHLSy/Yj9bjjxfUHINEY6hOyq4HXFftrDL9cNACVUHE y9vKnQ8aOEVcb3SCARud3REwx27p06Vo42Ty/U2it2XQs74HpRVIk3vl3cT8r55nhk6O fpO6vd+toMW1F+Iyfc59njfZFoVJLsHXF5VloRIDsBviE5yNx/9oMKlLU37tdFZBwdoA WGpe7hHrqdtmySRvyocXyOpWr/2+XtQhQYroKjb7wycIeHy9PGokKdB0oxtfsU9rgYMX 3IuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=GFlGfJI5; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=B9FgIw6n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u190si4580768oie.117.2019.12.05.01.53.45; Thu, 05 Dec 2019 01:53:57 -0800 (PST) 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=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=GFlGfJI5; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=B9FgIw6n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729159AbfLEJxH (ORCPT + 99 others); Thu, 5 Dec 2019 04:53:07 -0500 Received: from a27-185.smtp-out.us-west-2.amazonses.com ([54.240.27.185]:33132 "EHLO a27-185.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfLEJxG (ORCPT ); Thu, 5 Dec 2019 04:53:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1575539585; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=Ce3K11ERWLy+EF9gQF7x6AErPgl+OIA/TJqM7S8904Q=; b=GFlGfJI5//kYwgHawj4P6rt7n0Dz6aIiFCznYNyTXCRNF+Squz+mOnrMvG0AyJge tliMd7qeKh6we9Uu63YxnuFJgBjyIQ3ksEGEE6p7+tRmQTQtWArxBwj5osVw6qSeNKo eo6AdEyUpcIFcyO1pwazO+XtEhx6JaXOCAoCi604= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1575539585; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Feedback-ID; bh=Ce3K11ERWLy+EF9gQF7x6AErPgl+OIA/TJqM7S8904Q=; b=B9FgIw6n6jdfkwrdR1o/6xJBvwtudhA5eI9PlmwPpIkh09Bsyg0V1JnCHCqHO/c6 fSHj3XBbi+x6/hM3ciMQ74doU7Iy7C9DeBKMPAWbmZuMP6fOcqjK+SJekdJTYPbRv9R GS7Kh1EAU6G17n0IX+knDzUTb7bGJCNuomMA8pGo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A4863C447B4 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org From: Sai Prakash Ranjan To: Andy Gross , Bjorn Andersson , Mark Rutland , Rob Herring , devicetree@vger.kernel.org, Borislav Petkov , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , linux-edac@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stephen Boyd , Evan Green , tsoni@codeaurora.org, psodagud@codeaurora.org, Sai Prakash Ranjan Subject: [PATCH 1/2] dt-bindings: edac: Add DT bindings for Kryo EDAC Date: Thu, 5 Dec 2019 09:53:05 +0000 Message-ID: <0101016ed57a3259-eee09e9e-e99a-40f1-ab1c-63e58a42615c-000000@us-west-2.amazonses.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SES-Outgoing: 2019.12.05-54.240.27.185 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds DT bindings for Kryo EDAC implemented with RAS extensions on KRYO{3,4}XX CPU cores for reporting of cache errors. Signed-off-by: Sai Prakash Ranjan --- .../bindings/edac/qcom-kryo-edac.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/qcom-kryo-edac.yaml diff --git a/Documentation/devicetree/bindings/edac/qcom-kryo-edac.yaml b/Documentation/devicetree/bindings/edac/qcom-kryo-edac.yaml new file mode 100644 index 000000000000..1a39429a73b4 --- /dev/null +++ b/Documentation/devicetree/bindings/edac/qcom-kryo-edac.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/edac/qcom-kryo-edac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kryo Error Detection and Correction(EDAC) + +maintainers: + - Sai Prakash Ranjan + +description: | + Kryo EDAC is defined to describe on-chip error detection and correction + for the Kryo CPU cores which implement RAS extensions. It will report + all Single Bit Errors and Double Bit Errors found in L1/L2 caches in + in two registers ERXSTATUS_EL1 and ERXMISC0_EL1. L3-SCU cache errors + are reported in ERR1STATUS and ERR1MISC0 registers. + ERXSTATUS_EL1 - Selected Error Record Primary Status Register, EL1 + ERXMISC0_EL1 - Selected Error Record Miscellaneous Register 0, EL1 + ERR1STATUS - Error Record Primary Status Register + ERR1MISC0 - Error Record Miscellaneous Register 0 + Current implementation of Kryo ECC(Error Correcting Code) mechanism is + based on interrupts. + +properties: + compatible: + enum: + - qcom,kryo-edac + + interrupts: + minItems: 1 + maxItems: 4 + items: + - description: l1-l2 cache faultirq interrupt + - description: l1-l2 cache errirq interrupt + - description: l3-scu cache errirq interrupt + - description: l3-scu cache faultirq interrupt + + interrupt-names: + minItems: 1 + maxItems: 4 + items: + - const: l1-l2-faultirq + - const: l1-l2-errirq + - const: l3-scu-errirq + - const: l3-scu-faultirq + +required: + - compatible + - interrupts + - interrupt-names + +examples: + - | + #include + + kryo_edac { + compatible = "qcom,kryo-edac"; + interrupts = , + , + , + ; + interrupt-names = "l1-l2-faultirq", + "l1-l2-errirq", + "l3-scu-errirq", + "l3-scu-faultirq"; + }; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation