From patchwork Thu May 14 17:05:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 6407991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9402AC0432 for ; Thu, 14 May 2015 17:13:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C54B3202F8 for ; Thu, 14 May 2015 17:13:50 +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 F2BF1202EC for ; Thu, 14 May 2015 17:13:49 +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 1Yswcf-0001pH-T0; Thu, 14 May 2015 17:08:37 +0000 Received: from exprod5og107.obsmtp.com ([64.18.0.184] helo=mail-ie0-f170.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yswab-0008SC-3w for linux-arm-kernel@lists.infradead.org; Thu, 14 May 2015 17:06:30 +0000 Received: from mail-ie0-f170.google.com ([209.85.223.170]) (using TLSv1) by exprod5ob107.postini.com ([64.18.4.12]) with SMTP ID DSNKVVTV/8NXI3DmA4F7aM1l3uc0uPfQ6fEw@postini.com; Thu, 14 May 2015 10:06:29 PDT Received: by iebpz10 with SMTP id pz10so66224904ieb.2 for ; Thu, 14 May 2015 10:06:07 -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=fwALtl3fdXaFMIX4Nrx2MhNScYKtuWmg8Ct5EIO1vO2D3cqCIvk3m2gLuE3gDO4GNe gunntTyLkwhJzrOX2ZacbrhCe6aHcLLYR3QILOxRMc+cRZzSnHwAVGgTyhG6aqzO6bVO p8LpRZpDR67FyoVxQHWlJbHllTa2X/L1SMH/fwy67ZV8YrZY0pugC4ge0uKrZUXFKiiK 16wImorpMZt/VE0JrV1tCPVNdfKBdnBSnWeAbmIWZhPEXxpK5F8vhSGZ9XfOt2Kfofp/ 2l60kZm2ZiH2PP5wBKEcrkqX/j9bxxo79MM3hUhMKXmOurDeFe2OwvMnXXcFupOQGBTy aqXw== X-Gm-Message-State: ALoCoQk8eyi7abqFE431oDZfeFaN/PiOBOwCvUzz2psnidVscWdEDHxLa/KVRM16n692mqUXV2sWmT1sOqYhRsdP9rt9G1oBJpjjnES9QwEpvWtkeGv37QU/DVSKhrocKfeLH/E+JaMTd7yx/CEGz1WgMzGBzr0thGK8P67Rqd3H2Fyx1b3d7Ss= X-Received: by 10.107.168.79 with SMTP id r76mr6537032ioe.47.1431623167281; Thu, 14 May 2015 10:06:07 -0700 (PDT) X-Received: by 10.107.168.79 with SMTP id r76mr6537008ioe.47.1431623167104; Thu, 14 May 2015 10:06:07 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id v3sm6244110igk.1.2015.05.14.10.06.05 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 May 2015 10:06:05 -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 v9 1/5] arm64: Enable EDAC on ARM64 Date: Thu, 14 May 2015 11:05:43 -0600 Message-Id: <1431623147-4950-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1431623147-4950-1-git-send-email-lho@apm.com> References: <1431623147-4950-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150514_100629_426002_E731761F X-CRM114-Status: GOOD ( 12.30 ) 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