* Need some information about IOMMU support for ARM64 in 4.6
@ 2016-12-15 6:50 Bhargav Shah
2016-12-15 14:59 ` Robin Murphy
0 siblings, 1 reply; 2+ messages in thread
From: Bhargav Shah @ 2016-12-15 6:50 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
I am using kernel version 4.6.
of_iommu_configure() gets IOMMU ops from of_iommu_list and call arch_setup_dma_ops.
Presently, __iommu_setup_dma_ops() it expects iommu ops to be present.
Here, of_iommu_configure() get NULL iommu ops and it calls arch_setup_dma_ops with it.
So, in my current flow iommu ops is not getting set for device.
Am I missing something which is causing this ?
What is proper way to set iommu ops to device ?
Thanks
Bhargav
^ permalink raw reply [flat|nested] 2+ messages in thread
* Need some information about IOMMU support for ARM64 in 4.6
2016-12-15 6:50 Need some information about IOMMU support for ARM64 in 4.6 Bhargav Shah
@ 2016-12-15 14:59 ` Robin Murphy
0 siblings, 0 replies; 2+ messages in thread
From: Robin Murphy @ 2016-12-15 14:59 UTC (permalink / raw)
To: linux-arm-kernel
Hi Barghav,
I assume you're talking about the ARM SMMU(v2)?
On 15/12/16 06:50, Bhargav Shah wrote:
> Hi,
> I am using kernel version 4.6.
> of_iommu_configure() gets IOMMU ops from of_iommu_list and call arch_setup_dma_ops.
> Presently, __iommu_setup_dma_ops() it expects iommu ops to be present.
> Here, of_iommu_configure() get NULL iommu ops and it calls arch_setup_dma_ops with it.
>
> So, in my current flow iommu ops is not getting set for device.
Yes. The SMMUv2 driver in 4.6 does not call of_iommu_set_ops(). That's
because it doesn't support of_xlate() either, so in general can't be
used for DMA ops. The default domain support which went into 4.6 was
just some early groundwork which, in hindsight, caused more problems
than it solved at that time.
> Am I missing something which is causing this ?
> What is proper way to set iommu ops to device ?
The proper way would be to update to 4.9, where full generic
configuration and DMA ops support finally landed ;)
Robin.
>
> Thanks
> Bhargav
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-15 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-15 6:50 Need some information about IOMMU support for ARM64 in 4.6 Bhargav Shah
2016-12-15 14:59 ` Robin Murphy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox