lkml.org 
[lkml]   [2021]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 18/18] drm/tegra: Use the iommu dma_owner mechanism
From
Date
On 12/6/21 8:40 PM, Jason Gunthorpe wrote:
> On Mon, Dec 06, 2021 at 09:59:03AM +0800, Lu Baolu wrote:
>
>> @@ -941,48 +944,44 @@ int host1x_client_iommu_attach(struct host1x_client *client)
>> * not the shared IOMMU domain, don't try to attach it to a different
>> * domain. This allows using the IOMMU-backed DMA API.
>> */
>> - if (domain && domain != tegra->domain)
>> + client->group = NULL;
>> + if (!client->dev->iommu_group || (domain && domain != tegra->domain))
>> + return iommu_device_set_dma_owner(client->dev,
>> + DMA_OWNER_DMA_API, NULL);
>> +
>> + if (!tegra->domain)
>> return 0;
>
> This if should be removed completely now
>
> Jason
>

Sure.

Best regards,
baolu

\
 
 \ /
  Last update: 2021-12-07 03:34    [W:0.066 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site