From: Loc Ho <lho@apm.com>
To: dougthompson@xmission.com, bp@alien8.de, mchehab@osg.samsung.com,
robh+dt@kernel.org, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk
Cc: devicetree@vger.kernel.org, jcm@redhat.com, patches@apm.com,
Loc Ho <lho@apm.com>,
linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org
Subject: [PATCH v6 1/5] arm64: Enable EDAC on ARM64
Date: Tue, 17 Mar 2015 00:30:17 -0600 [thread overview]
Message-ID: <1426573821-1937-2-git-send-email-lho@apm.com> (raw)
In-Reply-To: <1426573821-1937-1-git-send-email-lho@apm.com>
Add an stub atomic_scrub and enable EDAC for arm64.
Signed-off-by: Loc Ho <lho@apm.com>
---
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/edac.h | 31 +++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
create mode 100644 arch/arm64/include/asm/edac.h
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index e80cd74..d9c342a 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -20,6 +20,7 @@ config ARM64
select BUILDTIME_EXTABLE_SORT
select CLONE_BACKWARDS
select COMMON_CLK
+ select EDAC_SUPPORT
select CPU_PM if (SUSPEND || CPU_IDLE)
select DCACHE_WORD_ACCESS
select GENERIC_ALLOCATOR
diff --git a/arch/arm64/include/asm/edac.h b/arch/arm64/include/asm/edac.h
new file mode 100644
index 0000000..1cedba6
--- /dev/null
+++ b/arch/arm64/include/asm/edac.h
@@ -0,0 +1,31 @@
+/*
+ * ARM64 EDAC Header File
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef ASM_EDAC_H
+#define ASM_EDAC_H
+
+/*
+ * ECC atomic, DMA, SMP and interrupt safe scrub function.
+ * Implements the per arch atomic_scrub() that EDAC use for software
+ * ECC scrubbing. It reads memory and then writes back the original
+ * value, allowing the hardware to detect and correct memory errors.
+ */
+static inline void atomic_scrub(void *va, u32 size)
+{
+ /* Stub function for now until an ARM64 HW has a way to test it. */
+}
+
+#endif
+
--
1.7.1
next prev parent reply other threads:[~2015-03-17 6:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-17 6:30 [PATCH v6 0/4] edac: Add APM X-Gene SoC EDAC driver Loc Ho
2015-03-17 6:30 ` Loc Ho [this message]
2015-03-17 6:30 ` [PATCH v6 2/5] MAINTAINERS: Add entry for " Loc Ho
2015-03-17 6:30 ` [PATCH v6 3/5] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Loc Ho
2015-03-17 6:30 ` [PATCH v6 4/5] edac: Add APM X-Gene SoC EDAC driver Loc Ho
2015-03-17 6:30 ` [PATCH v6 5/5] arm64: Add APM X-Gene SoC EDAC DTS entries Loc Ho
[not found] ` <1426573821-1937-4-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-04-23 18:48 ` [PATCH v6 3/5] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Rob Herring
[not found] ` <CAL_JsqLyoEOw-Xzr2_QC-qbVW50CBEintD4hAtiY=_xwR5EBgw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-24 0:15 ` Loc Ho
[not found] ` <1426573821-1937-1-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2015-03-26 17:39 ` [PATCH v6 0/4] edac: Add APM X-Gene SoC EDAC driver Loc Ho
[not found] ` <CAPw-ZTkOOh=1GgDBQ4a9KoWVA9B7GPXddwNx=VBjVTo44wYdug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-09 17:48 ` Borislav Petkov
[not found] ` <20150409174847.GI25434-fF5Pk5pvG8Y@public.gmane.org>
2015-04-23 18:07 ` Loc Ho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426573821-1937-2-git-send-email-lho@apm.com \
--to=lho@apm.com \
--cc=bp@alien8.de \
--cc=devicetree@vger.kernel.org \
--cc=dougthompson@xmission.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jcm@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-edac@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab@osg.samsung.com \
--cc=patches@apm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).