[PATCH] Support PCIe Alternative RID Interpretation (ARI)

Ryan Stone rysto32 at gmail.com
Thu Mar 27 18:48:37 UTC 2014


On Tue, Mar 25, 2014 at 5:13 PM, Konstantin Belousov
<kostikbel at gmail.com> wrote:
> Well, either the interface I described is provided by pci core, or
> iommu has to de-facto implement it itself.  IMO it is clearer to have
> it in pci, but I do not want to block your work on this.

Yes, but this amounts to some simple masking and shifting on the RID.
I don't think that's a very high burden.

> I mean, that slot and func should be obtained using pci accessors where
> needed.  It is definitely not perf-critical, and I dislike having both
> bsf and rid in the context structure more, then using accessors.

Ok, I've updated the DMAR patch to use pci accessors instead.  This
required moving the initialization of ctx_tag.owner earlier in the
initialization of the DMAR ctx, but beyond that the change was
trivial.


More information about the freebsd-hackers mailing list