From patchwork Thu May 22 16:47:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 30650 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F32BD20671 for ; Thu, 22 May 2014 16:55:31 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf11951394pab.7 for ; Thu, 22 May 2014 09:55:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=+F4UGyP2tE3jYPlKiJFnfBalIvV0o7jOddg4etdsa6E=; b=gZrFe9+uqTrR5yuMqN0oKl5qZVu9/jItlqWZdTKs+GKkgl4k9FP39GnfxErQwbLfzU YM7VTfwEWdL1T5Ty8dnUGUaQyiDDQoTQchSTQA/nwJelHdYPSShBGM2dRrhjH1fMgARK 6ehVFZ8DFQyXHnkCCqxOyyqyAbua6fsgjscq2Zise6eugx1PEhkSQorNqHiw6J0A3F8J YcTBrgGYIOSuV4uYxxa8r2KKABPqMAvnqiEmIB0GMcx3HEmzUuMhJhi8DM3ykxrulxhv zuzvd1fiS5Q7CGUVim9sT+7N0Rb8O5tLLPuzKAlMPF1wt2jSE9COXtiasETN7LDaFPss 8iww== X-Gm-Message-State: ALoCoQljWGx+Ubiza+2YTXaGo8Pw3j+2Jh2OeZQonKwjDUqkFoZ1do+jl5oL7sT3ZFangarlHf85 X-Received: by 10.66.217.170 with SMTP id oz10mr7574487pac.9.1400777731023; Thu, 22 May 2014 09:55:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.133 with SMTP id t5ls1383267qgt.43.gmail; Thu, 22 May 2014 09:55:30 -0700 (PDT) X-Received: by 10.220.10.2 with SMTP id n2mr16969739vcn.26.1400777730871; Thu, 22 May 2014 09:55:30 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id gm7si226762vec.4.2014.05.22.09.55.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 09:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id if11so1430618vcb.33 for ; Thu, 22 May 2014 09:55:30 -0700 (PDT) X-Received: by 10.221.34.7 with SMTP id sq7mr16980749vcb.5.1400777730697; Thu, 22 May 2014 09:55:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp215572vcb; Thu, 22 May 2014 09:55:30 -0700 (PDT) X-Received: by 10.68.193.100 with SMTP id hn4mr69275852pbc.50.1400777729934; Thu, 22 May 2014 09:55:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk5si483139pac.50.2014.05.22.09.55.29 for ; Thu, 22 May 2014 09:55:29 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753037AbaEVQzT (ORCPT + 27 others); Thu, 22 May 2014 12:55:19 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:48871 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752819AbaEVQsQ (ORCPT ); Thu, 22 May 2014 12:48:16 -0400 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.25]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s4MGlZwo028188; Thu, 22 May 2014 17:47:35 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 9EAE61AE340F; Thu, 22 May 2014 17:47:34 +0100 (BST) From: Will Deacon To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, monstr@monstr.eu, dhowells@redhat.com, broonie@linaro.org, benh@kernel.crashing.org, peterz@infradead.org, paulmck@linux.vnet.ibm.com, Will Deacon , Tony Luck Subject: [PATCH v2 08/18] ia64: io: implement dummy relaxed accessor macros for writes Date: Thu, 22 May 2014 17:47:20 +0100 Message-Id: <1400777250-17335-9-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1400777250-17335-1-git-send-email-will.deacon@arm.com> References: <1400777250-17335-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , write{b,w,l,q}_relaxed are implemented by some architectures in order to permit memory-mapped I/O accesses with weaker barrier semantics than the non-relaxed variants. This patch adds dummy macros for the write accessors to ia64, which may be able to be optimised in a similar manner to the relaxed read accessors at a later date. Cc: Tony Luck Signed-off-by: Will Deacon --- arch/ia64/include/asm/io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 0d2bcb37ec35..379165154c27 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -393,6 +393,10 @@ __writeq (unsigned long val, volatile void __iomem *addr) #define writew(v,a) __writew((v), (a)) #define writel(v,a) __writel((v), (a)) #define writeq(v,a) __writeq((v), (a)) +#define writeb_relaxed(v,a) __writeb((v), (a)) +#define writew_relaxed(v,a) __writew((v), (a)) +#define writel_relaxed(v,a) __writel((v), (a)) +#define writeq_relaxed(v,a) __writeq((v), (a)) #define __raw_writeb writeb #define __raw_writew writew #define __raw_writel writel