Re: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA
From: Jason Gunthorpe
Date: Mon May 08 2023 - 12:55:56 EST
On Mon, May 08, 2023 at 09:42:18AM -0700, Linus Torvalds wrote:
> On Mon, May 8, 2023 at 9:35 AM Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx> wrote:
> > Conversely, we could also have some part of PASID that is not about SVA.
> If that's the case, then we should *definitely* have that IOMMU_PASID
> kind of config option.
> Then IOMMU_SVA - that needs PASID - can "select" it, but any other use
> - that doesn't bother about SVA but might want PASID for its own
> nefarious purposes - can also select it.
Yes, this has been unwinding slowly, but this mm part is about SVA,
and specifically ENQCMD, and not about PASID, other than SVA and
ENCQCMD are both using PASID.
CONFIG_IOMMU_MM_PASID perhaps? Says what it does without a clue about
why it does it. x86 arch code could select it ideally?