Files
linux/arch/x86/kernel
Jason Gunthorpe 8f23f5dba6 iommu: Change kconfig around IOMMU_SVA
Linus suggested that the kconfig here is confusing:

https://lore.kernel.org/all/CAHk-=wgUiAtiszwseM1p2fCJ+sC4XWQ+YN4TanFhUgvUqjr9Xw@mail.gmail.com/

Let's break it into three kconfigs controlling distinct things:

 - CONFIG_IOMMU_MM_DATA controls if the mm_struct has the additional
   fields for the IOMMU. Currently only PASID, but later patches store
   a struct iommu_mm_data *

 - CONFIG_ARCH_HAS_CPU_PASID controls if the arch needs the scheduling bit
   for keeping track of the ENQCMD instruction. x86 will select this if
   IOMMU_SVA is enabled

 - IOMMU_SVA controls if the IOMMU core compiles in the SVA support code
   for iommu driver use and the IOMMU exported API

This way ARM will not enable CONFIG_ARCH_HAS_CPU_PASID

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231027000525.1278806-2-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2023-12-12 10:11:27 +01:00
..
2023-08-17 17:07:09 +02:00
2022-09-26 10:13:16 -07:00
2022-04-19 17:14:09 -07:00
2023-08-09 11:58:34 -07:00
2023-06-19 16:19:10 -07:00
2023-09-19 07:04:49 +02:00
2023-08-02 15:01:51 -07:00
2021-12-01 00:06:43 +01:00
2022-12-10 10:33:11 -06:00
2023-01-06 04:22:34 +01:00
2022-02-25 09:36:05 +01:00
2023-07-11 14:12:19 -07:00
2022-09-26 19:46:16 -07:00
2021-10-25 23:02:36 -04:00
2023-12-12 10:11:27 +01:00
2022-04-14 14:09:43 +02:00
2023-10-10 14:38:19 +02:00