From: Jitendra Bhivare <jitendra.bhivare@broadcom.com> To: will.deacon@arm.com, robin.murphy@arm.com, joro@8bytes.org Cc: Jitendra Bhivare <jitendra.bhivare@broadcom.com>, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org Subject: [RFC 1/5] dt-bindings: iommu: Add reserved-dma-region for IOMMU device Date: Tue, 6 Mar 2018 10:29:24 +0530 [thread overview] Message-ID: <1520312368-7068-2-git-send-email-jitendra.bhivare@broadcom.com> (raw) In-Reply-To: <1520312368-7068-1-git-send-email-jitendra.bhivare@broadcom.com> Certain regions in IO virtual address space may need to be reserved to be not used for devices configured behind IOMMU. Add documentation of the property to allow such regions to be specified in DT to be reserved using IOMMU_RESV_RESERVED type. Reviewed-by: Ray Jui <ray.jui@broadcom.com> Reviewed-by: Vikram Prakash <vikram.prakash@broadcom.com> Reviewed-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> --- Documentation/devicetree/bindings/iommu/iommu.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/iommu.txt b/Documentation/devicetree/bindings/iommu/iommu.txt index 5a8b462..5a58ef2 100644 --- a/Documentation/devicetree/bindings/iommu/iommu.txt +++ b/Documentation/devicetree/bindings/iommu/iommu.txt @@ -98,6 +98,20 @@ requirements of that use-case haven't been fully determined yet. Implementing this is therefore not recommended without further discussion and extension of this binding. +Optional properties: +-------------------- +- reserved-dma-region: This specifies DMA region to be reserved with specific + prot in IOVA space. It is in tuples of (busno,prot,bus_addr,size). + +- #region-address-cells: specifies number of cells needed to encode bus_addr + +- #region-size-cells: specifies number of cells needed to encode size + +Notes: +====== +This can be applied to IOMMU master node or to children (such as PCI host +bridges) on the bus behind IOMMU. + Examples: ========= @@ -173,6 +187,9 @@ Multiple-master IOMMU with configurable DMA window: * master (i.e. the I/O virtual address space). */ #iommu-cells = <4>; + #region-address-cells = <2>; + #region-size-cells = <2>; + reserved-dma-region = <0x0 0x0 0x04 0x0 0x04 0x0>; }; master { -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: jitendra.bhivare@broadcom.com (Jitendra Bhivare) To: linux-arm-kernel@lists.infradead.org Subject: [RFC 1/5] dt-bindings: iommu: Add reserved-dma-region for IOMMU device Date: Tue, 6 Mar 2018 10:29:24 +0530 [thread overview] Message-ID: <1520312368-7068-2-git-send-email-jitendra.bhivare@broadcom.com> (raw) In-Reply-To: <1520312368-7068-1-git-send-email-jitendra.bhivare@broadcom.com> Certain regions in IO virtual address space may need to be reserved to be not used for devices configured behind IOMMU. Add documentation of the property to allow such regions to be specified in DT to be reserved using IOMMU_RESV_RESERVED type. Reviewed-by: Ray Jui <ray.jui@broadcom.com> Reviewed-by: Vikram Prakash <vikram.prakash@broadcom.com> Reviewed-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> --- Documentation/devicetree/bindings/iommu/iommu.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/iommu.txt b/Documentation/devicetree/bindings/iommu/iommu.txt index 5a8b462..5a58ef2 100644 --- a/Documentation/devicetree/bindings/iommu/iommu.txt +++ b/Documentation/devicetree/bindings/iommu/iommu.txt @@ -98,6 +98,20 @@ requirements of that use-case haven't been fully determined yet. Implementing this is therefore not recommended without further discussion and extension of this binding. +Optional properties: +-------------------- +- reserved-dma-region: This specifies DMA region to be reserved with specific + prot in IOVA space. It is in tuples of (busno,prot,bus_addr,size). + +- #region-address-cells: specifies number of cells needed to encode bus_addr + +- #region-size-cells: specifies number of cells needed to encode size + +Notes: +====== +This can be applied to IOMMU master node or to children (such as PCI host +bridges) on the bus behind IOMMU. + Examples: ========= @@ -173,6 +187,9 @@ Multiple-master IOMMU with configurable DMA window: * master (i.e. the I/O virtual address space). */ #iommu-cells = <4>; + #region-address-cells = <2>; + #region-size-cells = <2>; + reserved-dma-region = <0x0 0x0 0x04 0x0 0x04 0x0>; }; master { -- 2.7.4
next prev parent reply other threads:[~2018-03-06 4:59 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-03-06 4:59 [RFC 0/5] DT property to reserve IOMMU regions Jitendra Bhivare 2018-03-06 4:59 ` Jitendra Bhivare 2018-03-06 4:59 ` Jitendra Bhivare [this message] 2018-03-06 4:59 ` [RFC 1/5] dt-bindings: iommu: Add reserved-dma-region for IOMMU device Jitendra Bhivare [not found] ` <1520312368-7068-2-git-send-email-jitendra.bhivare-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> 2018-03-06 11:41 ` Robin Murphy 2018-03-06 11:41 ` Robin Murphy [not found] ` <23f7c879-2dfe-dbdf-f259-dcc44f045c96-5wv7dgnIgG8@public.gmane.org> 2018-03-12 6:34 ` Jitendra Bhivare via iommu 2018-03-12 6:44 ` Jitendra Bhivare via iommu 2018-03-12 6:44 ` Jitendra Bhivare 2018-03-06 4:59 ` [RFC 2/5] dt-bindings: brcm: Add reserved-dma-region for iPROC Jitendra Bhivare 2018-03-06 4:59 ` Jitendra Bhivare [not found] ` <1520312368-7068-3-git-send-email-jitendra.bhivare-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> 2018-03-06 11:42 ` Robin Murphy 2018-03-06 11:42 ` Robin Murphy [not found] ` <c2f30c0c-ff5e-2904-11f4-5351749381a9-5wv7dgnIgG8@public.gmane.org> 2018-03-12 7:03 ` Jitendra Bhivare via iommu 2018-03-12 7:03 ` Jitendra Bhivare [not found] ` <CAOA9gs32BqGiXD7R2v7=Xkv-PVLTzuU3VmG1dAm6HNd4=w-qQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-03-14 18:45 ` Robin Murphy 2018-03-14 18:45 ` Robin Murphy [not found] ` <a4a27e3c-4e7b-4850-ebf7-bd2b8f6f0d97-5wv7dgnIgG8@public.gmane.org> 2018-03-15 12:03 ` Jitendra Bhivare via iommu 2018-03-15 12:03 ` Jitendra Bhivare [not found] ` <CAOA9gs1XE1RkumEkYafO5f+b1YjGCFTYzxSSB-U4JcsR6=QdQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-03-15 19:58 ` Robin Murphy 2018-03-15 19:58 ` Robin Murphy 2018-03-06 4:59 ` [RFC 3/5] dt-bindings: arm-smmu: Add reserved-msi-region Jitendra Bhivare 2018-03-06 4:59 ` Jitendra Bhivare [not found] ` <1520312368-7068-4-git-send-email-jitendra.bhivare-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> 2018-03-06 11:47 ` Robin Murphy 2018-03-06 11:47 ` Robin Murphy [not found] ` <9aeb8e14-2a14-d71b-7970-055ed04a131c-5wv7dgnIgG8@public.gmane.org> 2018-03-12 7:19 ` Jitendra Bhivare via iommu 2018-03-12 7:19 ` Jitendra Bhivare [not found] ` <CAOA9gs0_mUJcuthxon5Ru1B7FFK=_XuCh4E4D98DzPih8dey8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-03-15 19:42 ` Robin Murphy 2018-03-15 19:42 ` Robin Murphy 2018-03-06 4:59 ` [RFC 4/5] iommu/of: Reserve IOMMU DMA regions using DT Jitendra Bhivare 2018-03-06 4:59 ` Jitendra Bhivare 2018-03-06 4:59 ` [RFC 5/5] iommu/arm-smmu: Allow direct mapping for MSI region Jitendra Bhivare 2018-03-06 4:59 ` Jitendra Bhivare
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1520312368-7068-2-git-send-email-jitendra.bhivare@broadcom.com \ --to=jitendra.bhivare@broadcom.com \ --cc=iommu@lists.linux-foundation.org \ --cc=joro@8bytes.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=robin.murphy@arm.com \ --cc=will.deacon@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.