* [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
@ 2026-11-23 18:51 Tobias Laas
2026-11-23 21:15 ` Niklas Cassel
0 siblings, 1 reply; 8+ messages in thread
From: Tobias Laas @ 2026-11-23 18:51 UTC (permalink / raw)
To: Damien Le Moal, Jens Axboe
Cc: regressions, linux-block, linux-ide, iommu, linux-kernel,
Niklas Cassel, David Woodhouse, Lu Baolu, Joerg Roedel,
Will Deacon
[-- Attachment #1: Type: text/plain, Size: 4829 bytes --]
Hi,
commit 9b8b84879d4adc506b0d3944e20b28d9f3f6994b ("block: Increase
BLK_DEF_MAX_SECTORS_CAP" - 6.17-rc1) causes my system based on an ASRock
H97M Pro4 mainboard (Intel H97 chipset) to fail to mount the rootfs
(XFS) when booted with intel_iommu=on. With intel_iommu=off, the kernel
mounts the rootfs without any problems, but I cannot rule out silent
data corruption. The SSD with the rootfs is connected to port ata5 of
the Intel H97 SATA controller.
A similar issue has also been reported at
https://askubuntu.com/q/1565093 , but unfortunately the answer provided
there does not address the IOMMU-related errors.
The first error messages displayed at boot are (kernel at
4843f6873f7c4835e62f2c73ba0fd538e57a2f22 "Merge tag
'sysctl-7.04-fixes-rc4' of
git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl")
DMAR: DRHD: handling fault status reg 3
DMAR: [DMA: Write NO_PASID] Request device [0000:00:1f.2] fault addr
0xff400000 [fault reason 0x0c] non-zero reserved fields in PTE
DMAR: DRHD: handling fault status reg 3
DMAR: [DMA: Write NO_PASID] Request device [0000:00:1f.2] fault addr
0xff4a0000 [fault reason 0x0c] non-zero reserved fields in PTE
DMAR: DRHD: handling fault status reg 3
DMAR: [DMA: Write NO_PASID] Request device [0000:00:1f.2] fault addr
0xff450000 [fault reason 0x0c] non-zero reserved fields in PTE
ata5.00: exception Emask 0x70 SAct 0x30000000 SErr 0x440900 action 0x6
frozen
ata5.00: irq_stat 0x28000000, host bus error, interface fatal error
ata5: SError: { UnrecovData HostInt CommWake Handshk }
ata5.00: failed command: WRITE FPDMA QUEUED
ata5.00: cmd 61/f9:e0:68:47:7b/0f:00:18:00:00/40 tag 28 ncq dma 2093568
ou
ata5.00: res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x70 (host bus
error)
ata5.00: stats: { DRDY }
ata5.00: failed command: WRITE FPDMA QUEUED
ata5.00: cmd 61/07:e8:61:57:7b/0f:00:18:00:00/40 tag 29 ncq dma 3594 out
ata5.00: res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x70 (host bus
error)
ata5.00: stats: { DRDY }
ata5: hard resetting link
The request device in the DMAR fault is the Intel H97 SATA controller:
00:1f.2 SATA controller: Intel Corporation 9 Series Chipset Family SATA
Controller [AHCI Mode] (prog-if 01 [AHCI 1.0])
Subsystem: ASRock Incorporation Device 8c82
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 34
IOMMU group: 11
Region 0: I/O ports at f0d0 [size=8]
Region 1: I/O ports at f0c0 [size=4]
Region 2: I/O ports at f0b0 [size=8]
Region 3: I/O ports at f0a0 [size=4]
Region 4: I/O ports at f060 [size=32]
Region 5: Memory at efc39000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci
I bisected the issue to the value of BLK_DEF_MAX_SECTORS_CAP in
block/blk.h, which was increased by the aforementioned commit.
With
#define BLK_DEF_MAX_SECTORS_CAP 4088u
the system boots and mounts the rootfs successfully, but with 4089 and
larger there are errors. I have attached a dmesg log from a successful
boot with 4088 sectors.
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.
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. Perhaps this was uncovered by the
increase in the maximum number of sectors similarly to
af8c27375733fb6a6df9fa484cda77cc3dd0cb80 ("scsi: megaraid_sas: Limit
NVMe request size to the PRP chain frame"). Note that I cannot rule out
the possibility of silent data corruption, even if the rootfs is mounted
successfully, should the SATA controller write to other memory areas
with the increased number of sectors—which would not be detected with
intel_iommu=off.
I would appreciate it if someone could investigate this issue. Any
insights into its possible cause would be greatly appreciated.
Best regards,
Tobias Laas
[-- Attachment #2: dmesg-4088.log.xz --]
[-- Type: application/x-compressed, Size: 13404 bytes --]
^ permalink raw reply [flat|nested] 8+ 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 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 ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Niklas Cassel @ 2026-11-23 21:15 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 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 ^ permalink raw reply [flat|nested] 8+ 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-25 8:29 ` Tobias Laas 2026-11-24 7:20 ` Tobias Laas 2026-11-24 8:55 ` Thorsten Leemhuis 2 siblings, 1 reply; 8+ 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] 8+ 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:49 ` Laurence Oberman @ 2026-11-25 8:29 ` Tobias Laas 2026-11-25 12:45 ` Laurence Oberman 0 siblings, 1 reply; 8+ messages in thread From: Tobias Laas @ 2026-11-25 8:29 UTC (permalink / raw) To: Laurence Oberman, Thorsten Leemhuis Cc: Niklas Cassel, Damien Le Moal, Jens Axboe, regressions, linux-block, linux-ide, iommu, linux-kernel, David Woodhouse, Lu Baolu, Joerg Roedel, Will Deacon [-- 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 --] ^ permalink raw reply [flat|nested] 8+ 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-25 8:29 ` Tobias Laas @ 2026-11-25 12:45 ` Laurence Oberman 0 siblings, 0 replies; 8+ messages in thread From: Laurence Oberman @ 2026-11-25 12:45 UTC (permalink / raw) To: Tobias Laas, Thorsten Leemhuis Cc: Niklas Cassel, Damien Le Moal, Jens Axboe, regressions, linux-block, linux-ide, iommu, linux-kernel, David Woodhouse, Lu Baolu, Joerg Roedel, Will Deacon On Wed, 2026-11-25 at 08:29 +0000, Tobias Laas wrote: > 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 Hi Tobias, Thorsten, Againe, I had LLM help here trying to get clarification. Thanks Tobias, the sp_off result confirms that superpage mappings are involved. No need for the full failing log; the question about DMA Write vs. WRITE FPDMA no longer matters given this. To your questions: the BIOS defines which devices each DRHD covers, via the ACPI DMAR table. On your board dmar0 (flags 0x0) covers only the iGPU (00:02.0), and dmar1 (INCLUDE_PCI_ALL) covers everything else, including the SATA controller at 00:1f.2. The iGPU is not behind dmar1. If I read the history right, this comes from three things combining: - Before v6.13, intel-iommu used the lowest common superpage level across all active IOMMUs (domain_update_iommu_superpage()). Since your dmar0 reports no superpage support (cap c0000020660462), superpages were never used anywhere on your system. - 5bdd86ec5d19 ("iommu/vt-d: Remove domain_update_iommu_superpage()", v6.13-rc1) made superpage support per-IOMMU, so dmar1 started using its advertised 2M pages (cap d2008c20660462, SLLPS = 2M|1G). - 9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP", v6.17-rc1) raised the default cap from 2560 sectors (1.25 MiB) to 4 MiB. Block I/O can now produce 2 MiB-aligned 512-page mappings, which is the first time AHCI DMA hits the superpage path by default. That explains both the bisect result and the 4088/4089 threshold: 4088 sectors is exactly 511 pages, 4089 needs a full 2 MiB mapping. All three of your fault addresses (0xff400000, 0xff4a0000, 0xff450000) fall in the same 2 MiB IOVA window, and fault reason 0x0c (non-zero reserved fields in PTE) at scattered 4K addresses inside it would fit the IOMMU not handling the 2M leaf entry correctly. That is similar to the Geminilake igfx superpage issue fixed a few years ago. For comparison, I could not reproduce this on a Coffee Lake system (i7-8700, Cannon Lake PCH AHCI) where both DRHDs report SLLPS = 2M|1G (dmar1 cap d2008c40660462, ecap f050da). On 7.4.0-rc1 with intel_iommu=on and max_sectors_kb = 4096, against a SATA SSD: - O_DIRECT 2M/4M reads and 2M writes from hugepage-backed buffers (~15k I/Os); domain_translation_struct confirms 2 MiB leaf PDEs were installed (e.g. 0x000000039c200082, PS set) - 60s of concurrent 2M sequential + 4k random O_DIRECT reads - buffered XFS write/read/copy of 8 GiB, with ~2000 4 MiB mappings in the iommu:map trace all completed without DMAR or ATA errors. A 6.12-based kernel with the larger cap was also clean. That is consistent with the problem being specific to the dmar0/dmar1 superpage asymmetry on Haswell with the iGPU enabled, as Thorsten's report suggests. Tobias, if you have time, a confirmation test: on a 6.13-6.16 kernel, raising max_sectors_kb to 4096 via sysfs on the SSD should reproduce the faults, while 6.12 with the same setting should not. Lu, is there a known Haswell erratum here? If so, a platform quirk that disables superpages (or restores the common-denominator rule) when the igfx DRHD lacks superpage support seems like the right fix, along the lines of the earlier Geminilake igfx superpage quirk, rather than limiting max_sectors in libata. Regards, Laurence ^ permalink raw reply [flat|nested] 8+ 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; 8+ 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] 8+ 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 2026-11-25 8:52 ` Thorsten Leemhuis 2 siblings, 1 reply; 8+ 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] 8+ 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-24 8:55 ` Thorsten Leemhuis @ 2026-11-25 8:52 ` Thorsten Leemhuis 0 siblings, 0 replies; 8+ messages in thread From: Thorsten Leemhuis @ 2026-11-25 8:52 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, 70sp, Laurence Oberman On 11/24/26 09:55, Thorsten Leemhuis wrote: > [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. [...] For completeness, Šimon Pospíchal (now CCed) shared findings and a WIP fix (both with the help of a LLM) meanwhile here: https://lore.kernel.org/all/QISmXFlpPMgvFUKmdIBDwqn4JHHXt2NZeJzerMLHF_5icLo0lPKVlN0Ig9v8Vb52NmCeSFdyrao4x8KoN1DCXtDlnZS7eRIClC6vZyu-hPU%3D@protonmail.com/ Ciao, Thorsten ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-11-25 12:45 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 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 2026-11-25 12:45 ` Laurence Oberman 2026-11-24 7:20 ` Tobias Laas 2026-11-24 8:55 ` Thorsten Leemhuis 2026-11-25 8:52 ` Thorsten Leemhuis
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®