From: Tobias Laas <tobias.laas@posteo.de>
To: Damien Le Moal <dlemoal@kernel.org>, Jens Axboe <axboe@kernel.dk>
Cc: regressions@lists.linux.dev, linux-block@vger.kernel.org,
linux-ide@vger.kernel.org, iommu@lists.linux.dev,
linux-kernel@vger.kernel.org, Niklas Cassel <cassel@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: [REGRESSION] DMAR fault by Intel H97 SATA controller since "block: Increase BLK_DEF_MAX_SECTORS_CAP" (6.17-rc1)
Date: Mon, 23 Nov 2026 18:51:03 +0000 [thread overview]
Message-ID: <5ad27a97aafbc08a8702d5b90d09cd59@posteo.de> (raw)
[-- 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 --]
reply other threads:[~2026-11-23 18:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5ad27a97aafbc08a8702d5b90d09cd59@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=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