[PATCH 03/37] iommu/sva: Manage process address spaces
Jean-Philippe Brucker
jean-philippe.brucker at arm.com
Thu Feb 22 05:17:32 PST 2018
On 22/02/18 09:03, Yisheng Xie wrote:
[...]
>> + /* Is it already bound to this device? */
>> + list_for_each_entry(tmp, &io_mm->devices, mm_head) {
>> + if (tmp->dev != dev)
>> + continue;
>> +
>> + bond = tmp;
>> + refcount_inc(&bond->refs);
>> + io_mm_put_locked(io_mm);
>
> Should io_mm->pasid still be set to *pasid when the device already bond? so driver can
> always get the right pasid if it bond to a mm multi-times, without keeping the pasid itself?
(Assuming you mean set *pasid = io_mm->pasid) I think it should, I seem to
have removed it by accident from this version
Thanks,
Jean
More information about the linux-arm-kernel
mailing list