Audience: someone running inference on a GB10 (DGX Spark) who wants to know what changed in the arm64 IOMMU stack between v6.17 and v7.0, what it means for that part, and what to set. §1 is a plain-language explainer for the stock 4 KiB kernel. §§2–6 are measured on one GB10 host. §§7–15 are the arm64 IOMMU changelog the GB10 analysis depends on, reduced to the parts that reach this hardware.
Source of truth: local Linus tree at ~/go/src/git.kernel.org/pub/scm/linux
(HEAD = 93f51579e7df, tag v7.3-rc4, 2026-09-20). Every commit hash below was resolved
by git log/git show in that checkout; descriptions come from the commit messages
themselves and from the maintainer pull-request summaries quoted in §8. §§2–5 additionally
cite sysfs, kconfig, lspci, kernel log and perf stat readings taken from one GB10 host,
referred to here as gb10-ref. Its address and hostname are deliberately omitted.
Companion: 2026-09-24_iommu-arm64_changelog-full.md holds the full 162-commit arm64
changelog, including the SMMUv2, other Arm SoC driver, device-tree binding, platform
device-tree and iommufd sections that are outside GB10 scope and therefore dropped here.
This section is an explainer. It uses short sentences and one idea at a time.
Both kernels are installed on gb10-ref, so every claim below is checkable on one box.
Analogy: the page size is the size of the tiles you floor a room with. Fewer, larger tiles mean fewer pieces to look up later.
The kernel flavour sets the CPU page size. The IOMMU driver copies that choice.
Your running kernel is the 64k flavour. The stock 6.17.0-1032-nvidia uses 4 KiB pages.
Every device mapping then gets a smaller floor.
flowchart TD
A[Kernel flavour] -->|sets| B[CPU page size]
B -->|copied by| C[io-pgtable-arm granule]
C -->|sizes| D[IOMMU entries]
D -->|costs| E[Walks on a miss]
The diagram shows why a package choice changes GPU translation cost.
- The SMMU lists its supported granules in
IDR5. The driver builds a page-size list from that register (arm-smmu-v3.c:5209). arm_lpae_restrict_pgsizes()then picks the CPU page size, when the list holds it (io-pgtable-arm.c:919). The comment says it aims to match the CPU page size.- A 4 KiB granule allows blocks of 2 MiB and 1 GiB. A 64 KiB granule allows blocks of 512 MiB, and nothing between.
iommu-dmawrites one block entry for a contiguous run, or one entry per page. It cannot merge pages that are scattered in physical memory.- The device-side cache unit is fixed by hardware, not by the flavour.
lspcireportsSmallest Translation Unit: 00, so the GPU ATC works in 4 KiB units either way.
The entry count follows the floor, and the numbers are large:
| Kernel flavour | Granule | Leaf entries per GiB | Largest easy block |
|---|---|---|---|
6.17.0-1032-nvidia (stock) |
4 KiB | 262,144 | 2 MiB |
7.0.0-1019-nvidia-64k (running) |
64 KiB | 16,384 | 512 MiB |
The 64 KiB floor is 16 times cheaper in entries. The 4 KiB floor reaches a large block far
more easily. Which one wins depends on whether you reserve huge pages. This box reserves
none: HugePages_Total is 0, and THP is madvise.
Your workload sits on the floor, not on the block. The measured proof is in §3.1: THP
succeeded 393 times and fell back 53,385 times, and nr_anon_transparent_hugepages is 0.
Without huge pages, the 4 KiB kernel costs 16 times more page-table entries for the same
bytes.
| Loss | Size of the loss | Fix |
|---|---|---|
| 4 KiB mapping floor | 16 times more IOMMU entries per GiB than the 64 KiB flavour | Boot the 64k flavour, or reserve huge pages so mappings collapse into 2 MiB blocks |
No DMA_ATTR_MMIO before 6.18 |
Peer BAR mappings cannot ask for MMIO semantics at all | Upgrade; see §4.2 |
No ATS fencing across PCIe reset (c279e83953d9) |
ATS invalidation timeouts on GPU reset or driver rebind | Upgrade, or boot with pci=noats |
No contpte set_access_flags() fix (97c5550b7631) |
Fault loops when ATS walks CPU pages with no HTTU, which is this SMMU | Upgrade, or pci=noats, or CONFIG_ARM64_CONTPTE=n |
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y in both distro flavours |
Every page allocation is zeroed, unless the command line says otherwise | Put init_on_alloc=0 in the config, not only in GRUB |
THP left at madvise with no reserved huge pages |
Buffers stay at the base granule | Reserve huge pages, or set THP to always with a safe defrag |
nvidia-peermem not loaded |
None on GB10. There is no GPU device memory to register: FB Memory Usage: Total N/A, BAR1 Memory Usage: Total N/A |
Nothing. §6.3 has the discrete-GPU comparison |
CONFIG_SCHEDSTATS=y in both flavours |
Extra scheduler accounting on every dispatch | Small. Only worth a rebuild if you build your own kernel |
- Keep the
64kflavour. Judge the two flavours by the entry floor, not by results alone. The floor differs by 16 times. - If you must stay on 4 KiB, reserve huge pages at boot. One 2 MiB block then covers a whole buffer. The 64 KiB kernel needs 32 leaves, or one 512 MiB block.
- Do not load
nvidia-peermemhunting for a gain. GB10 has no GPU device memory for it to register, so the module is inert here (§6.3). - Put the GPU's IOMMU group on the flush queue. See §6.4 for why udev cannot do this.
- Pin
init_on_alloc=0in the kernel config, so a new boot entry cannot lose it. - Keep the driver defaults for
arm_smmu_v3. The three parameters are read-only at runtime, and §3.3 says whydisable_msipollingmust stay off. - Re-measure after each change with §3.4. Change one thing at a time.
| Word | What it means |
|---|---|
| granule | One page-table level's page size. The SMMU supports 4 KiB, 16 KiB, or 64 KiB |
| leaf entry | The last table entry, the one that names a real page |
| block | One entry that covers many pages, so one lookup serves them all |
| walk | The set of memory reads the SMMU makes to find a leaf entry |
| ATC | Address Translation Cache. The device holds translations the SMMU gave it |
| ATS | Address Translation Service. The device asks the SMMU for a translation first |
| STU | Smallest Translation Unit. The smallest span an ATC entry may cover |
| THP | Transparent Huge Pages. The kernel builds them in the background, on request |
| hugetlb | Huge pages you reserve at boot, so they are always available |
Check which granule the running kernel gave the SMMU, then compare with the stock kernel:
# CPU page size of the running kernel
getconf PAGE_SIZE
# The GPU's own ATC granularity, from the ATS capability register
sudo lspci -vvv -s 000f:01:00.0 | grep -A1 "Address Translation Service"
# Whether any huge pages exist for the IOMMU to collapse into
grep -E "HugePages_Total|AnonHugePages" /proc/meminfo
grep -E "thp_fault_alloc|thp_fault_fallback|nr_anon_transparent_hugepages" /proc/vmstatTo boot the stock kernel for one comparison, pick it in the GRUB menu. Then repeat the four commands and compare the entry floor. Do not change anything else in that run.
- §2 of this document: what the GB10 SMMU actually reports, with the register decode.
- §3 of this document: the tuning knobs, ranked, with the ones that do nothing here.
- §4 of this document: which knobs a 6.17 kernel can honour.
Documentation/admin-guide/kernel-parameters.txtin the tree, forpci=noats,iommu.strict, andiommu.passthrough.- Kernel parameters, rendered for the same text as HTML.
Probed read-only on gb10-ref, a single GB10 host, which was serving inference at the
time of measurement.
| Item | Value | Source |
|---|---|---|
| Product | NVIDIA_DGX_Spark |
/sys/devices/virtual/dmi/id/product_name |
| Running kernel | 7.0.0-1019-nvidia-64k (v7.0-based, Ubuntu 24.04) |
uname -r |
| CPU | 20 cores, CPU implementer 0x41, CPU part 0xd87 (Cortex-X925) on cpu0 |
/proc/cpuinfo, midr_el1 = 0x410fd871 |
| Page size / PA | 64 KiB pages, CONFIG_ARM64_PA_BITS_48 |
getconf PAGE_SIZE, kconfig |
| Boot description | ACPI (IORT present), no flattened device tree |
/sys/firmware/acpi/tables |
| SMMU instances | 3: arm-smmu-v3.{0,1,2}.auto → smmu3.0x13000000, .0x13800000, .0x14900000 |
/sys/class/iommu |
| Option mask (all three) | 0x0 → ARM_SMMU_OPT_TEGRA241_CMDQV (bit 4) not set |
kernel log |
| OAS (all three) | 40-bit | kernel log oas 40-bit (features 0x0196dfbf) |
| Features (all three) | 0x0196dfbf — set: 2_LVL_STRTAB, 2_LVL_CDTAB, TT_LE, TT_BE, PRI, ATS, MSI, COHERENCY, TRANS_S1, TRANS_S2, STALLS, HYP, VAX, RANGE_INV, SVA, E2H, ATTR_TYPES_OVR, S2FWB, BBML2. Clear: SEV, STALL_FORCE, BTM, NESTING, HA, HD, HAFT, DS |
decoded against arm-smmu-v3.h |
| GPU | 10de:2e12 at 000f:01:00.0, driver nvidia, master of smmu3.0x13000000 with 000f:00:00.0 and NVDA2014:00 |
/sys/bus/pci/.../iommu, /sys/class/iommu/*/devices |
| GPU ATS | enabled: ATSCtl: Enable+ |
lspci -vvv |
| GPU DMA mask | nvidia 000f:01:00.0: Using 40-bit DMA addresses |
kernel log |
| IOMMU policy | iommu.passthrough=0; "Default domain type: Translated"; "DMA domain TLB invalidation policy: lazy mode" |
cmdline + kernel log |
| Group types | 24 groups DMA-FQ; group 20 (the GPU) is DMA — i.e. strict |
/sys/kernel/iommu_groups/*/type |
| iommufd | not loaded, /dev/iommu absent (CONFIG_IOMMUFD=m) |
lsmod, ls /dev/iommu |
| Relevant kconfig | ARM_SMMU_V3=y, ARM_SMMU_V3_SVA=y, ARM_SMMU_V3_IOMMUFD=y, TEGRA241_CMDQV=y, ARM64_CONTPTE=y, IOMMU_IO_PGTABLE_LPAE=y, SWIOTLB=y, IOMMU_DEFAULT_PASSTHROUGH=y (overridden by cmdline) |
/boot/config-$(uname -r) |
| SMMU PMU | 17 PMCGs bound, arm_smmuv3_pmu module, events incl. pcie_ats_trans_rq, tlb_miss, trans_table_walk_access, config_cache_miss |
/sys/bus/event_source/devices |
| Workload at measurement | vLLM serving one model, TP=2 across 2 nodes, --kv-cache-dtype fp8, --load-format instanttensor, --additional-config {"ple_table_memory":"ram"}; utilization.gpu = 96 % |
pgrep -af, nvidia-smi |
ple_table_memory: ram matters here: part of the model state lives in host RAM and is
read by the GPU across the SMMU, so the SMMU is on the token path, not just at load time.
Reproduce with (read-only):
H=gb10-ref # substitute the address or name of your own GB10 host
ssh $H 'cat /sys/devices/virtual/dmi/id/product_name; uname -r; cat /proc/cmdline'
ssh $H 'sudo -n journalctl -k -b 0 | grep -E "arm-smmu-v3|iommu: |nvidia .*DMA addresses"'
ssh $H 'for d in /sys/kernel/iommu_groups/*/; do echo "$(basename $d) $(cat $d/type)"; done'
ssh $H 'sudo -n lspci -vvv -s 000f:01:00.0 | grep -A1 "Address Translation Service"'
ssh $H 'sudo -n perf stat -a -e smmuv3_pmcg_13002/pcie_ats_trans_rq/,smmuv3_pmcg_13002/tlb_miss/ -- sleep 30'perf stat -a on smmuv3_pmcg_13002 (the PMCG on the SMMU instance that owns the GPU),
while inference ran at 96 % GPU utilisation:
| Window | pcie_ats_trans_rq |
ATS req/s | tlb_miss |
miss/s | miss share | trans_table_walk_access |
walks per miss |
|---|---|---|---|---|---|---|---|
| 4.003 s | 46,994 | 11,740 | 36,449 | 9,105 | 77.6 % | — | — |
| 20.002 s | 1,644,982 | 82,242 | 838,595 | 41,926 | 51.0 % | 1,109,625 | 1.32 |
| 30.001 s | 512,227 | 17,074 | 287,784 | 9,592 | 56.2 % | 356,559 | 1.24 |
Two things the numbers say, and one thing they do not:
transactionequalledpcie_ats_trans_rqin every window. On this TBU every observed memory transaction is an ATS translation request. The GPU is driving the SMMU through the ATS path, not around it.- Half to three-quarters of those requests miss the TBU TLB and cost ~1.3 page-table
walk memory accesses each. With
COHERENCYset the walks snoop the CPU caches, but they are still real memory round-trips on a machine whose memory is also serving the CPU-side PLE table. - The rate is bursty, not steady: the 20 s and 30 s windows differ by 3.2× and the per-second intervals inside a window span tens to tens of thousands. Do not treat any single average as the workload's ATS demand; sample over the phase you care about (prefill vs decode) and compare like with like.
smmuv3_pmcg_13802 (instance .0, which owns all the other PCIe devices plus the
NVDA8000 platform masters) counted 0 ATS requests and 39,234 TLB misses over the
same 20 s. ATS traffic is specific to the GPU path.
| Change (section) | Applies to GB10? | Mechanism / impact on GPU + inference |
|---|---|---|
97c5550b7631 contpte set_access_flags() no-op (§13) |
Yes — highest relevance | The bug needs exactly this configuration: ATS in use, SMMU without HTTU (HA/HD/HAFT all clear), CONFIG_ARM64_CONTPTE=y. A dirty/read-flag update on one sub-PTE of a 2 MiB-equivalent CONT block made the gathered ptep_get() look like the target already matched, so the kernel returned "no change" while the target sub-PTE stayed PTE_RDONLY. A walker that evaluates descriptors individually — an SMMU with no HTTU — then re-faults forever. Pre-7.0 kernels on this box are exposed; the fix is in 7.0.0-1019. |
Group 20 running DMA (strict) while the kernel booted lazy (§12.4 context) |
Yes — highest operability relevance | Strict means each dma_unmap on the GPU's group performs a synchronous TLBI/CFGI plus CMD_SYNC before returning, instead of batching into the flush queue. On the path that produced 17k–82k ATS req/s this is the difference between batched and per-mapping invalidation cost. The global policy line says lazy and 24 of 25 groups are DMA-FQ; only the GPU group differs, and its type attribute has a timestamp after boot, so it changed at runtime. I did not determine who changed it — check before drawing conclusions. |
90c5def10bea + 7e0548525abd empty gather / .iotlb_sync (§12.4) |
Yes | Both sit in the exact unmap→sync path the strict GPU group exercises. 90c5def10bea alone could skip a needed .iotlb_sync for drivers that rely on it; 7e0548525abd (2026-04-08, v7.0 late) closes that. 7.0.0-1019 (built 2026-09-06) contains both. |
df180b1a4cc5 CMDQ lock fairness (§9.3) |
Yes, but low probability here | All invalidations from 20 CPUs plus ATS invalidations serialise on one counted lock per SMMU instance. The starvation window the commit describes is for "pathetically small queue sizes"; this part reports allocated 524288 entries for cmdq, so starvation is unlikely — the efficiency part still applies. |
c279e83953d9 + f5b16b802174 + a75b2be249d6 + 5d5388b0e190 ATS fencing across PCIe reset (§12.3) |
Yes, event-driven | The GPU is ATS-enabled, so a Function Level Reset, driver rebind, suspend/resume or error recovery can previously produce ATS invalidation timeouts. Now the group is parked on the blocking domain for the reset. This is what makes nvidia-smi -gpu-reset, driver reload and S2R behaviour deterministic rather than timing-out. |
5ac66ed8417f IAS removal (§9.2) |
Yes as code; no behaviour change here | The old path computed ias = max(ias, oas); with this part reporting OAS = 40 the old and new page-table ias are both 40, so the aperture is unchanged. The C_BAD_STE failure it fixes needed OAS < 40. Practical use: the boot line is now oas 40-bit (features …) with no ias field, which is a quick way to tell a ≥v7.0 SMMU driver from an older one. |
2781f2a930ab, f3c1d372dbb8, 7cad80048595 STE update_safe (§9.1) |
Partially | MEV/EATS_TRANS are only meaningful in nested STEs, and NESTING is clear on this part, so those two bits do not apply. The get_update_safe() mechanism itself runs on every STE update; with BBML2 set this part already does non-breaking updates, and the visible benefit is on driver rebind / domain swap rather than per-token. |
a45dd3466302 nested bypass ATS, 81c45c62dc3e GBPA nested attach (§9.4) |
No | Both need nested domains: ARM_SMMU_FEAT_NESTING is clear and iommufd is not loaded. Relevant only if this box ever hosts VFIO guests with a vSMMU. |
NVIDIA CMDQV: eb20758f8672, ea69dc4e207b, 80f1a2c2332f, bindings (§9.5) |
No | option mask 0x0 on all three instances, no *cmdqv* platform device, no NVIDIA ACPI device node for it. CONFIG_TEGRA241_CMDQV=y is compiled but never instantiated, so disable_cmdqv/bypass_vcmdq exist in /sys/module/arm_smmu_v3/parameters/ and are inert. The new DT binding targets Tegra264, and 06b15ddcfbc0's commit text records that Tegra264 is device-tree-only with no ACPI/IORT support — a different part from this one. |
36ae67b13976 incoherent page-table walkers (§12.7) |
No | ARM_SMMU_FEAT_COHERENCY is set (IORT COHACC_OVERRIDE), so the walker snoops; io-pgtable-arm runs coherent_walk. |
e37d5a2d60a3, 72f98ef9a4be stale kernel-VA IOTLB entries (§12.6) |
No, by architecture | The problem is x86-shaped: x86 maps kernel VA into every process page table that the IOMMU walks. Arm64 SVA walks the TTBR0 user range, and the fix is invoked from x86 code with SVA disabled on x86. Nothing calls iommu_sva_invalidate_kva_range() on this box. |
06e14c36e20b iommu_sva_unbind_device() crash (§12.6) |
Conditional | SVA is supported and CONFIG_ARM_SMMU_V3_SVA=y, so it applies to whatever binds PASIDs (the NVIDIA UVM driver is loaded). Not directly observable from sysfs; if you see a crash on unbind of a GPU context, this is the candidate. |
5941f0e0c1e0 CD l1tab error check (§9.6) |
Conditional, low probability, high severity | Silent success on a failed level-1 CD table allocation only matters when CD tables are allocated, i.e. the SVA/PASID path. |
f7326196a781, 513559f73700, f9374de14c0e, c288d657dd51, 1a96f3a22fd8 dma_map_phys + DMA_ATTR_MMIO (§11) |
Yes, if BAR/peer memory is mapped | Any dma_map_resource()/dma_iova_link() of the GPU BAR — GPUDirect-style RDMA over the RoCE interfaces, or P2PDMA — previously risked a cacheable IOMMU mapping of MMIO; c288d657dd51 sets IOMMU_MMIO, and 1a96f3a22fd8 completes it on the unlink path. Wrong caching on a BAR mapping is a correctness bug with latency consequences. |
636e6572e848 DMA_ATTR_REQUIRE_COHERENT (§11) |
Available, unused unless a driver asks | Forbids falling back to swiotlb; CONFIG_SWIOTLB=y on this kernel, so it is a real option for the 40-bit-DMA-mask constraint the NVIDIA driver reports. |
c41e2fb67e26 PCI ACS after IOMMU on OF platforms (companion changelog) |
No | The fix is for of_dma_configure() ordering. GB10 boots ACPI/IORT, where ACS is requested through the ACPI path. |
e94160488e65 RMR on device release, 52f77fb176ec blocked release_domain (§12.2) |
Yes, event-driven | Changes what translation the GPU and the NVDA2014/NVDA8000 masters sit on between driver unbind and rebind. If firmware left a direct region for any master, require_direct now overrides blocked → identity in the core. |
466ae6978a5b… a8258ffed2ef IOMMU_DEBUG_PAGEALLOC (§12.5) |
No, not on this kernel | It depends on DEBUG_PAGEALLOC and PAGE_EXTENSION; this config has # CONFIG_DEBUG_PAGEALLOC is not set and # CONFIG_PAGE_EXTENSION is not set. Building both in would be the way to test the GPU driver for frees of still-mapped pages. |
| iommufd DMABUF series, generic_pt (§10.2), Arm LPAE selftests→KUnit (§10.1) | No runtime effect here | iommufd is not loaded; no Arm page-table format uses iommupt; and the LPAE KUnit suite cannot even be built on this kernel — IOMMU_IO_PGTABLE_LPAE_KUNIT_TEST depends on KUNIT, which is # CONFIG_KUNIT is not set. |
-
Settle the strict-vs-lazy question on the GPU group. Compare the same workload with the group on
DMAand onDMA-FQ:cat /sys/kernel/iommu_groups/20/type # currently DMA echo DMA-FQ | sudo tee /sys/kernel/iommu_groups/20/type
Read
iommu_group_store_type()(drivers/iommu/iommu.c:3253) before trying this. TheDMA→DMA-FQdirection is the cheap one: it callsiommu_dma_init_fq()on the existing domain and flipsdefault_domain->typewithout detaching anything, so the NVIDIA driver can stay bound (lines 3277-3287). The other directions (→ DMA,→ identity,→ auto) require the group to have no driver bound, returning-EPERMotherwise (lines 3289-3293), and all writes needCAP_SYS_ADMINplusCAP_SYS_RAWIO(line 3259). Pair the ATS/miss counters of §2.2 with end-to-end tokens/s: the counters do not distinguish strict from lazy invalidation, only latency and CPU time do. -
Confirm nobody needs group 20 to be strict.
iommu_set_dma_strict()has no arm64 caller, so this was not a driver decision. The likeliest explanation is a runtime write to the sysfs attribute. A control host sharpens the anomaly: an aarch64 box with an RTX PRO 6000 Blackwell on7.0.0-31-genericreports 39 of 39 groupsDMAwithCONFIG_IOMMU_DEFAULT_DMA_STRICT=y, which is globally strict by build default and therefore unremarkable. Ongb10-refthe kernel bootedlazy modeand 24 of 25 groups areDMA-FQ, so exactly one group deviates from a kernel-wide setting. -
Do not expect HTTU relief from upgrading. Version containment below is from
git merge-base --is-ancestoragainst the tags in this checkout, not from author dates.74fa4c177ad0("iommu/arm-smmu-v3-sva: Enable Hardware Access and Hardware Dirty bits") first appears in v7.2;f99d3b4bb095(HAFT for SVA) is present only in v7.3-rc4, i.e. unreleased. Both are gated on hardware support, andHA,HDandHAFTare all clear in this part's0x0196dfbf, so neither v7.2 nor v7.3 changes this box's exposure to the97c5550b7631class of fault.Two other post-range changes do touch the path this box uses:
5ff98a0da6b4("iommu/arm-smmu-v3: Allow ATS to be always on", v7.2) changes when the driver enables/disables ATS around domain transitions — worth reading before you attribute a post-upgrade behaviour change to something else — and773f2b9e3670("Support IDR5.DS and widen the TLBI SCALE field", v7.3-rc4) is inert here becauseDSis clear. -
The Tegra264 invalidation erratum does not cover GB10.
95ed2da20283/06b15ddcfbc0(present only in v7.3-rc4) repeat everyCFGI/TLBI+CMD_SYNCtwice because Tegra264 can keep a stale TLB entry when an invalidation races concurrent traffic — which, as an [INFERENCE] cost, means each affected invalidation pays two command sequences and twoCMD_SYNCwaits. Their own commit text records that neither IDR nor IIDR flags the bug, that Tegra264 is device-tree-only with no ACPI/IORT support, and that the workaround keys off thenvidia,tegra264-smmucompatible at DT probe. This box boots ACPI with plainarm-smmu-v3.N.autoinstances, so it gets neither the erratum nor its workaround. If stale-translation symptoms ever appear here, there is no in-tree enablement to fall back on. -
Keep the PMCG recipe handy.
smmuv3_pmcg_13002is the GPU's SMMU instance, and the event names are stable across the range —drivers/perf/arm_smmuv3_pmu.creceived no commits inv6.17..v7.0.
Hardware facts in §2.1 are direct sysfs, kconfig, lspci and kernel-log reads. The
feature word is decoded against ARM_SMMU_FEAT_* in arm-smmu-v3.h. §2.2 is three
perf stat windows on a live system, with the burstiness stated rather than averaged
away. §2.3 marks each change as applies / conditional / does not apply against those
facts. One item is explicitly unresolved: why IOMMU group 20 is strict — I observed
it, established that no arm64 code path can have set it, and did not find the writer.
The question this section answers is narrower than "what could be tuned": which of these knobs plausibly moves GPU or inference performance on the GB10 probed in §2, given the measurements. Where a knob is not worth a rebuild, it says so.
Source lines cited below are from this checkout (v7.3-rc4), not from the 7.0.0-1019
kernel running on the box; expect a few lines of drift between them.
| Observation | Value | Where read |
|---|---|---|
| ATS requests on the GPU's TBU | 17,074/s to 82,242/s, bursty | perf stat, §2.2 |
| TBU TLB miss share | 51 % to 78 %, 1.24–1.32 walk accesses per miss | same |
| SMMU fault/PRI/error interrupts | arm-smmu-v3-evtq, -priq, -gerror all 0 |
/proc/interrupts |
| SWIOTLB | no boot messages, bounce path idle | kernel log |
| THP mode | enabled: always [madvise] never, defrag: [madvise] |
/sys/kernel/mm/transparent_hugepage |
| THP success vs fallback | thp_fault_alloc 393, thp_fault_fallback 53385, thp_collapse_alloc 185, thp_collapse_alloc_failed 19183 |
/proc/vmstat |
| THP pages actually in use | nr_anon_transparent_hugepages 0, AnonHugePages 0 kB |
/proc/vmstat, /proc/meminfo |
| khugepaged work | pgscan_khugepaged 1552875, pgsteal_khugepaged 1495575 |
/proc/vmstat |
| HugeTLB reserved | HugePages_Total 0; sizes available 2 MiB, 16 MiB, 512 MiB |
/proc/meminfo, /sys/kernel/mm/hugepages/ |
| GPUDirect RDMA | nvidia-peermem.ko.zst present but not loaded; mlx5_ib, rdma_cm, ib_uverbs loaded. nvidia-smi -q -d MEMORY reports FB Memory Usage: Total N/A and BAR1 Memory Usage: Total N/A, so the SoC GPU has no device memory and no BAR1 window |
lsmod, module tree, nvidia-smi |
| NVIDIA module params | EnableStreamMemOPs: 0, DmaRemapPeerMmio: 1 |
/proc/driver/nvidia/params |
| NICs | 4× ConnectX-7 15b3:1021, 2 ports PORT_ACTIVE, link_layer: Ethernet (RoCEv2); no ATS capability on 0000:01:00.0; masters of SMMU instance .0 |
ibv_devinfo, lspci, /sys/class/iommu/*/devices |
| GPU↔NIC placement | nvidia-smi topo -m: GPU0 to every NIC is NODE, never PIX |
nvidia-smi topo -m |
| Tick / preemption | CONFIG_HZ_1000=y, PREEMPT_DYNAMIC + CONFIG_PREEMPT_LAZY=y, CONFIG_NO_HZ_FULL=y |
kconfig, uname -v |
| Memory tuning already applied | vm.min_free_kbytes=1048576, vm.watermark_scale_factor=125, vm.dirty_bytes=268435456, vm.dirty_background_bytes=67108864, vm.overcommit_memory=1, vm.zone_reclaim_mode=0, kernel.numa_balancing=0, vm.compaction_proactiveness=20 |
sysctl |
| Page zeroing | CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y, defeated only by init_on_alloc=0 on the cmdline |
kconfig, /proc/cmdline |
Zero evtq/priq/gerror interrupts is the most useful line in the table: the SMMU is
not faulting or taking page requests. The measured cost is translation fetch — walks
issued to satisfy ATS requests and DMA — not fault recovery. That rules out a family of
otherwise tempting knobs (PRI, stall, HTTU-related) for this workload and points instead
at how large the mappings are and how often they are torn down.
| # | Knob | Kind | Current | Verdict |
|---|---|---|---|---|
| 1 | modprobe nvidia-peermem |
module load | not loaded | Withdrawn; inapplicable on GB10. I ranked this first after assuming RDMA↔GPU payloads land in GPU device memory and would otherwise stage through host memory. nvidia_p2p_get_pages() exists in this driver — 72 nvidia_p2p symbols in /proc/kallsyms — but nvidia-smi -q -d MEMORY reports FB Memory Usage: Total N/A and BAR1 Memory Usage: Total N/A, so there is no device memory and no BAR1 aperture for peermem to register. Row 2 is the real top item. §6.3 carries the discrete-GPU control that shows the mechanism, not merely the absence |
| 2 | echo DMA-FQ > /sys/kernel/iommu_groups/20/type |
runtime sysfs | group 20 is DMA |
Now the top item, and it is free. Puts the GPU's DMA-API unmaps back onto the deferred flush queue that the other 24 groups already use. See §2.4 for the exact code path and the driver-detach constraint |
| 3 | iommu.strict=0 |
boot param | not set; lazy by config default | Pin it. iommu.strict is an early_param writing one global bool (drivers/iommu/iommu.c:47,808-816); today the lazy behaviour comes only from CONFIG_IOMMU_DEFAULT_DMA_STRICT being unset, so any config drift silently makes every unmap synchronous. Explicit is better than inherited. It cannot explain or fix the group-20 asymmetry, because it is global. |
| 4 | THP: enabled=always, defrag=defer+madvise |
sysfs (config equivalent exists) | madvise / madvise |
Worth testing, effect unproven. The host-resident PLE table and the staging buffers are the CPU pages behind the mappings that generate the measured walks, and this box has never succeeded at a huge anonymous page (nr_anon_transparent_hugepages 0) while falling back 53,385 times. Larger backing pages are what allow iommu-dma to build one block entry instead of many 64 KiB ones. [INFERENCE] — the walk-count link is plausible and cheap to test with §2.2, and I have not measured it. Keep defrag off always: with 1 GiB min_free_kbytes and a live 96 %-util GPU job, direct-reclaim compaction inside a fault is exactly the wrong tail-latency source. |
| 5 | CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n |
config | =y, overridden by init_on_alloc=0 |
Durable fix, not a speed tweak. The intended behaviour is already in place via the command line, which means every boot entry, GRUB fallback and recovery entry has to repeat it. Set the config to n so the fast behaviour is the default and the cmdline becomes belt-and-braces. |
| 6 | hugepagesz=512M hugepages=N (or 16M) |
boot param | HugePages_Total 0 |
Only if the serving stack can actually take hugetlb-backed buffers. Sizes available on this 64 KiB-page kernel are 2 MiB, 16 MiB and 512 MiB. Reserve at boot rather than ballooning later. No benefit if nothing maps them. |
| 7 | vm.compaction_proactiveness |
sysctl | 20 (default) | Raise only as an experiment against thp_fault_fallback; that counter is the pass/fail signal, not the knob value. |
| 8 | nohz_full=, isolcpus=, rcu_nocbs= |
boot params | not set (CONFIG_NO_HZ_FULL=y available) |
CPU-side jitter only. Nothing here changes SMMU walk or invalidation cost; the GPU work is not preemptible by these knobs. Small, real, and outside the IOMMU question. |
| 9 | iommu.passthrough=1 |
boot param | =0 |
Measurement A/B only, not a setting. It removes the translation cost that §2.2 measures entirely for devices that can take identity mapping. Risk: DMA isolation disappears for every device without an override, CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT is unset so bypass is permitted by default, and initcall_blacklist=tegra234_cbb_init already suppresses NVIDIA's CBB error collector — you would be removing two safety nets at once on a box that serves traffic. Treat it as the upper bound of a possible gain, measured then reverted. |
Stated so the list is closed rather than left implied.
| Option | On this kernel | Why it is not a lever |
|---|---|---|
CONFIG_PCI_ATS, CONFIG_PCI_PRI |
y |
Not optional: ARM_SMMU_FEAT_ATS and _PRI are set only under IS_ENABLED() (arm-smmu-v3.c:5088-5092). Turning either off silently removes ATS from the GPU path — that is a behaviour cliff, not a tuning knob. Keep both. |
CONFIG_ARM64_64K_PAGES |
y |
The large-page win is already taken at base-granule level. It is a different kernel image, not a switch. |
CONFIG_ARM64_CONTPTE |
y |
The contpte fault-loop fix in §13 is code, not config. Being y is what makes the bug reachable, and the fix is in the running kernel. |
CONFIG_ARM64_PA_BITS_52 |
48 |
No effect: the NVIDIA driver already pins Using 40-bit DMA addresses and the SMMU reports 40-bit OAS. |
CONFIG_ARM_SMMU_V3_SVA, ARM_SMMU_V3_IOMMUFD, IOMMUFD |
y, y, m |
priq interrupt count is 0 and /dev/iommu does not exist, so nothing on this box is using PASID or userspace IOMMU. |
arm_smmu_v3.disable_msipolling |
N |
Leave at N. ARM_SMMU_OPT_MSIPOLL is enabled when IDR0.MSI is set and the walker is coherent (arm-smmu-v3.c:5097-5100); this part satisfies both. Setting the parameter makes each CMD_SYNC completion an MMIO read instead of a memory poll — strictly worse on the invalidation path that §2.2 shows is hot. |
iommu.forcedac |
not set | Only matters when a device cannot address the memory it is given. The GPU's 40-bit mask covers the whole 128 GiB, and SWIOTLB logged nothing. |
CONFIG_CMA, DMA_NUMA_CMA |
y, CMA_SIZE_MBYTES=0 |
Zero reserved, so no cost to remove and no gain to tuning. |
CONFIG_SWIOTLB_DYNAMIC |
y |
Already the cheap variant: no static carve-out. |
CONFIG_IOMMU_DEBUGFS, DEBUG_PAGEALLOC, PAGE_EXTENSION, KUNIT, IOMMU_IO_PGTABLE_*_SELFTEST |
off | Keep off; these are cost, not gain. See §2.3 for IOMMU_DEBUG_PAGEALLOC, which cannot be built here anyway. |
CONFIG_FTRACE, DYNAMIC_FTRACE, FTRACE_SYSCALLS, SLUB_DEBUG |
y (with SLUB_DEBUG_ON off) |
Near-zero when unused and worth keeping for the diagnosis in §3.4. |
CONFIG_HZ_1000, PREEMPT_LAZY, PREEMPT_DYNAMIC |
y |
Fine as is. CONFIG_PREEMPT_LAZY=y plus PREEMPT_DYNAMIC means the preemption model is a boot-time choice (preempt=); no IOMMU interaction. |
pci=pcie_bus_safe |
set | Already optimal here: the GPU reports Max Payload Size set to 256/ 256, i.e. at its ceiling, so pci=pcie_bus_perf has nothing left to win. |
One knob at a time, on a fixed prompt set, warm, with both a throughput and a tail measure — the counters alone will not show a lazy-vs-strict difference:
# translation-side cost (read-only)
sudo perf stat -a -e smmuv3_pmcg_13002/pcie_ats_trans_rq/,smmuv3_pmcg_13002/tlb_miss/,smmuv3_pmcg_13002/trans_table_walk_access/ -- sleep 30
# CPU time actually spent inside the invalidation path, to attribute strict vs lazy
sudo perf record -a -g -- sleep 10 && sudo perf report --stdio | grep -E "iommu|smmu|cmdq" | head -20
# huge-page progress signal
grep -E "thp_fault_alloc|thp_fault_fallback|thp_collapse_alloc|nr_anon_transparent_hugepages|pgscan_khugepaged|pgsteal_khugepaged" /proc/vmstat
# NCCL transport actually selected
NCCL_DEBUG=INFO <restart the serving process> # confirm which transport NCCL selectsperf record on a live 96 %-utilisation job is itself a disturbance; run it for 10 s,
not minutes, and treat the result as directional.
§3.1 is direct reads from the live host. §3.2 items 2, 3, 5 and 9 are grounded in code
paths I read in this checkout (iommu.c, arm-smmu-v3.c, dma-iommu.c) or in
lsmod/module-tree and lspci output. Item 1 was originally ranked highest and is now
withdrawn: it rested on an assumption about GPU memory that nvidia-smi -q -d MEMORY
contradicts on this part, and the correction is recorded in place rather than silently
deleted. Items 4 and 6 are experiments rather than asserted effects: the mechanism is
stated, the link from CPU-side huge pages to the measured SMMU walk count is not
measured on this box, and the counters in §3.4 are what would settle it.
Checked by git grep at the v6.17 and v7.0 tags, and by git merge-base --is-ancestor for the fixes. "Present at 6.17" means the parser and the consuming code
both exist there, not that the string appears somewhere.
| Knob | Evidence at v6.17 |
|---|---|
iommu.strict=0 |
early_param("iommu.strict", …) in drivers/iommu/iommu.c |
iommu.passthrough=0|1 |
early_param("iommu.passthrough", …) in drivers/iommu/iommu.c |
iommu.forcedac=1 |
drivers/iommu/dma-iommu.c (irrelevant here, §3.3) |
pci=noats |
parsed at drivers/pci/pci.c:6808-6811; consumed by pci_ats_init() at drivers/pci/ats.c:20-25, which returns before recording dev->ats_cap, so pci_ats_supported() fails and arm_smmu_ats_supported() (arm-smmu-v3.c via pci_ats_supported) never enables ATS. Reaches the SMMUv3 path despite kernel-parameters.txt tagging the option [PCIE, Intel-IOMMU, AMD-IOMMU] |
arm_smmu_v3.disable_msipolling=1 |
module parameter in arm-smmu-v3.c (leave at N, §3.3) |
init_on_alloc=0 |
early_param("init_on_alloc", …) in mm/mm_init.c |
hugepagesz=, default_hugepagesz=, hugepages= |
unchanged in this range |
nohz_full=, isolcpus=, rcu_nocbs=, preempt= |
unchanged in this range |
per-group echo DMA-FQ > /sys/kernel/iommu_groups/N/type |
IOMMU_GROUP_ATTR(type, …) exists at v6.17, as does the no-detach iommu_dma_init_fq() fast path in iommu.c/dma-iommu.c |
THP /sys/kernel/mm/transparent_hugepage/{enabled,defrag} |
unchanged in this range |
So the entire ranked list in §3.2 except item 9's diagnostic use is reachable from a 6.17 kernel.
| Item | Why 6.17 cannot do it |
|---|---|
iommu.debug_pagealloc=1 |
The option does not exist at v6.17 (git grep for the string across drivers/iommu returns nothing) and arrives with CONFIG_IOMMU_DEBUG_PAGEALLOC in v7.0. On 6.17 there is no IOMMU-side use-after-unmap detector at all. Still needs DEBUG_PAGEALLOC and PAGE_EXTENSION, which this kernel has off |
DMA_ATTR_MMIO in the DMA API |
Absent at v6.17; introduced by eadaa8b255f3 (first present at v6.18). The refinement that matters for peer BARs — c288d657dd51 forcing IOMMU_MMIO, and 1a96f3a22fd8 covering the dma_iova_link()/unlink() paths — is v7.0. On GB10 there is no BAR1 to map (BAR1 Total: N/A, §6.3), so this host has no consumer for it; it is a real consideration on a discrete-GPU peer |
These are 7.0 code changes; on 6.17 the only lever is to remove the condition that makes
them bite. Verified by git merge-base --is-ancestor: none of these commits is an
ancestor of v6.17.
| Fix | Date | Only 6.17 mitigation |
|---|---|---|
97c5550b7631 contpte set_access_flags() no-op |
2026-03-05 | pci=noats, or rebuild with CONFIG_ARM64_CONTPTE=n (arch/arm64/mm/Makefile:6 selects contpte.o, and pgtable.h switches the accessor under the same symbol). There is no arm64.no… command-line override for this capability: git grep for __setup("arm64.no and early_param("arm64 across arch/arm64/kernel returns nothing at either tag |
c279e83953d9 ATS fencing across PCIe reset (+ f5b16b802174, a75b2be249d6) |
2025-12-15 | pci=noats, or keep the GPU unbound across the reset. Without either, a reset with ATS enabled can hit invalidation timeouts |
5ac66ed8417f IAS removal |
7.0 | nothing needed: OAS is 40-bit here, so the pre-fix and post-fix pgtbl_cfg.ias are both 40 (§2.3) |
2781f2a930ab/f3c1d372dbb8/7cad80048595 STE update sequencing |
7.0 | not applicable locally: ARM_SMMU_FEAT_NESTING is clear on this part |
90c5def10bea ("do not call drivers for empty gathers") could make the core skip a
needed .iotlb_sync; 7e0548525abd ("ensure .iotlb_sync is called correctly") closes
it. Containment, from git merge-base --is-ancestor:
| Ref | 90c5def10bea |
7e0548525abd |
Exposed |
|---|---|---|---|
v6.17 |
absent | absent | no |
v6.18 |
absent | absent | no |
v6.19 |
absent | absent | no |
v7.0-rc7 |
present | absent | yes |
v7.0 |
present | present | no |
The regression therefore lives in exactly one release candidate, v7.0-rc7 — despite the
commit being authored 2026-03-02, it first appears in rc7, not rc1. Symptom would be
stale IOTLB entries after an address is reused, i.e. silent corruption or unexpected
F_TRANSLATION events on a device whose mappings are recycled — precisely the GPU DMA
pattern in §2.2. Do not build a serving box on v7.0-rc7, and do not bisect onto it.
v6.17, v6.18, v6.19 and v7.0 and later are all clean with respect to this
specific pair.
The running kernel is 7.0.0-1019-nvidia-64k, so every item in §3.2 is already
reachable without touching the version, and the fixes in §4.3 are already applied.
Version choice only becomes the question if you roll back to a 6.17-based build, in which
case you lose iommu.debug_pagealloc, lose DMA_ATTR_MMIO for peer BAR mappings, and
need pci=noats or CONFIG_ARM64_CONTPTE=n as the mitigation for the contpte fault loop.
The tempting move is iommu.passthrough=1. It maps devices identity, so the SMMU stops
translating them, and the walk cost in §2.2 disappears. For a single-tenant box that
only runs your own model, the argument looks clean. It is still the wrong default, for
five reasons, in descending order of weight.
Risk: the trust boundary is the network, not the tenant. This box exports a model
endpoint on 0.0.0.0 and holds four ConnectX-7 ports with RoCE up and PORT_ACTIVE on
two of them. With identity mapping, any device — NIC, NVMe, the Realtek 2.5 GbE port at
0007:01:00.0, and the NVDA8000/NVDA2014 platform masters — can address all 128 GiB
of LPDDR5x. That includes the KV cache, the weights, and every other process's buffers.
A NIC DMA bug or a hostile peer on the RoCE fabric stops being contained. Translation is
the only thing in this stack that bounds what a device may read.
Risk: passthrough can make some traffic slower, not faster. The GPU is safe — its
40-bit mask covers the whole 1 TiB window, and 128 GiB fits inside it, which is why
iommu.passthrough=0 costs it nothing in bounce buffers today. Other masters do not get
the same maths. A device whose DMA mask cannot reach all of memory falls back to
SWIOTLB under identity mapping, and a bounce copy on a hot path is worse than any walk.
This kernel has CONFIG_SWIOTLB=y and CONFIG_SWIOTLB_DYNAMIC=y, so that path is live
and silent.
Third: you lose the tripwire, not just the cost. arm-smmu-v3-evtq sits at 0
interrupts today (§3.1), which is what tells you the drivers are behaving. Under bypass
you get no report when a driver DMAs somewhere it should not; you get memory corruption
in whatever the device was allowed to touch. You would also be turning off two safety
nets at once, because initcall_blacklist=tegra234_cbb_init already suppresses
NVIDIA's CBB error collector on this box.
Fourth: the gain is bounded, and smaller than the counters suggest. ATS is on for the GPU, so most traffic is served from the device ATC. The measured number is the miss path and the fill path, not the steady-state per-access cost. Removing the SMMU removes walks you already amortise. Only a measurement says by how much — see the protocol in §3.4 and the A/B note below.
Fifth: someone already chose the other way, deliberately. The distro config is
CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y, and /etc/default/grub.d/iommu.cfg overrides it
with one line:
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX iommu.passthrough=0"
That drop-in is a decision to keep translation on this box. Treat it as intentional until a measurement says otherwise, rather than as leftover config to delete.
What to do instead, in order. Keep translation. Get the free wins first: put the GPU's
group on the flush queue (§6.4), then stop the walk explosion at its floor (§1). If those
leave you short of the target, measure the ceiling once with
iommu.passthrough=1 on a maintenance window, and treat the number as an upper bound you
are choosing to give back. If you need isolation for some devices and speed for one, the
surgical form is a per-group identity write, not a global flag — and that direction
does need the driver unbound first, per iommu_group_store_type() (§2.4).
Everything below is what to set, where to set it so it survives a reboot and a kernel upgrade, and why. The right-hand column of each table says whether a 6.17 kernel honours it, from §4.
Put these in a drop-in, next to the existing one, then run update-grub:
/etc/default/grub.d/gb10-inference.cfg
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX iommu.strict=0 init_on_alloc=0"
| Parameter | Why | 6.17 honours it |
|---|---|---|
iommu.strict=0 |
Pins deferred invalidation explicitly. Today laziness comes only from CONFIG_IOMMU_DEFAULT_DMA_STRICT being unset |
yes |
init_on_alloc=0 |
Stops zeroing every page allocation. Already in effect, but only in the cmdline | yes |
iommu.passthrough=0 |
Keep it. It is already in iommu.cfg, and §5 explains why not to flip it |
yes |
pci=noats |
Diagnostic only. Removes the GPU's ATS path and works around the two ATS-linked 7.0 fixes on 6.17. Expect the §2.2 counters to change character, not simply fall | yes |
hugepagesz=2M hugepages=N |
Reserves huge pages so mappings can collapse. Use it on the 4 KiB flavour, where a 2 MiB block is a real IOMMU block size | yes |
default_hugepagesz=512M |
Only useful with a reservation, and only after §3.2 item 4 shows you can get 512 MiB physically contiguous | yes |
arm_smmu_v3.disable_msipolling=1 |
Do not set. The parameter has mode 0444, so the command line is the only way to change it, and off is slower (§3.3) |
yes |
nohz_full=, isolcpus=, rcu_nocbs= |
CPU-side jitter only. No effect on walks or invalidations | yes |
/etc/sysctl.d/90-gb10-inference.conf. Values marked keep are already right on this
box, and are listed so a future reimage notices them.
| Setting | Current | Proposed | Why |
|---|---|---|---|
vm.min_free_kbytes |
1048576 | keep | 1 GiB of free reserve is what makes large contiguous allocations possible at all |
vm.watermark_scale_factor |
125 | keep | kswapd wakes early, so allocation stalls stay out of the serving path |
vm.overcommit_memory |
1 | keep | vLLM reserves more address space than memory |
vm.zone_reclaim_mode |
0 | keep | One NUMA node; nothing to gain, and local reclaim would hurt |
kernel.numa_balancing |
0 | keep | Single socket |
vm.dirty_bytes / vm.dirty_background_bytes |
268435456 / 67108864 | keep | Byte caps, which is why the ratios read 0. Model load writes in bursts |
vm.compaction_proactiveness |
20 | raise as an experiment | Watch thp_fault_fallback and thp_collapse_alloc_failed; those counters are the verdict, not the knob |
vm.stat_interval |
1 | raise to 10 | /proc/vmstat walks at 1 Hz cost CPU for no benefit during a run |
kernel.sched_migration_cost_ns |
default | leave | No measured need. Set it only if you isolate cores first |
vm.panic_on_oom |
0 | keep | A serving box should OOM-kill, not panic |
vm.nr_hugepages is not a useful line here: with three sizes present (2 MiB, 16 MiB,
512 MiB) you must set the count per pool, which is what the boot parameters in §6.1 do.
One correction, stated in place because it was the top-ranked item in an earlier draft.
nvidia-peermem is a peer memory client: it takes GPU device-memory pages via
nvidia_p2p_get_pages() and registers them with the RDMA stack so a NIC can DMA into the
GPU's BAR1 aperture. That mechanism needs something to register, and GB10 has nothing —
nvidia-smi -q -d MEMORY on this host reports FB Memory Usage: Total N/A and
BAR1 Memory Usage: Total N/A, against 123 GiB of shared LPDDR5x. The buffers NCCL moves
are ordinary host pages, and the NIC already DMAs them directly through its own SMMU
instance. Loading the module therefore removes no staging copy: the staging copy was never
there. The control host makes the mechanism visible rather than merely absent:
gb10-ref — GB10 |
control — RTX PRO 6000 Blackwell | |
|---|---|---|
GPU memory (FB Total) |
N/A |
97,887 MiB |
BAR1 Total |
N/A |
131,072 MiB |
nvidia-peermem.ko |
present, not loaded, nothing to register | present, not loaded, meaningful when RDMA touches VRAM |
| Driver | 615.71.09 | 615.71.09 |
| GPU ATS | enabled (ATSCtl Enable+) |
no ATS capability in lspci |
| IOMMU groups | 24 DMA-FQ + 1 DMA, booted lazy |
39 of 39 DMA, CONFIG_IOMMU_DEFAULT_DMA_STRICT=y |
What does govern the NCCL path here is the transport the job already selects:
NCCL_IB_HCA=rocep1s0f1,roceP2p1s0f1, NCCL_IB_GID_INDEX=3, NCCL_IB_DISABLE=0,
NCCL_NVLS_ENABLE=0, NCCL 2.31.2 with CUDA 13.4, and a libnccl that contains
ibv_reg_dmabuf_mr. DMA-BUF registration, not peermem, is the mechanism that applies to a
unified-memory SoC, and it needs no GPU device memory to be useful.
/etc/modprobe.d/gb10-inference.conf
options nvidia NVreg_EnableStreamMemOPs=1
NVreg_EnableStreamMemOPs is 0 today; NCCL uses stream memory operations for some
collectives, and --nnodes 2 on this workload is where they would appear. Verify the gain
rather than assuming it: run with and without, and read the NCCL log.
NVreg_DmaRemapPeerMmio is deliberately not listed. It remaps a peer device's BAR into
the GPU page tables, and GB10 has neither a peer BAR nor GPU device memory to map it into
(BAR1 Total: N/A above), so it is inert here for the same reason nvidia-peermem is.
Two cautions, both grounded on this box:
/etc/modprobe.d/nvidia-spark.confsetsNVreg_SystemMemoryPoolRetainMB=0, which returns pooled system memory to the allocator every time a CUDA client exits. That is good for memory pressure and bad for contiguity, and contiguity is what §1 needs. If you raise the huge-page reservation and THP still fails, this is the first suspect.- The
nvidia_uvmmodule exposes manyuvm_perf_*anduvm_ats_*parameters (modinfo -p nvidia_uvmlists them, includinguvm_ats_mode,uvm_disable_hmm, anduvm_page_table_location). I have not verified their semantics against the open kernel module source here, so they are not recommended.priqcounts are 0 (§3.1), which is the evidence that no SVA/PRI path is active and that those knobs have nothing to tune on this workload today.
A udev rule cannot set the IOMMU group type. Verified on this box, three ways:
udevadm info -q property /sys/kernel/iommu_groups/20 prints nothing,
udevadm info --export-db contains zero entries matching iommu_groups, and the group
directory has no uevent file. The IOMMU core publishes groups as a plain kset under
/sys/kernel, not as udev-managed devices, so udev never sees them and never fires on
them. Writing ATTR{type}="DMA-FQ" into a rule would fail silently, which is the worst
outcome of the three options here.
Use a systemd oneshot unit instead, ordered after the NVIDIA driver binds:
/etc/systemd/system/gb10-iommu-lazy.service
[Unit]
Description=Put the GB10 GPU IOMMU group on the deferred flush queue
After=systemd-modules-load.service
ConditionPathExists=/sys/kernel/iommu_groups/20/type
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c 'echo DMA-FQ > /sys/kernel/iommu_groups/20/type'
[Install]
WantedBy=multi-user.target
Two constraints from iommu_group_store_type() decide whether this works:
- It needs
CAP_SYS_ADMINandCAP_SYS_RAWIO, so it must run as root, not as aSystemdUser=service. DMA→DMA-FQis the one direction that does not need the driver unbound: it callsiommu_dma_init_fq()on the live domain and flips the type. Every other direction returns-EPERMwhile a driver holds the group. So this unit is safe to run withnvidiabound, and it is also why the change cannot be undone at runtime without a driver unload.
Prefer the boot-parameter route for strictness if you want the state to be certain at boot
rather than eventually consistent: with the GPU group already DMA, iommu.strict=0 plus
iommu.passthrough=0 does not fix a per-group override. Record the current value in the
same commit as the unit, so drift is visible.
Other sysfs paths worth pinning, all runtime and all udev-invisible problems of the same
kind, so put them in the same unit or in a systemd-tmpfiles-free helper:
| Path | Value | Why |
|---|---|---|
/sys/kernel/mm/transparent_hugepage/enabled |
always |
The measured 393-versus-53,385 result is a policy problem, not a hardware one |
/sys/kernel/mm/transparent_hugepage/defrag |
defer+madvise |
Keeps direct-reclaim compaction out of a fault on a busy box |
/sys/module/arm_smmu_v3/parameters/disable_msipolling |
N, unchanged |
Mode 0444; runtime change is impossible, so this row is a check, not a setting |
/proc/sys/vm/compact_memory |
write 1 before a benchmark, not in a unit |
Gives one clean compaction pass so a run starts from a known fragmentation state |
| Tag | Release date | Commit |
|---|---|---|
v6.17 |
2025-09-28 | e5f0a698b34e |
v6.18 |
2025-11-30 | 7d0a66e4bb90 |
v6.19 |
2026-02-08 | 05f7e89ab973 |
v7.0 |
2026-04-12 | 028ef9c96e96 |
The range spans three development cycles: 6.18, 6.19 and 7.0. The third cycle was
still labelled 6.20 while in flight — a device-tree pull merged inside the range is
tagged socfpga_dts_updates_for_v6.20_v3 (f51d34065de4) — and shipped as v7.0.
Range size: 46,314 commits (git rev-list --count v6.17..v7.0), 42,305 of them
non-merge. 231 commits touch drivers/iommu/ (202 non-merge). This document enumerates
32 commits in §§9–13 — 27 inside drivers/iommu/, 5 outside it (include/linux/iommu.h,
arch/arm64/mm/contpte.c, the drivers/pci reset paths, and two NVIDIA device-tree rows
kept for the Tegra264-versus-GB10 distinction) — after pruning rows that describe hardware GB10 cannot execute. The
companion changelog enumerates all 162 arm64-relevant commits, 137 of them inside
drivers/iommu/, and holds every row dropped here. §15 accounts for the drivers/iommu/
commits that neither list enumerates.
Rows here are limited to paths GB10 can execute: the SMMUv3 driver, the Arm LPAE and
iommu.c/iommu-sva.c/iommu-pages.c core, the shared DMA-API backend, the ACPI IORT
front end, and arch/arm64/mm/dma-mapping.c as an explicit zero. SMMUv2 (arm-smmu,
io-pgtable-arm-v7s), Apple DART, generic_pt, iommufd and device-tree bindings carry no
GB10 code path and their counts are in the companion changelog.
Non-merge commits per path group, by the cycle they first appeared in:
| Path group | 6.18 | 6.19 | 7.0 | Total |
|---|---|---|---|---|
drivers/iommu/arm/arm-smmu-v3 |
0 | 5 | 14 | 19 |
drivers/iommu/dma-iommu.c |
5 | 1 | 4 | 10 |
drivers/iommu/io-pgtable-arm.c |
0 | 3 | 2 | 5 |
drivers/iommu/iommu.c |
1 | 3 | 11 | 15 |
drivers/iommu/iommu-sva.c |
0 | 3 | 3 | 6 |
drivers/iommu/iommu-pages.c |
0 | 2 | 0 | 2 |
drivers/acpi/arm64/iort.c |
0 | 0 | 4 | 4 |
arch/arm64/mm/dma-mapping.c |
0 | 0 | 0 | 0 |
The skew is the story: v6.18 carried no Arm SMMU driver work at all, v6.19 carried
the generic_pt introduction plus a device-reference-leak sweep, and v7.0 carried
almost every SMMUv3 behaviour change.
Stable point releases (v6.17.x, v6.18.x, v6.19.x, v7.0.x) are separate
branches and are not part of this range. If you need the 6.17.13 / 6.18.53 /
7.0.14 backports, that is a different query (git log v6.17.13..v6.17 style on
stable/… refs).
| Term | Meaning here |
|---|---|
| STE / CD | Stream Table Entry / Context Descriptor — SMMUv3 per-stream and per-PASID translation descriptors |
| S1 / S2 | Stage 1 (VA→IPA) / Stage 2 (IPA→PA) translation |
| ATS | Address Translation Service — PCIe protocol letting a device cache translations from the IOMMU |
| PASID / SVA | Process address space ID / Shared Virtual Addressing — device walks CPU page tables |
| CMDQ | SMMUv3 command queue (TLBI/CFGI/PREFETCH) |
| VCMDQ / CMDQV | NVIDIA CMDQ Virtualization extension: hardware-virtualised command queues for guests |
| GBPA | Stage-2 bypass/abort configuration in an STE, used when the guest disables its SMMU (CR0.SMMUEN=0) |
| IAS / OAS | Input (virtual) / Output (physical) address size reported by the SMMU |
| RMR | Reserved Memory Region (IOMMU_RESV_DIRECT) — firmware-described DMA window that must stay mapped |
| HTTU / DBM | Hardware Translation Table Update / Dirty Bit Modifier — ARM FEAT_HAFDBS for automatic AF/D dirty maintenance |
| iommupt / generic_pt | "Generic Page Table" framework: one C implementation of IOMMU page-table algorithms, instantiated per hardware format |
These are the subsystem pull requests that carried the work, quoted from the merge commits. Use them as the cross-check against the per-commit detail in §9–§13.
| Cycle | Merge commit | Date |
|---|---|---|
iommu-updates-v6.18 |
bed0653fe2aa |
2025-10-03 |
iommu-updates-v6.19 |
ce5cfb0fa20d |
2025-12-04 |
iommu-updates-v7.0 |
1e0ea4dff0f4 |
2026-02-11 |
| fixes | e4a3d52ab971, 97313d6113ab, b33d70625977, 162b42445b58, fe70b3260e39, 47e231cbd363, 4c2c526b5adf, 8b02520ec5f7 |
6.19-rc1 → 7.0-rc7 |
| iommufd | e56ebe27a00d, a2e33fb92649, 056daec2925d, cf26839d7fca, ad9a728a3388 |
6.18 → 7.0 |
v6.18 — no ARM-SMMU section. Arm-relevant content was Apple DART: "Apple-DART:
4-level page-table support", plus iommu/io-pgtable-dart refactors and a RISC-V
ACPI/RIMT addition.
v6.19 — "Introduction of the generic IO page-table framework with support for Intel and AMD IOMMU formats … this also needed quite some fixes during development"; "ARM-SMMU updates: Qualcomm device-tree binding updates for Kaanapali and Glymur SoCs and a new clock for the TBU; fix error handling if level 1 CD table allocation fails; permit more than the architectural maximum number of SMRs for funky Qualcomm mis-implementations of SMMUv2"; "Mediatek driver: MT8189 iommu support"; "Move ARM IO-pgtable selftests to kunit"; "Device leak fixes for a couple of drivers".
v7.0 — "Core changes: Rust bindings for IO-pgtable code; IOMMU page allocation debugging support; disable ATS during PCI resets"; "ARM-SMMU-v2 changes: Configure SoC-specific prefetcher settings for Qualcomm's MDSS"; "ARM-SMMU-v3 changes: improve CMDQ locking fairness for pathetically small queue sizes; remove tracking of the IAS as this is only relevant for AArch32 and was causing C_BAD_STE errors; add device-tree support for NVIDIA's CMDQV extension; allow some hitless transitions for the MEV and EATS STE fields; don't disable ATS for nested S1-bypass nested domains; additions to the kunit selftests".
Net diff across the range: arm-smmu-v3.c +143/−57, arm-smmu-v3.h +4/−2,
arm-smmu-v3-iommufd.c +22/−8, arm-smmu-v3-test.c +75/−3,
tegra241-cmdqv.c +21/−78.
A nested (guest STE) attachment previously forced a breaking update (STE.V=0) when
only non-critical fields changed, which is visible as C_BAD_STE and as a
translation gap.
| Commit | Release | Change |
|---|---|---|
2781f2a930ab |
7.0 | Adds arm_smmu_get_ste_update_safe() so the STE update algorithm can relax fields that do not need exact ordering; fixes C_BAD_STE when moving an nested STE between S1-bypass and S1DSS-bypass. entry_set() loses its checked return and becomes void. |
f3c1d372dbb8 |
7.0 | Marks STE MEV update-safe. MEV sits in word 1, so nested CD tables setting it dragged word 1 into the critical set; the Arm ARM requires the kernel to tolerate coalesced fault records at MEV == 0 anyway. |
7cad80048595 |
7.0 | Marks EATS_TRANS update-safe. The enclosing code already disables ATS at the PCIe device whenever EATS_TRANS changes, so no ATS transaction can race the bit change. |
a4f976edcb87 |
7.0 | KUnit coverage for the nested S1-bypass / S1DSS-bypass transitions between S2-only and S1+S2 STEs — the cases that failed before. |
5ac66ed8417f — "iommu/arm-smmu-v3: Remove IAS". The driver only supports
AArch64-format page tables, where OAS == IAS, so the AArch32 IAS tracking was dead
weight and was generating C_BAD_STE for SMMUv3 instances with stage 2 and
OAS < 40. Fixes f0c453dbcce7 ("iommu/arm-smmu: Ensure IAS is set correctly for
AArch32-capable SMMUs"). This is the single largest behavioural fix for
SoCs whose implemented output address size is below 40 bits.
df180b1a4cc5 — "Improve CMDQ lock fairness and efficiency". The CMDQ lock is a
counted shared/exclusive word (0, >0 shared count, INT_MIN+N exclusive with N
shared waiters). With a nearly full queue, multiple CPUs polling for space contend
for the exclusive lock to publish the consumer pointer, and shared-lock holders could
be starved indefinitely, producing "severe latency issues and soft lockups". The fix
reworks acquisition fairness. This is the change to look at first when debugging
multi-core invalidation latency on SMMUv3 parts with small queues.
| Commit | Release | Change |
|---|---|---|
81c45c62dc3e |
6.19 | arm-smmu-v3-iommufd: allow attaching a nested domain without a vDEVICE when the vSTE carries only GBPA (abort/bypass) configuration, i.e. the guest has CR0.SMMUEN=0. Documented as a uAPI comment change in include/uapi/linux/iommufd.h; devices on this path do not report vevents. |
a45dd3466302 |
7.0 | Do not force disable_ats for a bypass vSTE. A bypass nested attachment ends up as an S2-only physical STE, and the non-nested S2 path enables ATS whenever arm_smmu_ats_supported(); the nested path disagreed, breaking VM workloads that rely on automatic ATS. Fixes f27298a82ba0. |
52f77fb176ec |
6.19 | Uses the new release_domain op to attach arm_smmu_blocked_domain on device release instead of open-coding the require_direct handling. |
fd714986e4e4 |
6.19 | Core API change consumed here: attach_dev now receives the old struct iommu_domain *. SMMUv3, SMMUv2, Apple DART, AMD and powerpc drivers were all updated in the same commit. |
CMDQV is NVIDIA's command-queue virtualisation extension for SMMUv3 (similar in spirit to Arm v3.3 ECMDQ). Before this range the driver bound only via ACPI.
| Commit | Release | Change |
|---|---|---|
eb20758f8672 |
7.0 | Drops the ACPI dependency: acpi_create_platform_device() already creates a platform device per CMDQV adev, so _CRS parsing was pointless. Standard platform-device accessors replace ACPI calls; depends on ACPI removed from drivers/iommu/arm/Kconfig. Enables DT probing. |
ea69dc4e207b |
7.0 | Parses the new nvidia,cmdqv phandle from the SMMU node to associate each SMMU instance with its CMDQV instance, by compatible — this is what makes the extension usable on Tegra264 device trees. |
80f1a2c2332f |
6.19 | Resets a userspace VCMDQ in tegra241_vcmdq_hw_init_user(). The Enable bits in CMDQV/VINTF/VCMDQ_CONFIG do not reset hardware registers, and tegra241_vintf_hw_init() cannot deinit VCMDQs that do not exist yet, so a previously-used userspace queue left dirty registers that could fail the VM. The commit's own Fixes: tag names 6717f26ab1e7, which does not resolve to any object in this tree; userspace VCMDQ support was actually added by 4dc0d12474f9 ("iommu/tegra241-cmdqv: Add user-space use support", already present in v6.17). |
8a59954192eb |
7.0 | Binding work: new Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml (42 lines) plus the optional nvidia,cmdqv property in arm,smmu-v3.yaml, restricted to Tegra264. |
fe57d0ac4835 |
7.0 | arm64: tegra: Add nodes for CMDQV — Tegra264 platform DT. |
| Commit | Release | Change |
|---|---|---|
5941f0e0c1e0 |
6.19 | arm_smmu_alloc_cd_tables() tested cd_table->l2.l2ptrs instead of cd_table->l2.l1tab after the dma_alloc_coherent() for l1tab, so a failed level-1 CD table allocation returned success. Fixes e3b1be2e73db. |
| Commit | Release | Change |
|---|---|---|
d8546833cfee |
6.19 | Removes arm_lpae_dump_ops(); the failure dump needed internals that would have to be exported once the tests moved out. ias, oas and pgsize_bitmap per test are retained as the diagnostic. |
374e7af67d9d |
6.19 | __arm_lpae_unmap() returns size_t but returned -ENOENT for an unmapped PTE; the negative value became 0xFFFFFFFFFFFFFFFE, propagated through arm_lpae_unmap_pages() into __iommu_unmap(), overflowed the IOVA cursor and tripped BUG_ON in iommu_pgsize(). Now returns 0, matching -v7s and -dart. Fixes 3318f7b5cefb. |
io-pgtable-arm-v7s.c (AArch32 short-descriptor) changed only via the treewide
allocation-API conversions in v7.0 (69050f8d6d07, bf4afc53b77a).
Jason Gunthorpe's generic page-table work is the largest structural change in the range:
37 commits, all but four in v6.19. It separates format (bit encodings) from algorithm (one
C implementation of map_pages, unmap_pages, iova_to_phys, read_and_clear_dirty),
instantiated per format at compile time, and IOMMU_PT_DOMAIN_OPS() emits
iommu_domain_ops directly, removing the io_pgtable_ops indirection.
Why it does not reach GB10, stated precisely:
- No Arm format exists.
drivers/iommu/generic_pt/fmt/atv7.0holdsamdv1.h,vtdss.h,x86_64.hand aniommu_mock.c; there is no Arm LPAE file. GB10 keeps walkingio-pgtable-arm.c.ee6e69d03255says its gather test is added "in preparation for ARMv8", which is declared intent, not a shipped change. - Two rows do touch the Arm path.
36ae67b13976puts Arm DMA-API cache flushing and the x86clwb-style flushing behind oneiommu-pagesAPI (§12.7), andefa03dab7ce4reproduces in iommupt the software-PTE-bit race solutionio-pgtable-armalready used. - arm64 is a test target only.
1dd4187f53c3andbc5233c0904erun KUnit with--arch arm64, ande5359dcc617abuilds a 2K-granule mock format specifically to emulate a 4K page table on a 64K-page ARM system — the same shape as this host.
The 37-commit list, including the AMD/VT-d/x86 formats, the PT_FEAT_DMA_INCOHERENT
series, the race fixes and the build cleanups, is in the companion changelog.
2e2f6b0ef855 adds rust/kernel/iommu/pgtable.rs so in-tree Rust GPU drivers can call
map_pages/unmap_pages; follow-ups 12248a3862d5, 7222dd071b22. No arm64 consumer
exists on this box — the intended driver is the Apple-silicon Tyr GPU driver — so it is
listed for completeness only, and is otherwise out of scope here.
arch/arm64/mm/dma-mapping.c received no commits in this range (git rev-list --count v6.17..v7.0 -- arch/arm64/mm/dma-mapping.c = 0). All the DMA-API/IOMMU
movement is in the shared backend.
| Commit | Release | Change |
|---|---|---|
513559f73700 |
6.18 | Renames iommu_dma_map_page()/iommu_dma_unmap_page() to iommu_dma_map_phys()/iommu_dma_unmap_phys() and changes the calling convention from (struct page *, offset) to (phys_addr_t); callers in dma_map_page_attrs(), scatterlist paths and DMA-page helpers updated. |
f7326196a781 |
6.18 | Exports the new dma_map_phys() / dma_unmap_phys() public interface; dma_map_page_attrs() and dma_map_resource() become thin wrappers. EXPORT_SYMBOL_GPL for the new names, with the old page-based API kept in kernel/dma/mapping.c for existing users. |
f9374de14c0e |
6.18 | iommu_dma_{un,}map_phys() honours DMA_ATTR_MMIO: no swiotlb, no cache maintenance, IOMMU_MMIO instead of IOMMU_CACHE in the mapping protection. |
c288d657dd51 |
6.18 | dma_iova_link() honours DMA_ATTR_MMIO, replacing the hacky use of DMA_ATTR_SKIP_CPU_SYNC for possibly-non-KVA MMIO, and sets the correct non-cacheable IOMMU protection. |
1a96f3a22fd8 |
6.18 | Completes the above for dma_iova_unlink(), which also touches the CPU cache. Fixes c288d657dd51. |
4a73abb965b7 |
7.0 | iommu_setup_dma_ops() receives the default domain as an argument instead of calling iommu_get_domain_for_dev(), which is being reserved for external callers. |
636e6572e848 |
7.0 | DMA_ATTR_REQUIRE_COHERENT support: forbids the swiotlb path and suppresses sync operations. |
drivers/iommu/iommu.c net +297/−29; include/linux/iommu.h +22/−2.
fd714986e4e4 (6.19) changes struct iommu_domain_ops::attach_dev to
(*attach_dev)(struct iommu_domain *domain, struct device *dev, struct iommu_domain *old). Any attach is logically detach-old + attach-new, and drivers previously
recovered the old domain with iommu_get_domain_for_dev(); the core now supplies it,
matching what set_dev_pasid already did. Support commits in the same patch:
SMMUv3, SMMUv2, Apple DART, AMD, powerpc. 2b33598e666d removes a redundant
revert-attach of the last group device so the old-domain pointers stay consistent.
e94160488e65 (6.19) lets a driver set release_domain to the blocked domain and
have the core re-block a device when its struct device goes away, while preserving
firmware-mapped IOMMU_RESV_DIRECT regions by overriding to IDENTITY when
dev->iommu->require_direct is set. This removes open-coded logic from Arm drivers
(52f77fb176ec SMMUv3, 680a6a60fc08 Exynos). On arm64 the RMR path matters for
devices whose bootloader left a window mapped — display, remoteproc, and
arm,smmu-attached firmware consumers.
| Commit | Release | Change |
|---|---|---|
c279e83953d9 |
7.0 | New pci_dev_reset_iommu_prepare() / pci_dev_reset_iommu_done() in the IOMMU core: around a reset the core moves all attached RID/PASID domains to group->blocking_domain, so the hardware fences inbound ATS queries, the driver can call pci_disable_ats()/pci_enable_ats(), and in-flight ATS invalidations are awaited. Rationale: PCIe r6.0 sec. 10.3.1 implementation note; an SVA domain has no coordination with reset and can racily invalidate a resetting device, which the OS otherwise sees as an ATS timeout. Adds the group resetting_domain notion. |
f5b16b802174 |
7.0 | PCI core calls the new helpers from all existing reset paths (pci-acpi.c, pci.c, quirks.c). |
a75b2be249d6 |
7.0 | Adds iommu_driver_get_domain_for_dev() for driver-side callers that hold group->mutex, because iommu_get_domain_for_dev() must keep working for external callers while a reset staging changes group->domain semantics; adds a lockdep_assert_not_held() to the old helper. |
5d5388b0e190 |
7.0 | iommu_deferred_attach() takes group->mutex around __iommu_attach_device() — needed now that it must consult group->resetting_domain. |
| Commit | Release | Change |
|---|---|---|
90c5def10bea |
7.0 | Stops calling driver .iotlb_sync for an empty gather (start=U64_MAX, end=0). Several drivers computed end - start + 1 and produced nonsense sizes; the commit message names AMD, Intel, MediaTek and RISC-V as affected by the audit. |
7e0548525abd |
7.0 | Follow-up fix: drivers that never touch the gather still rely on .iotlb_sync to complete an unmap, so the core must encode a successful unmap itself rather than infer "nothing to do". Fixes 90c5def10bea. Relevant to any Arm driver that leaves iotlb_gather untouched. |
New CONFIG_IOMMU_DEBUG_PAGEALLOC and iommu.debug_pagealloc boot parameter: a
page_ext-backed refcount of IOMMU mappings per page, checked by the page allocator
so a driver that frees kernel memory still mapped in an IOMMU domain is caught.
Racy-by-construction and best-effort; unmap is tracked as begin/end pairs because the
physical address is lost after unmap; granularity is the domain's smallest supported
page size so map_sg-style split unmaps are handled.
466ae6978a5b (page_ext + config + parameter) → ccc21213f013 (core map/unmap
hooks in iommu.c, iommu-priv.h) → 7e84593795b3 (atomic refcount tracking) →
a8258ffed2ef (allocator-side assertions) → a7f1bc231b66 (use
page_ext_get_from_phys() to skip MMIO and offline memory).
| Commit | Release | Change |
|---|---|---|
06e14c36e20b |
7.0 | iommu_sva_unbind_device() read domain->mm->iommu_mm after iommu_domain_free() had already dropped the mm, so it could follow freed memory; the access moves before the free. Fixes e37d5a2d60a3. |
| Commit | Release | Change |
|---|---|---|
0a4d00e2e99a |
7.0 | iommu_create_device_direct_mappings() treated iommu_iova_to_phys() == 0 as "not mapped", so a firmware identity mapping of 0x0 (seen on some x86 platforms) was re-mapped and failed; the mapping-presence test must distinguish a real zero address. |
Diff of include/linux/iommu.h between the tags, arm64-relevant items:
int (*attach_dev)(struct iommu_domain *domain, struct device *dev,
struct iommu_domain *old); /* signature change */
struct iommu_domain *iommu_driver_get_domain_for_dev(struct device *dev);
int pci_dev_reset_iommu_prepare(struct pci_dev *pdev);
void pci_dev_reset_iommu_done(struct pci_dev *pdev);
void iommu_sva_invalidate_kva_range(unsigned long start, unsigned long end);
/* iommu_iotlb_sync() now skips an empty gather */| Commit | Release | Change |
|---|---|---|
97c5550b7631 |
7.0 | arm64: contpte: fix set_access_flags() no-op check for SMMU/ATS faults. contpte_ptep_set_access_flags() compared the gathered ptep_get() value against the requested entry to detect no-ops. ptep_get() ORs AF/dirty across all sub-PTEs of a PTE_CONT block, so a dirty sibling made the target look already-dirty and the function returned 0 while the target sub-PTE still had PTE_RDONLY set. A CPU with FEAT_HAFDBS tolerates the gathered view; a walker that evaluates each descriptor individually — a CPU without DBM, or an SMMU without HTTU, or with HA/HD disabled in CD.TCR — keeps faulting on the unchanged sub-PTE and loops forever. The fix checks each sub-PTE's raw AF/dirty/write state before declaring a no-op. Fixes 4602e5757bcc. |
This is the change to cite when an arm64 platform with CONFIG_ARM64_CONTPTE shows
infinite write/read fault loops behind an SMMU whose CD does not enable hardware AF/D
update.
Adjacent arm64 mm changes in the same window (CPU TLB only, listed for completeness,
not IOMMU changes): cb1fa2e99955 (skip broadcast TLBI on reused-page write fault),
6f0e1142173a and 67d59bddfc26 (batched clear_young for large folios in
contpte.c).
drivers/acpi/arm64/iort.c — the ACPI description source for SMMUv3 on arm64
servers — received four commits in the range and none of them changed IORT/SMMU
parsing: two are the treewide allocation conversions (69050f8d6d07,
bf4afc53b77a) and two add GICv5 ITS/IWB probing (a97efa5ba594,
05bff3419ada). drivers/iommu/of_iommu.c is unchanged between the tags.
Each claim below was checked, not assumed; the check is named with it.
- Arm LPAE page tables were not migrated to
generic_pt. Check:git ls-tree -r --name-only v7.0 drivers/iommu/generic_pt/fmtlistsamdv1.h,vtdss.h,x86_64.hand the iommufdiommu_mock.c— no Arm format.io-pgtable-arm.cshrank by 205 lines because its selftests left (§10.1), not because the algorithms were replaced. - No new SMMUv3 hardware features: no HTTU/DBM-backed dirty tracking, no
SMMUv3.4/3.5 element support, no new Arm data in the iommufd uAPI. Check: the
49 added lines in
include/uapi/linux/iommufd.hacross the range contain one Arm-relevant change — the vDEVICE/GBPA documentation from81c45c62dc3e— andIOMMU_HW_INFO_TYPE_ARM_SMMUV3 = 2is byte-identical atv6.17andv7.0. The Arm-facing iommufd driver delta is +22/−8 inarm-smmu-v3-iommufd.c, all in §9.4's two commits. - No changes to
arch/arm64/mm/dma-mapping.c,drivers/iommu/of_iommu.c, ordrivers/iommu/iommu-debugfs.c. Check:git diff --name-only v6.17 v7.0does not list them;git rev-list --count v6.17..v7.0 -- arch/arm64/mm/dma-mapping.cis 0. - No changes to ACPI IORT SMMU parsing. Check: 4 non-merge commits touch
drivers/acpi/arm64/iort.cin the range, 2 of them the treewide allocation conversions and 2 GICv5 ITS/IWB probing. - The
iommu.passthrough/iommu.strictcommand-line surface is unchanged. Check:git diff v6.17 v7.0 -- Documentation/admin-guide/kernel-parameters.txtadds one IOMMU parameter,iommu.debug_pagealloc.
How this was produced.
cd ~/go/src/git.kernel.org/pub/scm/linux
# enumerate
git log --no-merges --date=short --pretty='%h %ad %an %s' v6.17..v7.0 -- drivers/iommu
# per-path, per-cycle counts (table in §7.1)
for p in drivers/iommu/arm drivers/iommu/dma-iommu.c drivers/iommu/io-pgtable-arm.c ...; do
for r in v6.17..v6.18 v6.18..v6.19 v6.19..v7.0 v6.17..v7.0; do
git rev-list --count $r -- "$p"; done; done
# release attribution: sets from rev-list, matched on 12-char abbreviation
git rev-list v6.17..v6.18 # etc.
# magnitude
git diff --numstat v6.17 v7.0 -- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.cCommit messages, Fixes: tags and merge-commit pull summaries were read from the
objects themselves (git show -s --pretty=%b, git log -1 %B).
Counts.
| Bucket | Commits |
|---|---|
| Non-merge commits in range | 42,305 |
Touch drivers/iommu/ (non-merge) |
202 |
| Enumerated in this document (§§9–13), after pruning | 32 |
| Enumerated in the companion changelog, all of arm64 | 162 |
Cycle split of those 162 commits: 22 in v6.18, 95 in v6.19, 45 in v7.0.
Limits, stated plainly.
-
The platform device-tree inventory is subject-driven, so it is not reproduced here. A content search over
arch/arm64/boot/dtsfinds 69 commits in the range that add or remove aniommusorsmmustring; listing them would describe device-enablement work, not IOMMU changes. Reproduce with:git log --no-merges --date=short --pretty='%h %ad %s' \ -S'iommus' v6.17..v7.0 -- arch/arm64/boot/dts # 57 commits git log --no-merges --date=short --pretty='%h %ad %s' \ -S'smmu' v6.17..v7.0 -- arch/arm64/boot/dts # 56 commits
-
Release attribution uses the first tag containing the commit (
v6.17..v6.18→ 6.18, etc.), so a fix merged during a later-rcand also backported appears once, under its mainline cycle. -
The "core" grouping is a judgement: a change is included when it alters an interface or behaviour that an arm64 driver or arm64 platform consumes (
iommu.c,iommu-pages.c,iommu-sva.c,io-pgtable*,dma-iommu.c, headers) or when it changes PCIe/DMA interaction with the IOMMU on device-tree platforms. x86-only vendor driver work is excluded and counted in the table above. -
Merge commits and stable-tree backports are not enumerated; §8 lists the mainline pull requests instead.
-
§§7–15 are derived from git objects in the local tree only — nothing there was built or booted by me. §2 is different: it is measured on live hardware.