Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318669 > unrolled thread
| Started by | Anup Patel <anup.patel@broadcom.com> |
|---|---|
| First post | 2016-01-27 06:30 +0100 |
| Last post | 2016-01-27 06:30 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[RFC PATCH 0/6] iommu/arm-smmu: Add support for DMA domains and instruction fetch Anup Patel <anup.patel@broadcom.com> - 2016-01-27 06:30 +0100
[RFC PATCH 3/6] of: iommu: Increment DT node refcount in of_iommu_set_ops() Anup Patel <anup.patel@broadcom.com> - 2016-01-27 06:30 +0100
| From | Anup Patel <anup.patel@broadcom.com> |
|---|---|
| Date | 2016-01-27 06:30 +0100 |
| Subject | [RFC PATCH 0/6] iommu/arm-smmu: Add support for DMA domains and instruction fetch |
| Message-ID | <qVqQ1-76w-3@gated-at.bofh.it> |
This patchset adds following to SMMUv1/SMMUv2 driver:
1. Support for domain type IOMMU_DOMAIN_DMA
2. Allow privilege instruction fetchs from MMU masters by having
a DT option to treat instruction fetch as data read
The patchset is based on '4.5-rc1' tag of linux mainline tree
and is available in smmu_v1 branch of
https://github.com/Broadcom/arm64-linux.git
All patches have been tested on Broadcom SoCs having SMMU-500.
Anup Patel (5):
iommu/arm-smmu: Invoke DT probe from arm_smmu_of_setup()
of: iommu: Increment DT node refcount in of_iommu_set_ops()
iommu/arm-smmu: Add support for IOMMU_DOMAIN_DMA in SMMUv1/SMMUv2
driver
iommu/arm-smmu: Option to treat instruction fetch as data read for
SMMUv2
iommu/arm-smmu: Update bindings document for smmu-inst-as-data DT
option
Sricharan R (1):
iommu/arm-smmu: Init driver using IOMMU_OF_DECLARE
.../devicetree/bindings/iommu/arm,smmu.txt | 8 +++
drivers/iommu/arm-smmu.c | 70 +++++++++++++++++-----
drivers/iommu/of_iommu.c | 1 +
3 files changed, 65 insertions(+), 14 deletions(-)
--
1.9.1
[toc] | [next] | [standalone]
| From | Anup Patel <anup.patel@broadcom.com> |
|---|---|
| Date | 2016-01-27 06:30 +0100 |
| Subject | [RFC PATCH 3/6] of: iommu: Increment DT node refcount in of_iommu_set_ops() |
| Message-ID | <qVqQ2-76w-25@gated-at.bofh.it> |
| In reply to | #1318669 |
We are saving pointer to iommu DT node in of_iommu_set_ops() hence we should increment DT node ref count. Signed-off-by: Anup Patel <anup.patel@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/iommu/of_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 60ba238..5fea665 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -110,6 +110,7 @@ void of_iommu_set_ops(struct device_node *np, struct iommu_ops *ops) if (WARN_ON(!iommu)) return; + of_node_get(np); INIT_LIST_HEAD(&iommu->list); iommu->np = np; iommu->ops = ops; -- 1.9.1
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web