]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit172bcb9d66355094328a329f4e51134e6e03948a
treef89e9a1ee8a9e32d9831116f376da4bc8c047583
parent0d5624e606504772b89d3c3d6b1be740ef176c61
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