From: Tobias Laas <tobias.laas@posteo.de>
To: Laurence Oberman <loberman@redhat.com>,
Thorsten Leemhuis <regressions@leemhuis.info>
Cc: Niklas Cassel <cassel@kernel.org>,
Damien Le Moal <dlemoal@kernel.org>, Jens Axboe <axboe@kernel.dk>,
regressions@lists.linux.dev, linux-block@vger.kernel.org,
linux-ide@vger.kernel.org, iommu@lists.linux.dev,
linux-kernel@vger.kernel.org,
David Woodhouse <dwmw2@infradead.org>,
Lu Baolu <baolu.lu@linux.intel.com>,
Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>
Subject: Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
Date: Wed, 25 Nov 2026 08:29:25 +0000 [thread overview]
Message-ID: <ea064dc05dbf146814f1495adad4d39e@posteo.de> (raw)
In-Reply-To: <7eb28c6334a655eb5bfbf3035cf1f1ff1041bb3e.camel@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 4969 bytes --]
Am 23.11.2026 22:49 schrieb Laurence Oberman:
> Hi Niklas, Tobias,
Hi Torsten, hi Laurence,
I am responding to both of your emails in this email, because you both
suggested to check out intel_iommu=on,sp_off.
>
> I tried to help here but (full transparency) I had some LLM help for
> further ideas after I coul dnot repriduce this on my platform.
>
> I tried to reproduce this on a Coffee Lake desktop (i7-8700, Cannon
> Lake PCH AHCI 00:17.0) whose INCLUDE_ALL DRHD reports the same
> relevant capabilities as Tobias's dmar1:
>
> dmar1: cap d2008c40660462 ecap f050da
> (SLLPS = 2M|1G, ecap.C = 0, MGAW 39, SAGAW 4-level only)
>
> with intel_iommu=on, DMA-FQ default domain, max_sectors_kb = 4096.
>
> - 6.12-based kernel (pre d373449d8e97, i.e. the old VT-d page table
> code, with the larger BLK_DEF_MAX_SECTORS_CAP): 2M O_DIRECT reads,
> clean.
> - 7.4.0-rc1 (generic iommu page table): 2M and 4M O_DIRECT reads and
> 2M writes from hugepage-backed buffers against a SATA SSD, ~15k
> I/Os, no DMAR or ATA errors. The iommu:map tracepoint shows
> 2 MiB-aligned iova/paddr mappings, and domain_translation_struct
> shows 2 MiB leaf PDEs (e.g. 0x000000039c200082, PS set), so the
> superpage path was exercised.
>
> The 4088 vs 4089 threshold matches exactly the point where a request
> first needs a full 512-page (2 MiB) IOVA, which is where superpage
> mappings become possible. All three of Tobias's fault addresses fall
> in the same 2 MiB window at 0xff400000.
>
> So on this hardware neither the old nor the generic page table code
> shows the problem, which supports Niklas's suspicion of something
> platform specific. One difference: on Tobias's system dmar0 reports
> no superpage support (cap c0000020660462) while dmar1 does; on mine
> both do.
>
> Tobias, a few things that would maybe help narrow it down:
>
> 1. Boot with intel_iommu=on,sp_off and an unmodified cap. If the
> faults go away, superpages are involved.
Very nice. I just tried with a kernel with the cap at 8191, which I had
at hand (the new default cap is 8192 IIRC): with intel_iommu=on,sp_off
the faults go away, indeed. More on this below.
> 2. The full dmesg from a failing boot, including the DMAR/DRHD
> lines. The faults are reported as DMA Write while the outstanding
> commands were WRITE FPDMA QUEUED, and I'd like to see what else
> was in flight.
To be honest, I'd like to avoid having to capture a full log when the
error occurs, because I can't think of a good way to save it.
Technically, I hope the logs up to the first fault are identical with
the various caps. As you can see in the log corresponding to the first
screen full of errors in the attachment, there are exactly two WRITE
FPDMA QUEUED commands that fail at a time (with the cap at 4089 IIRC),
so the log looks very repetitive. After the first couple of errors, the
kernel starts reducing the ATA link speed (and later maybe also the UDMA
speeds) and continues to do so until it gives up on mounting the rootfs.
Then I’m greeted by an initramfs shell prompt, and I’m not sure if I can
mount any other filesystem at this point with the slimmed down kernel
config I used to speed up the bisection.
I’m not sure if I’ve understood you correctly regarding your second
sentence: I don’t see any contradiction here—for a WRITE FPDMA QUEUED
command, there should be an associated DMA write. The QUEUED just
indicates that the SSD can reorder the commands in the queue (NCQ).
Am 24.11.2026 09:55 schrieb Thorsten Leemhuis:
> I just a few days privately was told that "intel_iommu=on,sp_off"
> solved
> problems wrt to one unresolved regression related to iommu with a
> similar generation intel hardware. The user wrote "[kernel] code
> improperly thinking that the CPU supports something called
> "superpages",
> which it does, but only when the integrated GPU is disabled (speciality
> of Intel Haswell)."
>
> Could that maybe related? Do you use the iGPU? Does that parameter
> prevent the problems? It's a long shot, but quickly tested, so I
> thought
> it was worth mentioning.
Yes, it could very well be related. My CPU is a Haswell (Refresh)
Desktop processor, and I do use the iGPU. And sp_off seems to prevent
the problems, see above.
But what I still don't understand is why DMAR faults occur. There are
dmar0 and dmar1, and as Laurence explained, dmar0 does not support
superpages on my board. I guess this is because the iGPU is supposed to
be associated with dmar0 (The BIOS might configure this differently when
I install a PCIe GPU and deactivate the iGPU). Is there any conflict if
dmar1 uses superpages and dmar0 doesn't? Or does the kernel not respect
that dmar0 does not support superpages? Or is the iGPU associated with
dmar1? Who determines this: the kernel or the BIOS?
Best regards,
Tobias Laas
[-- Attachment #2: errors-page1.log.xz --]
[-- Type: application/x-compressed, Size: 756 bytes --]
next prev parent reply other threads:[~2026-11-25 8:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 18:51 [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1) Tobias Laas
2026-11-23 21:15 ` Niklas Cassel
2026-11-23 21:49 ` Laurence Oberman
2026-11-25 8:29 ` Tobias Laas [this message]
2026-11-24 7:20 ` Tobias Laas
2026-11-24 8:55 ` Thorsten Leemhuis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea064dc05dbf146814f1495adad4d39e@posteo.de \
--to=tobias.laas@posteo.de \
--cc=axboe@kernel.dk \
--cc=baolu.lu@linux.intel.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=dwmw2@infradead.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loberman@redhat.com \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox