gpu: host1x: Avoid trying to use GART on Tegra20
[platform/kernel/linux-starfive.git] / drivers / gpu / host1x / dev.c
index 0cd3f97..f60ea24 100644 (file)
@@ -292,6 +292,10 @@ static void host1x_setup_virtualization_tables(struct host1x *host)
 
 static bool host1x_wants_iommu(struct host1x *host1x)
 {
+       /* Our IOMMU usage policy doesn't currently play well with GART */
+       if (of_machine_is_compatible("nvidia,tegra20"))
+               return false;
+
        /*
         * If we support addressing a maximum of 32 bits of physical memory
         * and if the host1x firewall is enabled, there's no need to enable