Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1552779

[PATCH V9 1/9] iommu: add IOMMU_PRIV attribute

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Sricharan R <sricharan@codeaurora.org>
Newsgroups linux.kernel
Subject [PATCH V9 1/9] iommu: add IOMMU_PRIV attribute
Date Fri, 06 Jan 2017 14:40:01 +0100
Message-ID <sWCUp-2A2-7@gated-at.bofh.it> (permalink)
References <sWCUp-2A2-9@gated-at.bofh.it>
X-Original-To jcrouse@codeaurora.org, pdaly@codeaurora.org, jgebben@codeaurora.org, joro@8bytes.org, linux-kernel@vger.kernel.org, pratikp@codeaurora.org, iommu@lists.linux-foundation.org, robin.murphy@arm.com, tzeng@codeaurora.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, mitchelh@codeaurora.org, vinod.koul@intel.com, dan.j.williams@intel.com, linux@armlinux.org.uk
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1483709327; bh=pl8Docd9TuvwFCIKghi5ALMu2yX0ZxRDdIIW79fgXfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ReGeobcLH+f3ldaLgrBzFGw8lrB36qG7k1PFw4nTr2DMh2n4ae2sG1CC16KYCLpOC 7/Rb4DCbhk8PTv6O+kXXDWn5JDOwtwrQ3DV58uVwRJo3ksZyyWC466mhE9hOKQ4yHK NFvbk0R5Cgl0EBrWJIMHJckAmF7h1OV1/wCKbU6k=
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1483709327; bh=pl8Docd9TuvwFCIKghi5ALMu2yX0ZxRDdIIW79fgXfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ReGeobcLH+f3ldaLgrBzFGw8lrB36qG7k1PFw4nTr2DMh2n4ae2sG1CC16KYCLpOC 7/Rb4DCbhk8PTv6O+kXXDWn5JDOwtwrQ3DV58uVwRJo3ksZyyWC466mhE9hOKQ4yHK NFvbk0R5Cgl0EBrWJIMHJckAmF7h1OV1/wCKbU6k=
Dmarc-Filter OpenDMARC Filter v1.3.1 smtp.codeaurora.org 0405C6115A
Authentication-Results pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org
Authentication-Results pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=sricharan@codeaurora.org
X-Mailer git-send-email 1.8.2.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc sricharan@codeaurora.org
X-Original-Date Fri, 6 Jan 2017 18:58:08 +0530
X-Original-Message-ID <1483709296-32761-2-git-send-email-sricharan@codeaurora.org>
X-Original-References <1483709296-32761-1-git-send-email-sricharan@codeaurora.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1552779

Show key headers only | View raw


From: Mitchel Humpherys <mitchelh@codeaurora.org>

Add the IOMMU_PRIV attribute, which is used to indicate privileged
mappings.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Acked-by: Will Deacon <will.deacon@arm.com>
---
 include/linux/iommu.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 0ff5111..69e2417 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -31,6 +31,13 @@
 #define IOMMU_CACHE	(1 << 2) /* DMA cache coherency */
 #define IOMMU_NOEXEC	(1 << 3)
 #define IOMMU_MMIO	(1 << 4) /* e.g. things like MSI doorbells */
+/*
+ * This is to make the IOMMU API setup privileged
+ * mapppings accessible by the master only at higher
+ * privileged execution level and inaccessible at
+ * less privileged levels.
+ */
+#define IOMMU_PRIV	(1 << 5)
 
 struct iommu_ops;
 struct iommu_group;
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH V9 1/9] iommu: add IOMMU_PRIV attribute Sricharan R <sricharan@codeaurora.org> - 2017-01-06 14:40 +0100

csiph-web