Thread (59 messages) 59 messages, 3 authors, 2018-09-27

Re: [PATCH v4 15/20] iommu/tegra: gart: Allow only one active domain at a time

From: Thierry Reding <hidden>
Date: 2018-09-24 10:50:49
Also in: linux-iommu, linux-tegra, lkml

On Mon, Sep 24, 2018 at 03:41:48AM +0300, Dmitry Osipenko wrote:
quoted hunk ↗ jump to hunk
GART has a single address space that is shared by all devices, hence only
one domain could be active at a time.

Signed-off-by: Dmitry Osipenko <redacted>
---
 drivers/iommu/tegra-gart.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index 1d45b023adea..9f7d3afb686f 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -55,6 +55,7 @@ struct gart_device {
 	spinlock_t		pte_lock;	/* for pagetable */
 	struct list_head	client;
 	spinlock_t		client_lock;	/* for client list */
+	struct iommu_domain	*active_domain;	/* current active domain */
The active_ prefix seems a little unnecessary here, but either way:

Acked-by: Thierry Reding <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help