From patchwork Mon May 18 23:24:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 6432681 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 62B409F38D for ; Mon, 18 May 2015 23:29:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61F2820445 for ; Mon, 18 May 2015 23:29:26 +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 7F7B72043C for ; Mon, 18 May 2015 23:29:25 +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 1YuUPY-0002bI-Vl; Mon, 18 May 2015 23:25:28 +0000 Received: from exprod5og102.obsmtp.com ([64.18.0.143] helo=mail-ig0-f178.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YuUPQ-0001Q3-Sb for linux-arm-kernel@lists.infradead.org; Mon, 18 May 2015 23:25:21 +0000 Received: from mail-ig0-f178.google.com ([209.85.213.178]) (using TLSv1) by exprod5ob102.postini.com ([64.18.4.12]) with SMTP ID DSNKVVp0y16MFlrCEwIJy9BKra/ObZkypy92@postini.com; Mon, 18 May 2015 16:25:20 PDT Received: by igcau1 with SMTP id au1so1269301igc.1 for ; Mon, 18 May 2015 16:24:59 -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=E0GbI93JKpUSkNtsnmPFCtm6/u+bmOJQ/bGnDRmokul7Qho1lf+gupltITB2RcYTf7 9HDeMwm/6R8iFHlHqhkXcZxq0QnDyccYN9ED+1AlwujgM5xXykcYMXRAV57IDkD/sYUu fzDnCTaaO7etLlPtTJpksM9leVEa6XmOUdDcX8URDZXjSt8Od8P3aXF4pBO4nn5PlND3 UV2OJxdV0PxM//AfibxBy5XsLMqCThoFa79fFfoWPbTEMb3x+he+A6/hPOrIpdvEG1Fe 0Np97SQo5stW5+GJjyKXy8VKn4knKV+d+iqUQEFHPxoeJTr+lRk93Y8oi46Tf8xrxcFs Erng== X-Gm-Message-State: ALoCoQlLbpyvCT0ZSnQ9IerZKUUWrA3+ZKHsRXbzO1X3GKfCy94363+P0kAl1JFJqKrtP2ekHE6gJrknyV894ameWv3udRHbEBCZMZdmnTI3e57WHLrplLEeyVrwPF0D99d1ZoDbXRQm/cRW7/pypQGkJnufdFqONSoa/9kXn3V39ZOb5Xpp39M= X-Received: by 10.107.34.80 with SMTP id i77mr31198570ioi.33.1431991499394; Mon, 18 May 2015 16:24:59 -0700 (PDT) X-Received: by 10.107.34.80 with SMTP id i77mr31198548ioi.33.1431991499218; Mon, 18 May 2015 16:24:59 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id n9sm6591789igy.2.2015.05.18.16.24.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 18 May 2015 16:24:58 -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 v10 1/5] arm64: Enable EDAC on ARM64 Date: Mon, 18 May 2015 17:24:37 -0600 Message-Id: <1431991481-25684-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1431991481-25684-1-git-send-email-lho@apm.com> References: <1431991481-25684-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150518_162521_018149_8071810B X-CRM114-Status: GOOD ( 13.03 ) 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