Skip to content

Commit 4466b1f

Browse files
digetxthierryreding
authored andcommitted
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>
1 parent ce397d2 commit 4466b1f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/gpu/host1x/dev.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ static int host1x_probe(struct platform_device *pdev)
218218
return err;
219219
}
220220

221+
if (IS_ENABLED(CONFIG_TEGRA_HOST1X_FIREWALL))
222+
goto skip_iommu;
223+
221224
host->group = iommu_group_get(&pdev->dev);
222225
if (host->group) {
223226
struct iommu_domain_geometry *geometry;

0 commit comments

Comments
 (0)