Thread (45 messages) 45 messages, 7 authors, 2016-11-29

[PATCH v7 04/16] drivers: iommu: make of_iommu_set/get_ops() DT agnostic

From: joro@8bytes.org (Joerg Roedel)
Date: 2016-11-11 16:27:40
Also in: linux-acpi, linux-iommu, linux-pci, lkml

On Fri, Nov 11, 2016 at 04:17:37PM +0000, Robin Murphy wrote:
In the original of_iommu_configure design, the thought was that an ops
structure could be IOMMU-instance-specific (hence the later-removed
"priv" member), so I suppose right now it is mostly a hangover from
that. However, it's also what we initialise a device's fwspec with, so
becomes important again if we're ever going to get past the limitations
of buses-which-are-not-actually-buses[1].
Yeah, I discussed this with a few others at LPC. My current idea is to
tell the iommu-core which hardware-iommus exist in the system and a
seperate iommu_ops ptr for each of them. Then every struct device can
link to the iommu-instance it is translated by.

We are not there yet, but this will give you the same per-device
iommu-ops as implemented here.



	Joerg
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help