Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
From: 70sp
Date: Sun Dec 06 2026 - 10:07:08 EST
On Sunday, December 6th, 2026 at 3:25 PM, Laurence Oberman <loberman@xxxxxxxxxx> wrote:
> Hi Tobias, Šimon,
>
> Thanks Tobias, that settles the scope: with the iGPU disabled the
> BIOS drops the igfx DRHD, the remaining unit keeps the same SLLPS, and
> superpages work. So the quirk only needs to apply while the iGPU is
> enabled, which both Bart's versions already do.
>
> Šimon, regarding the datasheet paragraph appearing from Ivy Bridge to
> Rocket Lake: one possible explanation is that the requirement only
> matters when the igfx VT-d engine itself lacks superpage support, and
> that differs across generations. On Tobias's Haswell the igfx DRHD
> reports SLLPS = 0 (cap c0000020660462). On my Coffee Lake (i7-8700)
> the igfx DRHD (dmar0, scope 0000:00:02.0 only) reports SLLPS = 2M|1G
> (cap 1c0000c40660462), and the platform is not affected. If that
> holds, only generations where the igfx engine lacks superpages and the
> BIOS left them enabled on the default engine would show the problem.
> dmar cap lines from an Ivy Bridge or Broadwell system with the iGPU
> enabled would confirm or refute this.
>
> That is also the case for Bart's v2 checking the capabilities rather
> than CPU or device IDs: it covers any generation with that combination
> and skips the rest. For what it's worth, I tested v2 on v7.4-rc5 on
> the Coffee Lake system: it does not trigger, superpages stay in use
> (2 MiB leaf PDEs confirmed via domain_translation_struct), and there
> are no DMAR or ATA errors.
>
> Tobias, on the PCI fixup approach: I don't think running earlier
> makes a functional difference, since intel_iommu_superpage is only
> consulted when paging domains are allocated, after intel_iommu_init().
> The capability check also cannot run from a header fixup: the DRHD
> device scopes are populated by dmar_dev_scope_init(), which walks the
> PCI devices after enumeration, so they are not available while the
> header fixups run. The ID list is precise for Haswell, but would miss
> other generations if their igfx engines also report SLLPS = 0. Small
> thing: two lines in your diff end with a stray backslash after the
> comment (0x0A1B and 0x0A1E).
>
> Lu, either approach fixes Tobias's system; it's your call which you
> prefer.
>
> Regards,
> Laurence
Hello Tobias and Laurence,
I think the issue with the documentation is that they just copy-pasted it. The paragraph says "The processor supports the following added new Intel VT-d features", which is straight up wrong when the paragraph is the same for 10 years.
I like the solution from Tobias because it should contain (hopefully) all affected CPUs. From what I managed to find, it should be all types of Haswell CPUs and it looks like Tobias listed them all. Otherwise it's very readable and easily quirkable.
I found that all generations before Haswell (Ivy bridge and older) don't support superpages at all and generations newer than Haswell (Broadwell and newer) support superpages on both the iGPU VT-d unit and the default VT-d unit. Haswell seems to be the only special one.
I had a solution in mind that would be universal, since the code is currently written in a way that doesn't work with different size superpages on different VT-d units. It would check SLLPS on all DMAR units and if their capabilities wouldn't match, then it would disable superpages. I can't work on this issue fast enough so I'll just let it be. If anybody thinks this might be better I can make it though.
Thanks to everybody.
Best regards,
Šimon Pospíchal