CONFIG_GENERIC_PT Generic Radix Page Table
Generic library for building radix tree page tables.
Generic PT provides a set of HW page table formats and a common set of APIs to work with them.
If GENERIC_PT
CONFIG_DEBUG_GENERIC_PT Extra debugging checks for GENERIC_PT
Enable extra run time debugging checks for GENERIC_PT code. This incurs a runtime cost and should not be enabled for production kernels.
The kunit tests require this to be enabled to get full coverage.
CONFIG_IOMMU_PT IOMMU Page Tables
- Off
- Module
- Built in
Generic library for building IOMMU page tables
IOMMU_PT provides an implementation of the page table operations related to struct iommu_domain using GENERIC_PT. It provides a single implementation of the page table operations that can be shared by multiple drivers.
- Depends on
IOMMU_SUPPORT && GENERIC_PT - Selects
IOMMU_API if IOMMU_SUPPORT && GENERIC_PT
If IOMMU_PT
- Depends on
GENERIC_PT && IOMMU_PT
CONFIG_IOMMU_PT_AMDV1 IOMMU page table for 64-bit AMD IOMMU v1
- Off
- Module
- Built in
iommu_domain implementation for the AMD v1 page table. AMDv1 is the "host" page table. It supports granular page sizes of almost every power of 2 and decodes the full 64-bit IOVA space.
Selected automatically by an IOMMU driver that uses this format.
- Depends on
GENERIC_PT && IOMMU_PT && !GENERIC_ATOMIC64
CONFIG_IOMMU_PT_VTDSS IOMMU page table for Intel VT-d Second Stage
- Off
- Module
- Built in
iommu_domain implementation for the Intel VT-d's 64 bit 3/4/5 level Second Stage page table. It is similar to the X86_64 format with 4K/2M/1G page sizes.
Selected automatically by an IOMMU driver that uses this format.
- Depends on
GENERIC_PT && IOMMU_PT && !GENERIC_ATOMIC64
CONFIG_IOMMU_PT_RISCV64 IOMMU page table for RISC-V 64 bit Sv57/Sv48/Sv39
- Off
- Module
- Built in
iommu_domain implementation for RISC-V 64 bit 3/4/5 level page table. It supports 4K/2M/1G/512G/256T page sizes and can decode a sign extended portion of the 64 bit IOVA space.
Selected automatically by an IOMMU driver that uses this format.
- Depends on
GENERIC_PT && IOMMU_PT && !GENERIC_ATOMIC64
CONFIG_IOMMU_PT_X86_64 IOMMU page table for x86 64-bit, 4/5 levels
- Off
- Module
- Built in
iommu_domain implementation for the x86 64-bit 4/5 level page table. It supports 4K/2M/1G page sizes and can decode a sign-extended portion of the 64-bit IOVA space.
Selected automatically by an IOMMU driver that uses this format.
- Depends on
GENERIC_PT && IOMMU_PT && !GENERIC_ATOMIC64
CONFIG_IOMMU_PT_BCM2712 IOMMU page table for Broadcom BCM2712
- Off
- Module
- Built in
iommu_domain implementation for the Broadcom BCM2712 IOMMU found on Raspberry Pi 5. It supports 4K page sizes over a 2-level page table format.
Selected automatically by an IOMMU driver that uses this format.
- Depends on
GENERIC_PT && IOMMU_PT
CONFIG_IOMMU_PT_KUNIT_TEST IOMMU Page Table KUnit Test
- Off
- Module
- Built in
Enable kunit tests for GENERIC_PT and IOMMU_PT that covers all the enabled page table formats. The test covers most of the GENERIC_PT functions provided by the page table format, as well as covering the iommu_domain related functions.
- Depends on
GENERIC_PT && IOMMU_PT && KUNIT && (IOMMU_PT_AMDV1 || !IOMMU_PT_AMDV1) && (IOMMU_PT_RISCV64 || !IOMMU_PT_RISCV64) && (IOMMU_PT_X86_64 || !IOMMU_PT_X86_64) && (IOMMU_PT_VTDSS || !IOMMU_PT_VTDSS) && (IOMMU_PT_BCM2712 || !IOMMU_PT_BCM2712)