powerpc/dma: handle iommu bypass in dma_iommu_ops
Add a new iommu_bypass flag to struct dev_archdata so that the dma_iommu implementation can handle the direct mapping transparently instead of switiching ops around. Setting of this flag is controlled by new pci_controller_ops method. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
a20f507f57
commit
8617a5c5bc
@@ -19,6 +19,8 @@ struct device_node;
|
||||
struct pci_controller_ops {
|
||||
void (*dma_dev_setup)(struct pci_dev *pdev);
|
||||
void (*dma_bus_setup)(struct pci_bus *bus);
|
||||
bool (*iommu_bypass_supported)(struct pci_dev *pdev,
|
||||
u64 mask);
|
||||
|
||||
int (*probe_mode)(struct pci_bus *bus);
|
||||
|
||||
|
Reference in New Issue
Block a user