]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Free the IOMMU domain when there is no device to attach
authorPaul Kocialkowski <contact@paulk.fr>
Mon, 10 Jul 2017 19:33:05 +0000 (21:33 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Jul 2017 14:57:34 +0000 (16:57 +0200)
commit28404e0a1f3c8be3c8be22663c6856aa579f3ac7
treeaf175c1f7eb513ee3e9e626cf19162d6d7561c2f
parent7545692ab74d0cda13b22ea39f5d4fc58cf9c1e0
gpu: host1x: Free the IOMMU domain when there is no device to attach

When there is no device to attach to the IOMMU domain, as may be the
case when the device-tree does not contain the proper iommu node, it is
best to keep going without IOMMU support rather than failing.
This allows the driver to probe and function instead of taking down
all of the tegra drm driver, leading to missing display support.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Fixes: efaf3371c37f ("gpu: host1x: Add IOMMU support")
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170710193305.5987-1-contact@paulk.fr
drivers/gpu/host1x/dev.c