Skip to contentSkip to conversation

EDAC: add EDAC driver for DMC520

PATCH Superseded Shiping Ji 2 participants 3 messages Jan 14, 2020 – Jan 15, 2020

Subsystems (2)

v8 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Shiping Ji

author
#0 lore raw

PATCH v8 2/2 EDAC: add EDAC driver for DMC520

New driver supports error detection and correction on the devices with ARM DMC-520 memory controller.

---
Changes in v8:
- Removed interrupt-config and replaced with an interrupt map where names and masks are predefined
- Only one ISR function is defined, mask is retrieved from the interrupt map
- "dram_ecc_errc" and "dram_ecc_errd" are implemented

---
 MAINTAINERS                |   6 +
 drivers/edac/Kconfig       |   7 +
 drivers/edac/Makefile      |   1 +
 drivers/edac/dmc520_edac.c | 670 +++++++++++++++++++++++++++++++++++++
 4 files changed, 684 insertions(+)
 create mode 100644 drivers/edac/dmc520_edac.c
MAINTAINERS +6 -0
index bd5847e802de..386195a019c6 100644
@@ -5914,6 +5914,12 @@ F:	Documentation/driver-api/edac.rst
 F:	drivers/edac/
 F:	include/linux/edac.h
 
+EDAC-DMC520
+M:	Lei Wang <[email protected]>
+L:	[email protected]
+S:	Supported
+F:	drivers/edac/dmc520_edac.c
+
 EDAC-E752X
 M:	Mark Gross <[email protected]>
 L:	[email protected]
drivers/edac/Kconfig +7 -0
index 37027c298323..7305bd1ec80e 100644
@@ -523,4 +523,11 @@ config EDAC_BLUEFIELD
 	  Support for error detection and correction on the
 	  Mellanox BlueField SoCs.
 
+config EDAC_DMC520
+	tristate "ARM DMC-520 ECC"
+	depends on ARM64
+	help
+	  Support for error detection and correction on the
+	  SoCs with ARM DMC-520 DRAM controller.
+
 endif # EDAC
drivers/edac/Makefile +1 -0
index d77200c9680b..269e15118cea 100644
@@ -87,3 +87,4 @@ obj-$(CONFIG_EDAC_TI)			+= ti_edac.o
 obj-$(CONFIG_EDAC_QCOM)			+= qcom_edac.o
 obj-$(CONFIG_EDAC_ASPEED)		+= aspeed_edac.o
 obj-$(CONFIG_EDAC_BLUEFIELD)		+= bluefield_edac.o
+obj-$(CONFIG_EDAC_DMC520)		+= dmc520_edac.o
drivers/edac/dmc520_edac.c new file +670 -0

670 lines not on this page · raw message

Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 5 lines · Shiping Ji

New driver supports error detection and correction on the devices with ARM DMC-520 memory controller.

I don't think you've understood the whole SOB chain thing yet. Previous submissions had

and her as author and you've completely removed those and made yourself an author because when I apply this patch, it would take the From:
header from the mail and make it the author.

But you can't simply remove her authorship... you need to read that doc again.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
author
#2 lore raw
Quoted 10 lines · Borislav Petkov
Quoted 5 lines · Shiping Ji

New driver supports error detection and correction on the devices with ARM DMC-520 memory controller.

I don't think you've understood the whole SOB chain thing yet. Previous submissions had

Quoted 9 lines

and her as author and you've completely removed those and made yourself an author because when I apply this patch, it would take the From:
header from the mail and make it the author.

But you can't simply remove her authorship... you need to read that doc again.

Sorry about it, my misunderstanding again. I'll submit a new patch shortly.

Signature · 2 lines
Best regards,
Shiping Ji