From: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
To: Krishna Reddy <vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Jonathan Hunter
<jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: "joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org"
<joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>,
"will-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<will-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
"iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Yu-Huan Hsu <YHsu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Sachin Nikam <Snikam-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Pritesh Raithatha
<praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Timo Alho <talho-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Bitan Biswas <bbiswas-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Mikko Perttunen
<mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Nicolin Chen <nicolinc-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Bryan Huntsman
<bhuntsman-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH v8 2/3] dt-bindings: arm-smmu: Add binding for Tegra194 SMMU
Date: Thu, 2 Jul 2020 17:05:05 +0100 [thread overview]
Message-ID: <04e35d51-5e65-047d-90ef-a2de901eb15d@arm.com> (raw)
In-Reply-To: <BYAPR12MB2822EE99210BFA984ECB954AB36C0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
On 2020-07-01 20:39, Krishna Reddy wrote:
> On 01/07/2020 20:00, Krishna Reddy wrote:
>>>>>>> + items:
>>>>>>> + - enum:
>>>>>>> + - nvdia,tegra194-smmu
>>>>>>> + - const: arm,mmu-500
>>>>>
>>>>>> Is the fallback compatible appropriate here? If software treats this as a standard MMU-500 it will only program the first instance (because the second isn't presented as a separate MMU-500) - is there any way that isn't going to blow up?
>>>>>
>>>>> When compatible is set to both nvidia,tegra194-smmu and arm,mmu-500, implementation override ensure that both instances are programmed. Isn't it? I am not sure I follow your comment fully.
>>>
>>>> The problem is, if for some reason someone had a Tegra194, but only set the compatible string to 'arm,mmu-500' it would assume that it was a normal arm,mmu-500 and only one instance would be programmed. We always want at least 2 of the 3 instances >>programmed and so we should only match 'nvidia,tegra194-smmu'. In fact, I think that we also need to update the arm_smmu_of_match table to add 'nvidia,tegra194-smmu' with the data set to &arm_mmu500.
>>>
>>> In that case, new binding "nvidia,smmu-v2" can be added with data set to &arm_mmu500 and enumeration would have nvidia,tegra194-smmu and another variant for next generation SoC in future.
>
>> I think you would be better off with nvidia,smmu-500 as smmu-v2 appears to be something different. I see others have a smmu-v2 but I am not sure if that is legacy. We have an smmu-500 and so that would seem more appropriate.
>
> I tried to use the binding synonymous to other vendors.
> V2 is the architecture version. MMU-500 is the actual implementation from ARM based on V2 arch. As we just use the MMU-500 IP as it is, It can be named as nvidia,smmu-500 or similar as well.
Yup, that sounds OK to me if you want a broader compatible to
potentially match other future SoCs as well.
> Others probably having their own implementation based on V2 arch.
Exactly - "cavium,smmu-v2" and "qcom,smmu-v2" are their own in-house
microarchitectures, not one of Arm's designs, so they don't really have
a suitable 'product name' we could have used for the bindings.
Robin.
next prev parent reply other threads:[~2020-07-02 16:05 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-30 0:10 [PATCH v8 0/3] Nvidia Arm SMMUv2 Implementation Krishna Reddy
[not found] ` <20200630001051.12350-1-vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 0:10 ` [PATCH v8 1/3] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage Krishna Reddy
[not found] ` <20200630001051.12350-2-vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 0:16 ` Nicolin Chen
2020-06-30 5:54 ` Pritesh Raithatha
2020-06-30 8:19 ` Jon Hunter
[not found] ` <53bfa5c8-c32d-6fa3-df60-a18ab33ca1c2-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 14:53 ` Robin Murphy
[not found] ` <d59b7220-168c-419f-db16-194307e11065-5wv7dgnIgG8@public.gmane.org>
2020-06-30 15:17 ` Jon Hunter
2020-07-01 18:18 ` Krishna Reddy
[not found] ` <BYAPR12MB2822FC263456303302EF30BEB36C0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-07-01 18:56 ` Robin Murphy
[not found] ` <9ae6b6e6-bd64-9c89-49ca-1f5785ef3f0c-5wv7dgnIgG8@public.gmane.org>
2020-07-01 19:12 ` Krishna Reddy
2020-06-30 17:04 ` Krishna Reddy
2020-06-30 10:17 ` Jon Hunter
[not found] ` <e6da9661-4e62-6e34-ac21-63ff993ca8bc-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 16:23 ` Krishna Reddy
[not found] ` <BYAPR12MB282210677459B8D62623C642B36F0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-06-30 16:32 ` Jon Hunter
[not found] ` <4037efc7-fbed-e8cf-dac7-212c65014e4e-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 16:44 ` Jon Hunter
2020-06-30 17:16 ` Krishna Reddy
[not found] ` <BYAPR12MB2822B43B0218F6E55C97451BB36F0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-06-30 19:03 ` Jon Hunter
[not found] ` <64ffa84f-a8cf-ae81-6306-b5d8b1ff0618-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 20:21 ` Krishna Reddy
2020-06-30 0:10 ` [PATCH v8 2/3] dt-bindings: arm-smmu: Add binding for Tegra194 SMMU Krishna Reddy
2020-06-30 6:01 ` Pritesh Raithatha
[not found] ` <20200630001051.12350-3-vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 8:21 ` Jon Hunter
2020-06-30 12:27 ` Robin Murphy
[not found] ` <3e655881-bac4-f083-44ed-cfa0a61298d0-5wv7dgnIgG8@public.gmane.org>
2020-07-01 18:28 ` Krishna Reddy
[not found] ` <BYAPR12MB28222D6ADEBA966AA27FA9ECB36C0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-07-01 18:47 ` Jon Hunter
[not found] ` <0d4f46d6-6a4e-bca0-bcf3-0e22a950e57b-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-07-01 19:00 ` Krishna Reddy
[not found] ` <BYAPR12MB282245DD6BB50ECA700AC69EB36C0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-07-01 19:31 ` Jon Hunter
[not found] ` <b10673f6-2a01-b9e5-0948-9684ffbe1813-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-07-01 19:39 ` Krishna Reddy
[not found] ` <BYAPR12MB2822EE99210BFA984ECB954AB36C0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-07-02 16:05 ` Robin Murphy [this message]
2020-07-01 19:03 ` Robin Murphy
2020-06-30 0:10 ` [PATCH v8 3/3] iommu/arm-smmu: Add global/context fault implementation hooks Krishna Reddy
[not found] ` <20200630001051.12350-4-vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2020-06-30 0:19 ` Nicolin Chen
2020-06-30 5:58 ` Pritesh Raithatha
2020-06-30 8:37 ` Jon Hunter
2020-06-30 12:13 ` Robin Murphy
[not found] ` <6c2ce909-c71b-351f-79f5-b1a4b4c0e4ac-5wv7dgnIgG8@public.gmane.org>
2020-06-30 12:42 ` Jon Hunter
2020-07-01 18:48 ` Krishna Reddy
[not found] ` <BYAPR12MB282244D2B008E1C8CA57916BB36C0-ZGDeBxoHBPlXmIuPQoPGkAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2020-07-01 19:14 ` Robin Murphy
[not found] ` <446ffe79-3a44-5d41-459f-b698a1cc361b-5wv7dgnIgG8@public.gmane.org>
2020-07-01 19:22 ` Krishna Reddy
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=04e35d51-5e65-047d-90ef-a2de901eb15d@arm.com \
--to=robin.murphy-5wv7dgnigg8@public.gmane.org \
--cc=Snikam-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=YHsu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=bbiswas-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=bhuntsman-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=nicoleotsuka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=nicolinc-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=talho-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=vdumpa-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=will-DgEjT+Ai2ygdnm+yROfE0A@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