lkml.org 
[lkml]   [2023]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: [PATCH v7 3/4] iommu/vt-d: Add set_dev_pasid callback for dma domain
    Date
    > From: Baolu Lu <baolu.lu@linux.intel.com>
    > Sent: Friday, May 26, 2023 10:43 AM
    >
    > >
    > >> +
    > >> + ret = domain_attach_iommu(dmar_domain, iommu);
    > >> + if (ret)
    > >> + goto out_free;
    > >> +
    > >> + if (domain_type_is_si(dmar_domain))
    > >> + ret = intel_pasid_setup_pass_through(iommu, dmar_domain,
    > >> + dev, pasid);
    > >> + else if (dmar_domain->use_first_level)
    > >> + ret = domain_setup_first_level(iommu, dmar_domain,
    > >> + dev, pasid);
    > >> + else
    > >> + ret = intel_pasid_setup_second_level(iommu, dmar_domain,
    > >> + dev, pasid);
    > >
    > > Here you allow attaching pasid to a domain using second-level but all
    > > prior changes are only for first-level.
    >
    > As explained, prior changes are for pasid-base iotlb invalidation for
    > first level page table change. Or perhaps I didn't get you correctly?
    >

    No. you are correct.
    \
     
     \ /
      Last update: 2023-06-14 10:11    [W:2.327 / U:0.624 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site