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
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to