From patchwork Thu Jun 20 10:58:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hiroshi Doyu X-Patchwork-Id: 18015 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5428C2397B for ; Thu, 20 Jun 2013 10:59:47 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id hf12sf8472283vcb.1 for ; Thu, 20 Jun 2013 03:59:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to :x-pgp-universal:from:to:date:message-id:x-mailer:mime-version:cc :subject:x-beenthere:x-mailman-version:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-gm-message-state:x-original-sender :x-original-authentication-results:mailing-list:x-google-group-id :content-type:content-transfer-encoding; bh=UqrhDOu7IZJ7M11izD3w1asfUhnXyg9ZnO6p6PMjUNA=; b=OLGgC+p4fgbWfv45e/NDtFA7DvIOfX9I6+QVPelLi1yxusF60SZG/cqBfIYZKFTpaO TZVEnDxTZvtQz/IG61wAKtKMHSR+wmu/VgYWh1mIeXRKya9NLVNPCbaP8DowqCl9XxMS KahCIoFP/tpCpKT+pYpqJpD5XA1kENHt7OZCoSvXDDPXaV8SV9PcZ2zPsIxw6AnuHpUC 0bqfSJ9307SsJR+cITA+E6nfxXVsh7+ODQWzPxTFBFhvNXVjCZLxMdOsupoT2n9QuHSm sp6t9UvWCjX2xCHbG5JN49vYqmJwg7J9rEs8H5pDn5e4Imb/UCmrSWZUdWIb4dTq7aGZ ahlw== X-Received: by 10.236.83.82 with SMTP id p58mr3020841yhe.10.1371725986784; Thu, 20 Jun 2013 03:59:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.51 with SMTP id r19ls643122qef.73.gmail; Thu, 20 Jun 2013 03:59:46 -0700 (PDT) X-Received: by 10.52.29.241 with SMTP id n17mr2250093vdh.95.1371725986611; Thu, 20 Jun 2013 03:59:46 -0700 (PDT) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [2607:f8b0:400c:c02::22c]) by mx.google.com with ESMTPS id ia10si7683382vdb.155.2013.06.20.03.59.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 03:59:46 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22c; Received: by mail-vb0-f44.google.com with SMTP id e15so4594879vbg.3 for ; Thu, 20 Jun 2013 03:59:46 -0700 (PDT) X-Received: by 10.52.22.174 with SMTP id e14mr2307328vdf.21.1371725986424; Thu, 20 Jun 2013 03:59:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp16150veb; Thu, 20 Jun 2013 03:59:44 -0700 (PDT) X-Received: by 10.14.29.69 with SMTP id h45mr7053679eea.127.1371725983721; Thu, 20 Jun 2013 03:59:43 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 8si22383021eeg.196.2013.06.20.03.59.42 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Jun 2013 03:59:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1UpcaU-0003hs-7d; Thu, 20 Jun 2013 10:59:34 +0000 Received: from hqemgate04.nvidia.com ([216.228.121.35]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1UpcaS-0003he-9V for linaro-mm-sig@lists.linaro.org; Thu, 20 Jun 2013 10:59:32 +0000 Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate04.nvidia.com id ; Thu, 20 Jun 2013 03:59:23 -0700 Received: from hqemhub02.nvidia.com ([172.20.12.94]) by hqnvupgp08.nvidia.com (PGP Universal service); Thu, 20 Jun 2013 03:59:08 -0700 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Thu, 20 Jun 2013 03:59:08 -0700 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by hqemhub02.nvidia.com (172.20.150.31) with Microsoft SMTP Server id 8.3.298.1; Thu, 20 Jun 2013 03:59:08 -0700 Received: from thelma.nvidia.com (Not Verified[172.16.212.77]) by hqnvemgw02.nvidia.com with MailMarshal (v7,1,2,5326) id ; Thu, 20 Jun 2013 03:59:08 -0700 Received: from oreo.Nvidia.com (dhcp-10-21-26-134.nvidia.com [10.21.26.134]) by thelma.nvidia.com (8.13.8+Sun/8.8.8) with ESMTP id r5KAx4pk023091; Thu, 20 Jun 2013 03:59:06 -0700 (PDT) From: Hiroshi Doyu To: Date: Thu, 20 Jun 2013 13:58:42 +0300 Message-ID: <1371725924-13957-2-git-send-email-hdoyu@nvidia.com> X-Mailer: git-send-email 1.8.1.5 MIME-Version: 1.0 Cc: linux-tegra@vger.kernel.org, linaro-mm-sig@lists.linaro.org, iommu@lists.linux-foundation.org Subject: [Linaro-mm-sig] [PATCH 1/3] common: DMA-mapping: add DMA_ATTR_READ_ONLY attribute X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQkaaU+qigZs1vPst8cXHJyEuDDpYgSA7LVDlG/xVcb87KyuIRy9gtkESWRmCe94uVpJYdH1 X-Original-Sender: hdoyu@nvidia.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 This patch adds DMA_ATTR_READ_ONLY attribute to the DMA-mapping subsystem. This sets mapping attribute read-only. Signed-off-by: Hiroshi Doyu --- include/linux/dma-attrs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h index f272809..5d7371c 100644 --- a/include/linux/dma-attrs.h +++ b/include/linux/dma-attrs.h @@ -18,6 +18,7 @@ enum dma_attr { DMA_ATTR_NO_KERNEL_MAPPING, DMA_ATTR_SKIP_CPU_SYNC, DMA_ATTR_SKIP_FREE_IOVA, + DMA_ATTR_READ_ONLY, DMA_ATTR_MAX, };