* IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration?
@ 2024-03-01 22:00 Nicolin Chen
2024-03-04 9:25 ` Jean-Philippe Brucker
0 siblings, 1 reply; 4+ messages in thread
From: Nicolin Chen @ 2024-03-01 22:00 UTC (permalink / raw)
To: jean-philippe, robin.murphy, will, lpieralisi; +Cc: linux-arm-kernel
Hi all.
Currently, the SMMUv3 driver relies on IOMMU_FWSPEC_PCI_RC_ATS
in arm_smmu_ats_supported(). This flag seems to be only set in
the drivers/acpi/arm64/iort.c file, which does not work for DT
configuration.
We have a need to enable ATS on a system using Device Tree. Is
there a suggested way or name of DT binding to add?
Thanks
Nicolin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration?
2024-03-01 22:00 IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration? Nicolin Chen
@ 2024-03-04 9:25 ` Jean-Philippe Brucker
2024-03-07 3:53 ` Nicolin Chen
0 siblings, 1 reply; 4+ messages in thread
From: Jean-Philippe Brucker @ 2024-03-04 9:25 UTC (permalink / raw)
To: Nicolin Chen; +Cc: robin.murphy, will, lpieralisi, linux-arm-kernel
Hi,
On Fri, Mar 01, 2024 at 02:00:08PM -0800, Nicolin Chen wrote:
> Hi all.
>
> Currently, the SMMUv3 driver relies on IOMMU_FWSPEC_PCI_RC_ATS
> in arm_smmu_ats_supported(). This flag seems to be only set in
> the drivers/acpi/arm64/iort.c file, which does not work for DT
> configuration.
>
> We have a need to enable ATS on a system using Device Tree. Is
> there a suggested way or name of DT binding to add?
"ats-supported" was acked by Rob:
https://lore.kernel.org/linux-iommu/20200311124506.208376-2-jean-philippe@linaro.org/
I don't remember why I didn't follow up with that series, probably just
the lack of users at the time (Arm SW model was the only ATS
implementation). A simpler implementation would be setting the existing
fwspec flag:
https://jpbrucker.net/git/linux/commit/?h=sva/current&id=4b6d187154557a7c46c9a67c13453d40a03cc078
Thanks,
Jean
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration?
2024-03-04 9:25 ` Jean-Philippe Brucker
@ 2024-03-07 3:53 ` Nicolin Chen
2024-04-25 5:11 ` Nicolin Chen
0 siblings, 1 reply; 4+ messages in thread
From: Nicolin Chen @ 2024-03-07 3:53 UTC (permalink / raw)
To: Jean-Philippe Brucker; +Cc: robin.murphy, will, lpieralisi, linux-arm-kernel
Hi Jean,
On Mon, Mar 04, 2024 at 09:25:36AM +0000, Jean-Philippe Brucker wrote:
> Hi,
>
> On Fri, Mar 01, 2024 at 02:00:08PM -0800, Nicolin Chen wrote:
> > Hi all.
> >
> > Currently, the SMMUv3 driver relies on IOMMU_FWSPEC_PCI_RC_ATS
> > in arm_smmu_ats_supported(). This flag seems to be only set in
> > the drivers/acpi/arm64/iort.c file, which does not work for DT
> > configuration.
> >
> > We have a need to enable ATS on a system using Device Tree. Is
> > there a suggested way or name of DT binding to add?
>
> "ats-supported" was acked by Rob:
>
> https://lore.kernel.org/linux-iommu/20200311124506.208376-2-jean-philippe@linaro.org/
>
> I don't remember why I didn't follow up with that series, probably just
> the lack of users at the time (Arm SW model was the only ATS
> implementation). A simpler implementation would be setting the existing
> fwspec flag:
> https://jpbrucker.net/git/linux/commit/?h=sva/current&id=4b6d187154557a7c46c9a67c13453d40a03cc078
Thanks for the reply and links!
I am out of office this week. So I've asked my team mate to
get that a try.
Thank you
Nicolin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration?
2024-03-07 3:53 ` Nicolin Chen
@ 2024-04-25 5:11 ` Nicolin Chen
0 siblings, 0 replies; 4+ messages in thread
From: Nicolin Chen @ 2024-04-25 5:11 UTC (permalink / raw)
To: Jean-Philippe Brucker
Cc: robin.murphy, will, lpieralisi, linux-arm-kernel, Ketan Patil
Hi Jean,
On Wed, Mar 06, 2024 at 07:53:20PM -0800, Nicolin Chen wrote:
> On Mon, Mar 04, 2024 at 09:25:36AM +0000, Jean-Philippe Brucker wrote:
> > > We have a need to enable ATS on a system using Device Tree. Is
> > > there a suggested way or name of DT binding to add?
> >
> > "ats-supported" was acked by Rob:
> >
> > https://lore.kernel.org/linux-iommu/20200311124506.208376-2-jean-philippe@linaro.org/
> >
> > I don't remember why I didn't follow up with that series, probably just
> > the lack of users at the time (Arm SW model was the only ATS
> > implementation). A simpler implementation would be setting the existing
> > fwspec flag:
> > https://jpbrucker.net/git/linux/commit/?h=sva/current&id=4b6d187154557a7c46c9a67c13453d40a03cc078
> I am out of office this week. So I've asked my team mate to
> get that a try.
My team mate verified this patch using a DT configuration.
Would it be possible for you to respin the of_iommu patch?
If yes, please also add his tag:
Tested-by: Ketan Patil <ketanp@nvidia.com>
Thanks!
Nicolin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-25 5:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 22:00 IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration? Nicolin Chen
2024-03-04 9:25 ` Jean-Philippe Brucker
2024-03-07 3:53 ` Nicolin Chen
2024-04-25 5:11 ` Nicolin Chen
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).