Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #93159 > unrolled thread

Bug#1141183: src:linux: I/O errors on SATA devices related to IOMMU

Started byTj <tj.iam.tj@proton.me>
First post2026-07-01 00:20 +0200
Last post2026-07-13 00:10 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1141183: src:linux: I/O errors on SATA devices related to IOMMU Tj <tj.iam.tj@proton.me> - 2026-07-01 00:20 +0200
    Bug#1141183: src:linux: I/O errors on SATA devices related to IOMMU Bastian Blank <waldi@debian.org> - 2026-07-12 21:20 +0200
      Bug#1141183: src:linux: I/O errors on SATA devices related to IOMMU Tj <tj.iam.tj@proton.me> - 2026-07-13 00:10 +0200

#93159 — Bug#1141183: src:linux: I/O errors on SATA devices related to IOMMU

FromTj <tj.iam.tj@proton.me>
Date2026-07-01 00:20 +0200
SubjectBug#1141183: src:linux: I/O errors on SATA devices related to IOMMU
Message-ID<NbOY9-1YaS-7@gated-at.bofh.it>
Source: linux
Followup-For: Bug #1141183
X-Debbugs-Cc: tj.iam.tj@proton.me

I've worked with Chris in Matrix Debian room over the last two days to
diagnose this issue. Initial report was I/O errors after kernel upgrade
from v6.12.90 to v7.0.10 with:

[22396.952764] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[22396.952791] ata2.00: failed command: WRITE DMA EXT
[22396.952799] ata2.00: cmd 35/00:b8:02:30:0b/00:1d:00:00:00/e0 tag 26 dma 3895296 out
                        res 50/00:00:01:20:0b/00:00:00:00:00/e0 Emask 0x40 (internal error)
[22396.952822] ata2.00: status: { DRDY }

We initially focused on the C220 series chipset and the SATA links and determined this HP
ProLiant ML10 v2 (J10) server's specific chipset is C222 - this means that of the 6 SATA
ports 2 are 6Gbps and 4 3Gbps.

After checking sysfs attributes for the links and Chris trying alternate
ports with no improvement we next considered the several BIOS firmware
bugs reported by the kernel but discounted those since they exist in the
good kernel versions too. BIOS was upgraded to latest with no
difference.

I found b.k.o #220693 "SATA bus goes offline after a while" [0] that has similar
symptoms and has several intermingled issues that seem to exhibit very
similar symptoms. It discusses several possible workarounds:

1. ATA LPM ( libata.force=nolpm )
2. maximum transfer size ( libata.force=maxsec1024 )
3. IOMMU ( iommu=off )

The first two didn't show improvements on the failing kernel versions
but disabling IOMMU did. Comment 44 [1] of the bug report considers that may
indicate an issue with readahead code.

Using this as a clue and looking through v6.12..v7.0 commits I found a
group of related iomap commits introduced at the start of the v6.19
cycle.

That spurred the test of v6.18 that doesn't exhibit the issue, and
v6.19 that does.

I've built and shared v6.18.37 with Chris since this does not contain
the suspect iomap commits and he'll report back on that later.

Bisecting the iomap commits in v6.19 might be a challenge due to how
there are several later changes based on the series, and they might be a
red herring.

So this needs more eyeballs to consider alternative triggers of the bug
and once we have the v6.18.37 result forwarding upstream.

Tj.

[0] https://bugzilla.kernel.org/show_bug.cgi?id=220693

[1] https://bugzilla.kernel.org/show_bug.cgi?id=220693#c44

[toc] | [next] | [standalone]


#93330

FromBastian Blank <waldi@debian.org>
Date2026-07-12 21:20 +0200
Message-ID<Ng7Sx-4lHx-17@gated-at.bofh.it>
In reply to#93159
On Tue, Jun 30, 2026 at 10:08:52PM +0000, Tj wrote:
> The first two didn't show improvements on the failing kernel versions
> but disabling IOMMU did. Comment 44 [1] of the bug report considers that may
> indicate an issue with readahead code.

Also regarding you questions on IRC last week: I hope you don't forget
that Debian does some changes to the default IOMMU configuration.  So
applying the same config to an upstream kernel will need explicit
setting the wanted iommu state.

Bastian

-- 
There are certain things men must do to remain men.
		-- Kirk, "The Ultimate Computer", stardate 4929.4

[toc] | [prev] | [next] | [standalone]


#93331

FromTj <tj.iam.tj@proton.me>
Date2026-07-13 00:10 +0200
Message-ID<Ngax3-4ndE-19@gated-at.bofh.it>
In reply to#93330
> Also regarding you questions on IRC last week: I hope you don't forget
> that Debian does some changes to the default IOMMU configuration.  So
> applying the same config to an upstream kernel will need explicit
> setting the wanted iommu state.
Yes, we're testing with the related Debian config (now without any 
Debian patches though)

# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
CONFIG_INTEL_IOMMU_DEFAULT_ON_INTGPU_OFF=y
# CONFIG_INTEL_IOMMU_DEFAULT_OFF is not set

and  intel_iommu=on

Originally we suspected an interaction with the Debian IOMMU intgpu 
patches but were able to rule them out.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web