On Tue, 22 Oct 2019 21:04:00 -0700 Jacob Pan <jacob.jun....@linux.intel.com> wrote:
> > > + if (cap_caching_mode(iommu->cap) && > > > sm_supported(iommu)) { > > > > do you need to check against cap_caching_mode() or ecap_vcmd? > > > I guess ecap_vcmd() will suffice. Kind of redundant. Actually, we can check vcmd and vcmd_pasid here, then we dont need to check it on every alloc/free calls. Thanks, Jacob _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu