From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Jordan Crouse <jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
Jeremy Gebben <jgebben-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Subject: Re: [PATCH 7/7] iommu/arm-smmu: add support for dynamic domains
Date: Tue, 7 Mar 2017 18:11:38 +0000 [thread overview]
Message-ID: <20170307181138.GF3514@leverpostej> (raw)
In-Reply-To: <1488904795-870-8-git-send-email-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
On Tue, Mar 07, 2017 at 09:39:55AM -0700, Jordan Crouse wrote:
> Implement support for dynamic domain switching. This feature is
> only enabled when the qcom,dynamic device tree attribute for an smmu
> instance.
>
> In order to use dynamic domains, a non-dynamic domain must first
> be created and attached. The non-dynamic domain must remain
> attached while the device is in use.
>
> The dynamic domain is cloned from the non-dynamic domain. Important
> configuration information is copied from the non-dynamic domain and
> the dynamic domain is automatically "attached" (though it doesn't
> program the hardware).
>
> To switch domains dynamically the hardware must program the TTBR0 register
> with the value from the DOMAIN_ATTR_TTBR0 attribute for the dynamic domain.
> The upstream driver may also need to do other hardware specific register
> programming to properly synchronize the domain switch. It must ensure that
> all register state except for the TTBR0 register is restored
> at the end of the switch operation.
> + { ARM_SMMU_OPT_DYNAMIC, "qcom,dynamic" },
What *precisely* is the intended semantic of this property?
It's not clear to me what a dynamic domain is, there's no documentation
in this series for this property, and from a glance it sounds like a
pure SW detail rather than a hardware/system detail (i.e. it shouldn;t
be in the DT at all).
This needs documentation. In future, please also Cc the devicetree list
(devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org) when adding new properties.
Thanks,
Mark.
next prev parent reply other threads:[~2017-03-07 18:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-07 16:39 [PATCH 0/7] RFC: iommu/arm-smmu-v2: Dynamic domains Jordan Crouse
[not found] ` <1488904795-870-1-git-send-email-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-03-07 16:39 ` [PATCH 1/7] iommu/arm-smmu: save the pgtbl_cfg in the domain Jordan Crouse
2017-03-07 16:39 ` [PATCH 2/7] iommu: Add DOMAIN_ATTR_ENABLE_TTBR1 Jordan Crouse
2017-03-07 16:39 ` [PATCH 3/7] iommu/arm-smmu: Add support for TTBR1 Jordan Crouse
2017-03-07 16:39 ` [PATCH 4/7] iommu: introduce TTBR0 domain attribute Jordan Crouse
2017-03-07 16:39 ` [PATCH 5/7] iommu/arm-smmu: add support for TTBR0 attribute Jordan Crouse
2017-03-07 16:39 ` [PATCH 6/7] iommu: Add dynamic domains Jordan Crouse
2017-03-07 16:39 ` [PATCH 7/7] iommu/arm-smmu: add support for " Jordan Crouse
[not found] ` <1488904795-870-8-git-send-email-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-03-07 18:11 ` Mark Rutland [this message]
2017-03-07 20:40 ` Jordan Crouse
2017-03-07 17:22 ` [Freedreno] [PATCH 0/7] RFC: iommu/arm-smmu-v2: Dynamic domains Jordan Crouse
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=20170307181138.GF3514@leverpostej \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=jgebben-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox