Linux block layer
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: Mikael Etienne <mikael1022bzh@gmail.com>,
	vasant.hegde@amd.com, iommu@lists.linux.dev,
	linux-ide@vger.kernel.org, linux-block@vger.kernel.org
Cc: regressions@lists.linux.dev, joro@8bytes.org,
	suravee.suthikulpanit@amd.com
Subject: Re: [REGRESSION] Silent SATA read corruption with dma-iommu on AMD 600-series AHCI (6.19 good, 7.0+ bad)
Date: Fri, 28 Aug 2026 07:52:37 -0500	[thread overview]
Message-ID: <fb875f14-3b47-4d43-ae3a-0d0b17e1c64a@amd.com> (raw)
In-Reply-To: <178791494900.1152725.12728124457005560389@gmail.com>

 > I CANNOT realistically: dedicate the machine to a multi-day
 > v6.19..v7.0
 > bisection. Classifying a kernel as "good" currently costs several
 > hours
 > and several TiB of reads, which makes ~13 bisection steps impractical
 > for me. If someone can suggest a faster trigger, that changes.

Even if it's going to take two weeks to do (perhaps run a test kernel 
for 4 hours a day) getting a specific commit will be really helpful if 
you're 100% sure it's a failure caused by a kernel change.

I will note that there are some other bug reports that are showing 
generic IOMMU changes earlier this summer that /might/ be similar.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1141183
https://github.com/Alvinwylim/asm1166-iommu-dma-corruption

> 
> Mario -- if the issue you were debugging internally has a comparable signature,
> I would be glad to compare. I have the raw btrfs csum lines showing eleven
> consecutive 4 KiB blocks returned in exact reverse order around a pivot, plus
> full dmesg, kernel config, lspci -nnvv and IOMMU domain dumps for both the
> failing and the working configuration. I can also collect whatever specific
> diagnostics you want, including with a debug patch if you provide one.
The corruption issue that my team is looking at is specifically with 
NVME and doesn't follow a kernel version.

So it's not a slam dunk to say it's the same.  BUT the issue internally 
does show the issue is specificially once the 32-bit IOVA space is 
exhausted.

Unfortunately; the solution is currently a BIOS change in how the type 
bytes of the IOVA is handled.

But the workaround that Vasant suggested (amd_iommu=pgtbl_v2 
iommu.forcedac=1) will help confirm if it's the exact same failure path.

Without BIOS change issue can't be reproduced with those applied.

  reply	other threads:[~2026-08-28 12:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHEgv3TiJUvS=Hustyem0ts8jkbFVAdzBazmPhCbv2sNnTsZkg@mail.gmail.com>
2026-08-28  5:43 ` [REGRESSION] Silent SATA read corruption with dma-iommu on AMD 600-series AHCI (6.19 good, 7.0+ bad) Vasant Hegde
2026-08-28 11:02   ` Mikael Etienne
2026-08-28 12:52     ` Mario Limonciello [this message]
2026-08-28 15:24       ` Mikael Etienne
2026-08-28 15:37         ` Mario Limonciello
2026-08-28 16:42           ` Mikael Etienne
2026-08-28  4:56 Mikael Etienne

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=fb875f14-3b47-4d43-ae3a-0d0b17e1c64a@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=mikael1022bzh@gmail.com \
    --cc=regressions@lists.linux.dev \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=vasant.hegde@amd.com \
    /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