Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
From: Laurence Oberman
Date: Fri Dec 04 2026 - 08:22:32 EST
On Fri, 2026-12-04 at 12:47 +0000, Tobias Laas wrote:
>
>
> Am 4. Dezember 2026 09:51:41 MEZ schrieb Thorsten Leemhuis
> <regressions@xxxxxxxxxxxxx>:
> > On 12/1/26 10:04, Baolu Lu wrote:
> > > On 11/26/26 07:27, Bart Van Assche wrote:
> > > > On 11/25/26 2:51 PM, 70sp wrote:
> > > > > as I mentioned in the referenced regression thread I
> > > > > reported, the
> > > > > patch I sent out was basically an example to show that it
> > > > > works for
> > > > > my use case. I wrote that I don't think the patch is ideal
> > > > > (in fact,
> > > > > I think it's an absolutely terrible solution to fix this).
> > > > > This is
> > > > > also the reason, why I just sent it as a snippet of code.
> > > > >
> > > > > Please take a look at the code before the regression started
> > > > > to
> > > > > occur. It was implemented universally. These vibe coded
> > > > > patches are
> > > > > horrible compared to the original code. We are literally
> > > > > making an
> > > > > exemption for a specific CPU in a place where it shouldn't
> > > > > be. The
> > > > > actual correct solution would be to make a patch which works
> > > > > similarly to the pre-regression state.
> > > > >
> > > > > If we are going to merge something that is made by a LLM we
> > > > > should
> > > > > at least make it good. Ideally made by an actual human.
> > > > (+Lu, Jason and Joerg, signers/reviewers of the patch mentioned
> > > > in the
> > > > Fixes: tag)
> > > >
> > > > Is a better solution possible than the patch "iommu/vt-d:
> > > > Disable
> > > > superpages on Haswell with integrated graphics" I posted here:
> > > > https://lore.kernel.org/linux-block/
> > > > uJluFNYGCCrdvnYT3MatN_4Om8UczTJX_dzxumJxyCAC7F-
> > > > Ubrekb7LPwlRxhCW0J91UBf- TqeRoJQfgYIYBRvMsPmE-
> > > > Qs1eAg5zbDP0s58=@protonmail.com/T/
> > > > #mc147f250c5356e3742ab3d30ccf6b4a3a8c4196b ?
> > >
> > > I noticed that there is a similar fix here
> > >
> > > https://lore.kernel.org/linux-iommu/20260929151832.80069-1-
> > > johnathanc@xxxxxxxxxxxxxxx/
> >
> > I might have missed something, but it looks like this is stalled
> > again.
> > And no wonder, even I feel uncertain here, as there are multiple
> > threads
> > and fixes (some of them similar) for the problem. Will likely be
> > similar
> > for maintainers, so I suspect none will take a closer look at those
> > fixes unless someone re-submits one as the agreed on path forward
> > freshly, containing all Reported-by and Links to earlier
> > discussions
> > (the one from Bart gets close already from what I see, unless I
> > missed/misunderstood something, which is quite possible).
> >
> > Baolu Lu, could you maybe take care of this, given that you
> > authored the
> > culprit, even if that was quite a while ago? Unless somebody has a
> > better idea.
> Hi Thorsten,
>
> I am afraid it is not clear yet whether superpages also need to be
> disabled when the iGFX is disabled.
> Please bear with me. I would like to test this over the weekend.
>
> Best regards,
> Tobias Laas
>
> > Ciao, Thorsten
Hi Tobias,
Thanks, that is a useful thing to settle, because Bart's generalized
patch keys on the iGPU being present: with the iGPU disabled in BIOS,
00:02.0 normally disappears and the quirk does not trigger, so
superpages stay enabled.
A suggested test, so the result answers the question directly:
1. Disable the iGPU in BIOS, boot an unpatched kernel with
intel_iommu=on (no sp_off) and the default 4 MiB cap.
2. Capture:
dmesg | grep -E 'DMAR: (DRHD|dmar[0-9])'
lspci -s 00:02.0
It would be interesting to see whether the BIOS then drops the
igfx DRHD entirely and/or changes CAP.SLLPS on the remaining unit.
3. Generate large I/O on the SATA SSD (normal boot plus a large
sequential read is enough; with hugepages, e.g.
fio --name=sp --filename=/dev/sdX --direct=1 --readonly \
--rw=read --bs=2M --iomem=mmaphuge --iodepth=8 \
--ioengine=libaio --runtime=30 --time_based
after echo 64 > /proc/sys/vm/nr_hugepages) and check for DMAR
fault reason 0x0c.
If that is clean, the quirk only needs to apply while the iGPU is
enabled, which matches the datasheet wording and Bart's v2. If it
still faults, the quirk would need to key on the platform rather than
on the presence of the iGPU.
I'm building Bart's generalized version now and will confirm it is a
no-op on a non-affected platform (Coffee Lake, both DRHDs report
SLLPS = 2M|1G), as I did for the first version.
Regards,
Laurence