On 5/12/22 22:00, Thierry Reding wrote:
> -277,7 +278,9 @@ static struct iommu_domain *tegra_smmu_domain_alloc(unsigned 
> type)
>  {
>       struct tegra_smmu_as *as;
>  
> -     if (type != IOMMU_DOMAIN_UNMANAGED)
> +     if (type != IOMMU_DOMAIN_UNMANAGED &&
> +         type != IOMMU_DOMAIN_DMA &&
> +         type != IOMMU_DOMAIN_IDENTITY)
>               return NULL;

Shouldn't at least pre-210 SoCs be guarded from IOMMU_DOMAIN_DMA? I
don't think that DRM and VDE drivers will work as-is today.

-- 
Best regards,
Dmitry
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to