]> 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)
commit0d6957e421d628aa2edc8760b25a4fb9c66be885
treef89e9a1ee8a9e32d9831116f376da4bc8c047583
parent2358d48a6db92cb022eb848a0943363a742d51a5
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