linux/drivers/of
Laurent Pinchart 7b07cbefb6 iommu: of: Handle IOMMU lookup failure with deferred probing or error
Failures to look up an IOMMU when parsing the DT iommus property need to
be handled separately from the .of_xlate() failures to support deferred
probing.

The lack of a registered IOMMU can be caused by the lack of a driver for
the IOMMU, the IOMMU device probe not having been performed yet, having
been deferred, or having failed.

The first case occurs when the device tree describes the bus master and
IOMMU topology correctly but no device driver exists for the IOMMU yet
or the device driver has not been compiled in. Return NULL, the caller
will configure the device without an IOMMU.

The second and third cases are handled by deferring the probe of the bus
master device which will eventually get reprobed after the IOMMU.

The last case is currently handled by deferring the probe of the bus
master device as well. A mechanism to either configure the bus master
device without an IOMMU or to fail the bus master device probe depending
on whether the IOMMU is optional or mandatory would be a good
enhancement.

Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Laurent Pichart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2017-04-20 16:31:07 +02:00
..
unittest-data
address.c
base.c DeviceTree updates for 4.11: 2017-02-22 19:23:14 -08:00
device.c iommu: of: Handle IOMMU lookup failure with deferred probing or error 2017-04-20 16:31:07 +02:00
dynamic.c
fdt_address.c
fdt.c DeviceTree updates for 4.11: 2017-02-22 19:23:14 -08:00
irq.c of/irq: improve error report on irq discovery process failure 2017-01-09 09:52:17 -06:00
Kconfig
Makefile
of_mdio.c of_mdio: Add "broadcom,bcm5241" to the whitelist. 2017-02-19 18:19:37 -05:00
of_net.c
of_numa.c
of_pci_irq.c of/irq: improve error report on irq discovery process failure 2017-01-09 09:52:17 -06:00
of_pci.c
of_private.h
of_reserved_mem.c of: reserved_mem: set dma_ops for devices using reserved mem 2017-01-04 14:00:45 -06:00
overlay.c of: remove redundant memset in overlay 2017-01-09 14:21:23 -06:00
pdt.c
platform.c of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices 2017-04-20 16:31:06 +02:00
resolver.c of: drop duplicate headers 2017-01-04 14:01:28 -06:00
unittest.c of/unittest: Swap arguments of of_unittest_apply_overlay() 2017-01-23 14:58:03 -06:00