From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [RFC PATCH 6/6] iommu/arm-smmu: Update bindings document for smmu-inst-as-data DT option Date: Wed, 27 Jan 2016 12:28:43 +0000 Message-ID: <20160127122842.GA21064@leverpostej> References: <1453872079-27140-1-git-send-email-anup.patel@broadcom.com> <1453872079-27140-7-git-send-email-anup.patel@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1453872079-27140-7-git-send-email-anup.patel-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Anup Patel Cc: Device Tree , Scott Branden , Pawel Moll , Ian Campbell , Catalin Marinas , Will Deacon , Linux Kernel , Ray Jui , Vikram Prakash , Linux IOMMU , Rob Herring , BCM Kernel Feedback , Kumar Gala , Sricharan R , Linux ARM Kernel List-Id: devicetree@vger.kernel.org On Wed, Jan 27, 2016 at 10:51:19AM +0530, Anup Patel wrote: > This patch adds info about 'smmu-inst-as-data' DT option in ARM > SMMUv1/SMMUv2 driver bindings document. > > Signed-off-by: Anup Patel > Reviewed-by: Ray Jui > Reviewed-by: Vikram Prakash > Reviewed-by: Scott Branden > --- > Documentation/devicetree/bindings/iommu/arm,smmu.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.txt b/Documentation/devicetree/bindings/iommu/arm,smmu.txt > index 7180745..4c4d03e 100644 > --- a/Documentation/devicetree/bindings/iommu/arm,smmu.txt > +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.txt > @@ -49,6 +49,14 @@ conditions. > NOTE: this only applies to the SMMU itself, not > masters connected upstream of the SMMU. > > +- smmu-inst-as-data : Treat privilege/unprivilege instruction fetch as > + data read for SMMUv2. The SMMU driver by default provides > + unprivilege read-write permission in page table entries. > + For SMMUv2, privilege instruction fetch from MMU masters > + will cause a context fault for unprivilege read-write > + pages. To allow both privilege and unprivilege instruction > + fetch, we have to forcefully treat it as data read. What is this needed for? Which masters do instruction fetches through the SMMU, and when? Surely this should only need to aplly to a subset of transactions? Mark. > + > - calxeda,smmu-secure-config-access : Enable proper handling of buggy > implementations that always use secure access to > SMMU configuration registers. In this case non-secure > -- > 1.9.1 >