* [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132
@ 2023-08-10 21:45 Rayyan Ansari
2023-08-16 16:24 ` Thierry Reding
2023-08-16 16:24 ` Thierry Reding
0 siblings, 2 replies; 5+ messages in thread
From: Rayyan Ansari @ 2023-08-10 21:45 UTC (permalink / raw)
To: linux-tegra
Cc: Rayyan Ansari, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Thierry Reding, Jonathan Hunter, devicetree, linux-kernel
Add the iommu property to the host1x node to register it with its
swgroup.
Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
---
arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
index 8b78be8f4f9d..7e24a212c7e4 100644
--- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
@@ -93,6 +93,8 @@ host1x@50000000 {
resets = <&tegra_car 28>;
reset-names = "host1x";
+ iommus = <&mc TEGRA_SWGROUP_HC>;
+
#address-cells = <2>;
#size-cells = <2>;
--
2.41.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132
2023-08-10 21:45 [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132 Rayyan Ansari
@ 2023-08-16 16:24 ` Thierry Reding
2023-08-16 19:56 ` Rayyan Ansari
2023-08-16 16:24 ` Thierry Reding
1 sibling, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2023-08-16 16:24 UTC (permalink / raw)
To: Rayyan Ansari
Cc: linux-tegra, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jonathan Hunter, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
On Thu, Aug 10, 2023 at 10:45:41PM +0100, Rayyan Ansari wrote:
> Add the iommu property to the host1x node to register it with its
> swgroup.
>
> Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
> ---
> arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
Do you happen to have a Tegra132 device that you can test upstream Linux
on? Just asking out of curiosity because these devices are becoming very
rare these days and it'd be good to know if people are still using these
and that recent Linux kernels are still running on them.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132
2023-08-10 21:45 [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132 Rayyan Ansari
2023-08-16 16:24 ` Thierry Reding
@ 2023-08-16 16:24 ` Thierry Reding
1 sibling, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2023-08-16 16:24 UTC (permalink / raw)
To: linux-tegra, Rayyan Ansari
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding,
Jonathan Hunter, devicetree, linux-kernel
From: Thierry Reding <treding@nvidia.com>
On Thu, 10 Aug 2023 22:45:41 +0100, Rayyan Ansari wrote:
> Add the iommu property to the host1x node to register it with its
> swgroup.
>
>
Applied, thanks!
[1/1] arm64: tegra: Enable IOMMU for host1x on Tegra132
commit: ffca3ccbe50e12a83facfc7e9beabd1851345fa0
Best regards,
--
Thierry Reding <treding@nvidia.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132
2023-08-16 16:24 ` Thierry Reding
@ 2023-08-16 19:56 ` Rayyan Ansari
2023-08-16 20:09 ` Rayyan Ansari
0 siblings, 1 reply; 5+ messages in thread
From: Rayyan Ansari @ 2023-08-16 19:56 UTC (permalink / raw)
To: Thierry Reding
Cc: linux-tegra, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jonathan Hunter, devicetree, linux-kernel
On 16/08/2023 17:24, Thierry Reding wrote:
> On Thu, Aug 10, 2023 at 10:45:41PM +0100, Rayyan Ansari wrote:
>> Add the iommu property to the host1x node to register it with its
>> swgroup.
>>
>> Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
>> ---
>> arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
>> 1 file changed, 2 insertions(+)
>
> Do you happen to have a Tegra132 device that you can test upstream Linux
> on? Just asking out of curiosity because these devices are becoming very
> rare these days and it'd be good to know if people are still using these
> and that recent Linux kernels are still running on them.
I do - I have the Nexus 9. At some point I was trying to mainline it,
but I stopped as I couldn't manage to get USB working - I only got
simplefb working. If it would be useful I could see if my old patches
work now and submit them.
>
> Thierry
--
Rayyan Ansari
https://ansari.sh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132
2023-08-16 19:56 ` Rayyan Ansari
@ 2023-08-16 20:09 ` Rayyan Ansari
0 siblings, 0 replies; 5+ messages in thread
From: Rayyan Ansari @ 2023-08-16 20:09 UTC (permalink / raw)
To: Thierry Reding
Cc: linux-tegra, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jonathan Hunter, devicetree, linux-kernel
On 16/08/2023 20:56, Rayyan Ansari wrote:
> On 16/08/2023 17:24, Thierry Reding wrote:
>> On Thu, Aug 10, 2023 at 10:45:41PM +0100, Rayyan Ansari wrote:
>>> Add the iommu property to the host1x node to register it with its
>>> swgroup.
>>>
>>> Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
>>> ---
>>> arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
>>> 1 file changed, 2 insertions(+)
>>
>> Do you happen to have a Tegra132 device that you can test upstream Linux
>> on? Just asking out of curiosity because these devices are becoming very
>> rare these days and it'd be good to know if people are still using these
>> and that recent Linux kernels are still running on them.
>
> I do - I have the Nexus 9. At some point I was trying to mainline it,
> but I stopped as I couldn't manage to get USB working - I only got
> simplefb working. If it would be useful I could see if my old patches
> work now and submit them.
I looked through my old notes and I was able to get USB host mode (ie
USB OTG) working but not USB device mode.
>
>>
>> Thierry
>
--
Rayyan Ansari
https://ansari.sh
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-16 20:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 21:45 [PATCH] arm64: tegra: Enable IOMMU for host1x on Tegra132 Rayyan Ansari
2023-08-16 16:24 ` Thierry Reding
2023-08-16 19:56 ` Rayyan Ansari
2023-08-16 20:09 ` Rayyan Ansari
2023-08-16 16:24 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).