gpu: host1x: Skip IOMMU initialization if firewall is enabled
authorDmitry Osipenko <digetx@gmail.com>
Sat, 19 May 2018 01:07:10 +0000 (04:07 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jul 2018 08:31:10 +0000 (10:31 +0200)
commit4466b1f0e022f94a026bd700fee34bff15cdc4ef
treef89e9a1ee8a9e32d9831116f376da4bc8c047583
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
gpu: host1x: Skip IOMMU initialization if firewall is enabled

Host1x's CDMA can't access the command buffers if IOMMU and Host1x
firewall are enabled in the kernels config because firewall doesn't map
the copied buffer into IOVA space. Fix this by skipping IOMMU
initialization if firewall is enabled as firewall merges sparse cmdbufs
into a single contiguous buffer and hence IOMMU isn't needed in this case.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c