[PATCH v2 0/4] Add EDAC driver for QCOM SoCs

From: Venkata Narendra Kumar Gutta
Date: Fri Aug 17 2018 - 20:08:57 EST

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. This driver also takes care of dumping registers
and also adding config options to enable and disable panic when these
errors happen in LLCC.

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 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
drivers: soc: Add support to register LLCC EDAC driver
dt-bindigs: msm: Update documentation of qcom,llcc

.../devicetree/bindings/arm/msm/qcom,llcc.txt | 15 +-
drivers/edac/Kconfig | 28 ++
drivers/edac/Makefile | 1 +
drivers/edac/qcom_edac.c | 446 +++++++++++++++++++++
drivers/soc/qcom/llcc-slice.c | 73 ++--
include/linux/soc/qcom/llcc-qcom.h | 31 +-
7 files changed, 575 insertions(+), 27 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