From patchwork Wed May 6 04:02:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 6346411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 490859F7BC for ; Wed, 6 May 2015 04:06:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6EB1A2026D for ; Wed, 6 May 2015 04:06:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3413520268 for ; Wed, 6 May 2015 04:06:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YpqYI-0001dk-Gz; Wed, 06 May 2015 04:03:18 +0000 Received: from exprod5og109.obsmtp.com ([64.18.0.188] helo=mail-ie0-f182.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YpqYF-0001Zy-FE for linux-arm-kernel@lists.infradead.org; Wed, 06 May 2015 04:03:16 +0000 Received: from mail-ie0-f182.google.com ([209.85.223.182]) (using TLSv1) by exprod5ob109.postini.com ([64.18.4.12]) with SMTP ID DSNKVUmSa1+ztLoSnsJUhnPHK7QfxcABw24Q@postini.com; Tue, 05 May 2015 21:03:15 PDT Received: by iecnq11 with SMTP id nq11so5126542iec.3 for ; Tue, 05 May 2015 21:02:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JjwjCT72ZcfSl1livMDHbxKMuSYIz0RCufNArNt4gBE=; b=CegO/Z5IDYjbh7zWBB26E0h6gnCenG1/Me/DNjqrFRkGLdBsMvpe2U8m0oLn4M51Kw f/uBx5w7McKLFtS/Jj33b4lqYleSZ/Z6FdIhryhVVmAKL88D9Fl7TBdnoSmpAUNi+O4l pQNAfA5qrYMGSU7Rp6ZFbnAhP35PDmL5ZBtvfBxSy0wAXQWOzglPuKqsF1GVhO7xERie 2kSEQRoS/TrIdtC+2/E1cjeWsOebv9A1cFozOR+H6jm2GM10hveP5h0HYJUdXLzxN89E tlpRoRKbW3u0i5dSVU3OArwE86w4uhN5AOhRS6pnLNo1UxYuh/rxhOzAShthCFwAnYus MKlQ== X-Gm-Message-State: ALoCoQmmI0HopWVd6A7k9pyTrGtTV7/vZIb1RP2N4FJGVGlyhSndXlab87U7vgOmRpDwiWnSXFwBRWu9/SYQnmdtwUfMcQGWTW/ZMZOrLYlmTScyv09lqng96TD3iATzQn5GP86Wwpv2538BVfOGHjbyVUpEzVKTemP/td8BQISNR1sVGhxF0tI= X-Received: by 10.107.157.70 with SMTP id g67mr32589409ioe.11.1430884971012; Tue, 05 May 2015 21:02:51 -0700 (PDT) X-Received: by 10.107.157.70 with SMTP id g67mr32589385ioe.11.1430884970834; Tue, 05 May 2015 21:02:50 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id fm3sm86074igb.1.2015.05.05.21.02.49 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 May 2015 21:02:49 -0700 (PDT) From: Loc Ho To: dougthompson@xmission.com, bp@alien8.de, mchehab@osg.samsung.com, robh+dt@kernel.org, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk Subject: [PATCH v8 1/5] arm64: Enable EDAC on ARM64 Date: Tue, 5 May 2015 22:02:23 -0600 Message-Id: <1430884947-16787-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1430884947-16787-1-git-send-email-lho@apm.com> References: <1430884947-16787-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150505_210315_579916_DF874E01 X-CRM114-Status: GOOD ( 12.37 ) X-Spam-Score: -2.3 (--) Cc: devicetree@vger.kernel.org, jcm@redhat.com, patches@apm.com, Loc Ho , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add an stub atomic_scrub function and enable EDAC for arm64. Signed-off-by: Loc Ho --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/edac.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 arch/arm64/include/asm/edac.h diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4269dba..577078f 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -22,6 +22,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..683495b --- /dev/null +++ b/arch/arm64/include/asm/edac.h @@ -0,0 +1,28 @@ +/* + * 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 . + */ +#ifndef __ASM_EDAC_H +#define __ASM_EDAC_H + +/* + * ECC atomic, DMA, SMP and interrupt safe scrub function. + */ +static inline void atomic_scrub(void *va, u32 size) +{ + /* Stub function for now until an ARM64 HW has a way to test it. */ + WARN_ONCE(1, "not implemented"); +} + +#endif