Skip to content

linux-omarchy: keep Intel IOMMU off by default on Dell XPS 13 9343 (fixes PTT TPM timeout) - #678

Closed
taufderl wants to merge 1 commit into
omacom:masterfrom
taufderl:intel-iommu-xps13-9343-tpm
Closed

taufderl wants to merge 1 commit into
omacom:masterfrom
taufderl:intel-iommu-xps13-9343-tpm

Conversation

@taufderl

Copy link
Copy Markdown

Fixes #677.

Problem

CONFIG_INTEL_IOMMU_DEFAULT_ON=y (added with the new kernel packages in #440) breaks the firmware TPM (Intel PTT) on the Dell XPS 13 9343. The PTT command buffer is in system RAM and is DMA-read by a hidden ME function (00:16.7). The firmware's DMAR table has no RMRR covering it, so with DMA remapping on:

DMAR: [DMA Read NO_PASID] Request device [0000:00:16.7] fault addr 0xdbaff000 [fault reason 0x02] Present bit in context entry is clear
tpm tpm0: Operation Timed out
tpm_crb_acpi MSFT0101:00: probe with driver tpm_crb_acpi failed with error -62
systemd[1]: Timed out waiting for device /dev/tpm0.   # 90 s later

Result: no TPM, plus a 90 s boot hang on every boot. The TPM works on the Arch linux kernel, which leaves the Intel IOMMU off by default. Full analysis is in #677.

Change

New patch 0710-iommu-intel-xps13-9343-ptt-no-rmrr.patch, added to both linux-omarchy and linux-omarchy-bore (pkgrel 6 → 7):

  • A DMI table (intel_iommu_ptt_no_rmrr) matching Dell Inc. / XPS 13 9343.
  • At the start of intel_iommu_init(), a match sets dmar_disabled = 1 and logs why.
  • It does nothing if the IOMMU is already disabled or intel_iommu=on was passed explicitly. It runs before the tboot and platform-opt-in checks, so both can still force the IOMMU on. no_platform_optin is left alone.
  • Every other machine keeps INTEL_IOMMU_DEFAULT_ON. The table can take more Haswell/Broadwell PTT models if they show the same fault.

Testing

  • Compiles warning-free with W=1 against 7.2.5 using each package's config.x86_64, on top of the full patch series.
  • Applies with patch -Np1 --fuzz=0 after all existing patches for both packages.
  • scripts/checkpatch.pl: 0 errors, 0 warnings.
  • b2sums/sha256sums verified against every local source file for both PKGBUILDs.
  • Not yet boot-tested with the rebuilt package. The runtime state it produces (Intel IOMMU off) is what the Arch kernel runs with on the same machine, where the TPM works. I'll confirm on the XPS 13 9343 once a PR build is available.

The patch has no .sig, like other external contributions (e.g. #596). It needs signing by a maintainer.

🤖 Generated with Claude Code

https://claude.ai/code/session_019uo7x1CH4xTNQTzhnzKd3Z

CONFIG_INTEL_IOMMU_DEFAULT_ON=y breaks the firmware TPM (Intel PTT) on
the XPS 13 9343. The PTT command buffer lives in system RAM and is read
by a hidden ME function (00:16.7) via DMA, but the firmware's DMAR table
has no RMRR covering it. With DMA remapping enabled those reads fault,
tpm_crb times out (-62), and systemd waits 90 s for /dev/tpm0 on every
boot.

Add a DMI quirk that keeps DMA remapping off by default on this model.
intel_iommu=on, tboot and platform opt-in still force it on. Applied to
both linux-omarchy and linux-omarchy-bore, pkgrel bumped to 7.

Fixes omacom#677

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019uo7x1CH4xTNQTzhnzKd3Z
@dhh
dhh requested a review from kwilczynski September 27, 2026 19:54
@taufderl

Copy link
Copy Markdown
Author

Closing: the 7.2.7 kernel config disables CONFIG_INTEL_IOMMU_DEFAULT_ON, which fixes the TPM timeout without this DMI quirk. Confirmed on the XPS 13 9343 with 7.2.7rc1, see #677 (#677 (comment)).

@taufderl taufderl closed this Sep 27, 2026
@kwilczynski

Copy link
Copy Markdown
Member

@taufderl thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linux-omarchy: tpm: Intel PTT on Dell XPS 13 9343 times out (DMAR fault from 00:16.7) with INTEL_IOMMU_DEFAULT_ON, 90 s boot hang

2 participants