* Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
2026-11-23 21:15 ` Niklas Cassel
@ 2026-11-23 21:49 ` Laurence Oberman
2026-11-24 7:20 ` Tobias Laas
2026-11-24 8:55 ` Thorsten Leemhuis
2 siblings, 0 replies; 5+ messages in thread
From: Laurence Oberman @ 2026-11-23 21:49 UTC (permalink / raw)
To: Niklas Cassel, Tobias Laas
Cc: Damien Le Moal, Jens Axboe, regressions, linux-block, linux-ide,
iommu, linux-kernel, David Woodhouse, Lu Baolu, Joerg Roedel,
Will Deacon
On Mon, 2026-11-23 at 22:15 +0100, Niklas Cassel wrote:
> Hello Tobias,
>
> On Mon, Nov 23, 2026 at 06:51:03PM +0000, Tobias Laas wrote:
> > One way forward could be to a new entry to __ata_dev_max_sec_quirks
> > similarly to the recent commit
> > a12cc63129380a5364e787d92b30a3257f66c250
> > ("ata: libata-core: Add max sector quirk to INTEL SSDSCKKB240G8").
> > However,
> > I wonder, whether that would fix the underlying issue or rather be
> > a
> > workaround, because 4088 does not fit the pattern of all other
> > entries,
> > which specify either a power of 2 or a power of 2 minus 1.
>
> Your attached kernel log shows that you have a
> Samsung SSD 860 PRO 1TB, FW: RVM02B6Q
>
> This SSD is probably quite common, so I somewhat doubt that it is the
> SSD that is at fault here.
>
>
> >
> > Furthermore, the first error messages are DMAR faults, and a SATA
> > SSD that
> > isn't functioning properly shouldn't cause any DMAR faults, because
> > the SATA
> > controller should never read from or write to areas outside its
> > memory
> > region.
> > Since the issue with mounting the rootfs disappears with
> > intel_iommu=off, I
> > wonder, whether there is a limitation on the maxmium block size
> > either by
> > the hardware or from the configuration of the IOMMU and SATA
> > controller by
> > the kernel.
>
> Considering how common your SSD is, my guess is that it is somehow an
> IOMMU or a BIOS/ACPI bug (since the BIOS generates specific ACPI
> tables -
> DMAR on Intel).
>
>
> We have seen similar reports here:
> https://bugzilla.kernel.org/show_bug.cgi?id=220693
> https://bugzilla.kernel.org/show_bug.cgi?id=221713
>
> Does it work if you revert:
> d373449d8e97 ("iommu/vt-d: Use the generic iommu page table") ?
>
>
> It would be nice if we could involve some Intel IOMMU experts.
>
> If the ACPI DMAR is at fault, perhaps it is possible for the kernel
> to
> patch the ACPI DMAR for your platform.
>
>
> Kind regards,
> Niklas
Hi Niklas, Tobias,
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.
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.
Regards,
Laurence
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
2026-11-23 21:15 ` Niklas Cassel
2026-11-23 21:49 ` Laurence Oberman
@ 2026-11-24 7:20 ` Tobias Laas
2026-11-24 8:55 ` Thorsten Leemhuis
2 siblings, 0 replies; 5+ messages in thread
From: Tobias Laas @ 2026-11-24 7:20 UTC (permalink / raw)
To: Niklas Cassel
Cc: Damien Le Moal, Jens Axboe, regressions, linux-block, linux-ide,
iommu, linux-kernel, David Woodhouse, Lu Baolu, Joerg Roedel,
Will Deacon
Am 23.11.2026 22:15 schrieb Niklas Cassel:
> Hello Tobias,
>
> On Mon, Nov 23, 2026 at 06:51:03PM +0000, Tobias Laas wrote:
>> One way forward could be to a new entry to __ata_dev_max_sec_quirks
>> similarly to the recent commit
>> a12cc63129380a5364e787d92b30a3257f66c250
>> ("ata: libata-core: Add max sector quirk to INTEL SSDSCKKB240G8").
>> However,
>> I wonder, whether that would fix the underlying issue or rather be a
>> workaround, because 4088 does not fit the pattern of all other
>> entries,
>> which specify either a power of 2 or a power of 2 minus 1.
>
> Your attached kernel log shows that you have a
> Samsung SSD 860 PRO 1TB, FW: RVM02B6Q
>
> This SSD is probably quite common, so I somewhat doubt that it is the
> SSD that is at fault here.
Hello Niklas,
thanks for the the quick reply. Indeed the Samsung SSD 860 PRO series is
quite common.
>
>>
>> Furthermore, the first error messages are DMAR faults, and a SATA SSD
>> that
>> isn't functioning properly shouldn't cause any DMAR faults, because
>> the SATA
>> controller should never read from or write to areas outside its memory
>> region.
>> Since the issue with mounting the rootfs disappears with
>> intel_iommu=off, I
>> wonder, whether there is a limitation on the maxmium block size either
>> by
>> the hardware or from the configuration of the IOMMU and SATA
>> controller by
>> the kernel.
>
> Considering how common your SSD is, my guess is that it is somehow an
> IOMMU or a BIOS/ACPI bug (since the BIOS generates specific ACPI tables
> -
> DMAR on Intel).
>
>
> We have seen similar reports here:
> https://bugzilla.kernel.org/show_bug.cgi?id=220693
> https://bugzilla.kernel.org/show_bug.cgi?id=221713
Thanks for the pointer. The first report sounds as if it discusses
several issues. I agree with Ivan's comment at
https://bugzilla.kernel.org/show_bug.cgi?id=220693#c42 .
I am afraid the second report is specific to HP server mainboards. In
contrast to the logs in the Debian bug report, I have never seen the
following error:
DMAR: DRHD: handling fault status reg 2
DMAR: [INTR-REMAP] Request device [01:00.0] fault index 0x1c [fault
reason 0x26] Blocked an interrupt request due to source-id verification
failure.
On my mainboard, I have only observed DMAR errors with [fault reason
0x0c] non-zero reserved fields in PTE.
>
> Does it work if you
> revert:https://posteo.de/webmail/?_task=mail&_id=4553111306b0538dd90e75&_action=compose#
> d373449d8e97 ("iommu/vt-d: Use the generic iommu page table") ?
To be honest I built many kernel versions between the increase in
BLK_DEF_MAX_SECTORS_CAP (~ 6.17-rc1) and HEAD for the bisection, and
since the change you mention was not included until 6.19-rc1, I have
tested kernels with and without this change, so I doubt a revert would
help.
Best regards,
Tobias Laas
>
> It would be nice if we could involve some Intel IOMMU experts.
>
> If the ACPI DMAR is at fault, perhaps it is possible for the kernel to
> patch the ACPI DMAR for your platform.
>
>
> Kind regards,
> Niklas
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
2026-11-23 21:15 ` Niklas Cassel
2026-11-23 21:49 ` Laurence Oberman
2026-11-24 7:20 ` Tobias Laas
@ 2026-11-24 8:55 ` Thorsten Leemhuis
2 siblings, 0 replies; 5+ messages in thread
From: Thorsten Leemhuis @ 2026-11-24 8:55 UTC (permalink / raw)
To: Tobias Laas
Cc: Damien Le Moal, Jens Axboe, regressions, linux-block, linux-ide,
iommu, linux-kernel, David Woodhouse, Lu Baolu, Joerg Roedel,
Will Deacon, Niklas Cassel
[Reminder, this is not my area of expertise, so this might be sending
everyone in the wrong direction -- so handle it carefully]
On 11/23/26 22:15, Niklas Cassel wrote:
>> Since the issue with mounting the rootfs disappears with intel_iommu=off, I
>> wonder, whether there is a limitation on the maxmium block size either by
>> the hardware or from the configuration of the IOMMU and SATA controller by
>> the kernel.
> Considering how common your SSD is, my guess is that it is somehow an
> IOMMU or a BIOS/ACPI bug (since the BIOS generates specific ACPI tables -
> DMAR on Intel).
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.
Ciao, Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread