Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp117390imm; Tue, 28 Aug 2018 17:43:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbQyjawtJCLoEG8K6wT8bv7n40L0QwxCV+55sQ+Psmun8kpEOgkBfj4aCaTWJlnuxItzgG2 X-Received: by 2002:a62:455b:: with SMTP id s88-v6mr3511043pfa.203.1535503438403; Tue, 28 Aug 2018 17:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535503438; cv=none; d=google.com; s=arc-20160816; b=yrZluLWKdvknkOderRcTt0s34vuXjhFjE7iwIJnP83mamVKht3bisZld37FfJpJqo4 mKgK0SHwL2rPdDnuUEWjKBuCkRB+xFdG+teT99uUKyOhQ4LmSrhJbqkbZ8guJ/iBpNwE NYDYH1Mb8lUF9tvVi8iGD8WVRqJQC9/LyKQHFGYJGURNFhqCuFF8u5GoH1eRLcgMdoNe 2ArxZsuLfPLs3PFuqJ+mOu0cAmORV8w9uv67mZI/zzynR13MN+u5RoHXexbIvOERXiLI GGq/p6WD2+BOLR6BXTlFrafUlVQ8bdB8AungGxjQQnNcsFBBP3I7w8sUh1T2wp9LHigu NsSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=8TA6oZsDZwIm1wp1d+WETsTWpksb0jo4C0+G5fTeC3U=; b=WdnLcYUvkzHNOsBA9yMW0ks/5SMVR5BIj330edsOn1R3ntOt685y1YlEwEGV7T3T+a 2sajQc4IGMtQ2uUGvyhHhIbvMD/YbFKyaF4K75yfR0sapMVl38oQMGk1zHf/Cos1h6ov 8/ztpXusSNJwRfeyri+G1xGqQDo5LLiVsRNPfhrdYMQdJK5gG44sOIj7drLI5Z8o7miF pWreokOlelrtR4M15UAOyujGO3ILnphEpOdivaStrGPgi2CXwOG4X52vSRb07ZfQ9dZI 5omV5UKzx5JSlNuKR2afPHtHzgcnxS/k996EYFiOY4OPmyUtvSbW8qXlisnptRUowHc3 M7lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="feLz/HxJ"; dkim=pass header.i=@codeaurora.org header.s=default header.b=pP+QaeUm; 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 31-v6si2289292plg.260.2018.08.28.17.43.43; Tue, 28 Aug 2018 17:43:58 -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=@codeaurora.org header.s=default header.b="feLz/HxJ"; dkim=pass header.i=@codeaurora.org header.s=default header.b=pP+QaeUm; 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 S1727484AbeH2Egn (ORCPT + 99 others); Wed, 29 Aug 2018 00:36:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48582 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbeH2Egn (ORCPT ); Wed, 29 Aug 2018 00:36:43 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 02D1160541; Wed, 29 Aug 2018 00:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535503350; bh=x8WoYf+yEqUKTbbexOrFbUI6Hm3hhpOye7orxdSD9P0=; h=From:To:Subject:Date:From; b=feLz/HxJyMQhC/68tJdNkrTm6/1T3SH6b6HYQA4cj+7LILyQ1chJa05/ckE4B2tiq myf5qp0kR6iV7rB8deu3JMHhD7acIrgRwegbK6XsQ+woFKjq8tuOP6wsSM7cDjkjD6 ajzw/M6plwBA+bxK0+bDGin6QPN2kU7JrKKvH9CA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from vgutta-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vnkgutta@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CBCA960242; Wed, 29 Aug 2018 00:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535503348; bh=x8WoYf+yEqUKTbbexOrFbUI6Hm3hhpOye7orxdSD9P0=; h=From:To:Subject:Date:From; b=pP+QaeUm8dU8C2Mndxdc1ptPp0S3x4B9n7EcHoYevOBxW/U9BiAJDr1zEwS/6/ST9 Z5Gq5hPjg+6A7IdCg8Icb2ERsMNHX5kOFpXe6YZpx8nW8WrOJthOTe5P61Mpy0EBiz f1xSLWHXRaQMhJXKbjwbhcw8yz93Hl01/Jrr9Fbs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CBCA960242 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vnkgutta@codeaurora.org From: Venkata Narendra Kumar Gutta To: evgreen@chromium.org, robh@kernel.org, mchehab@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, tsoni@codeaurora.org, ckadabi@codeaurora.org, rishabhb@codeaurora.org, bp@alien8.de, swboyd@chromium.org Subject: [PATCH v3 0/4] Add EDAC driver for QCOM SoCs Date: Tue, 28 Aug 2018 17:42:23 -0700 Message-Id: <1535503347-20507-1-git-send-email-vnkgutta@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series implements EDAC driver for QCOM SoCs. As of now, this driver supports EDAC for Last Level Cache Controller (LLCC). LLCC EDAC driver is to detect and report single and double bit errors on Last Level Cache Controller (LLCC) cache. Interrupts are triggered when the errors happen in the cache, the driver handles those interrupts and dumps the syndrome registers. The driver functionality is implemented in: qcom_edac.c : This platform driver registers to edac framework and handles the single and double bit errors in cache by registering interrupt handlers. llcc-slice.c: It invokes the llcc edac driver and passes platform data to it. This patchset depends on the LLCC driver, which is part of 4.19 release. Link: https://patchwork.kernel.org/patch/10422531/ Link: http://lists-archives.com/linux-kernel/29157082-dt-bindings-documentation-for-qcom-llcc.html Patch wise description given below: Patch 1 adds the broadcast base regmap for broadcast writes in llcc. Patch 2 adds the required changes to register edac driver from llcc driver. Patch 3 adds the EDAC driver support for QCOM SoCS. Patch 4 updates the dt bindings of llcc. Changes since v2: * Modified the edac driver and Kconfig - removed unnecessary header files, typecasting and redundant comments. - Changed the initialization of reg_data datastructure to static, Also updated the llcc_edac_reg_data member names and datatypes. - Removed "EDAC_QCOM_LLCC_PANIC_ON_UE" Kconfig variable Changes since v1: * Modified the edac driver - Removed duplicate functions that are used to dump the syndrome registers, replaced that with a common function and a reg_data datastructure. - Removed structure containing function pointers. - Addressed comments on error handling to clear the interrupt status. * updated Kconfig Changes since v0: * Added EDAC_QCOM config and updated the driver * Addressed comments related to indentation and other minor ones Channagoud Kadabi (1): drivers: edac: Add EDAC driver support for QCOM SoCs Venkata Narendra Kumar Gutta (3): drivers: soc: Add broadcast base for Last Level Cache Controller (LLCC) drivers: soc: Add support to register LLCC EDAC driver dt-bindings: msm: Update documentation of qcom,llcc .../devicetree/bindings/arm/msm/qcom,llcc.txt | 19 +- MAINTAINERS | 8 + drivers/edac/Kconfig | 22 ++ drivers/edac/Makefile | 1 + drivers/edac/qcom_edac.c | 421 +++++++++++++++++++++ drivers/soc/qcom/llcc-slice.c | 73 ++-- include/linux/soc/qcom/llcc-qcom.h | 30 +- 7 files changed, 546 insertions(+), 28 deletions(-) create mode 100644 drivers/edac/qcom_edac.c -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project