-
- Downloads
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>
Showing
- arch/Kconfig 5 additions, 0 deletionsarch/Kconfig
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- arch/x86/kernel/traps.c 1 addition, 1 deletionarch/x86/kernel/traps.c
- drivers/iommu/Kconfig 1 addition, 0 deletionsdrivers/iommu/Kconfig
- include/linux/iommu.h 1 addition, 1 deletioninclude/linux/iommu.h
- include/linux/mm_types.h 1 addition, 1 deletioninclude/linux/mm_types.h
- include/linux/sched.h 1 addition, 1 deletioninclude/linux/sched.h
- kernel/fork.c 1 addition, 1 deletionkernel/fork.c
- mm/Kconfig 3 additions, 0 deletionsmm/Kconfig
- mm/init-mm.c 1 addition, 1 deletionmm/init-mm.c
Loading
Please register or sign in to comment