All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Pe3k <pe3cek@gmail.com>
Cc: iommu@lists.linux.dev, Lu Baolu <baolu.lu@linux.intel.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
	Robin Murphy <robin.murphy@arm.com>,
	Damien Le Moal <dlemoal@kernel.org>,
	linux-ide@vger.kernel.org
Subject: Re: iommu/vt-d: data corruption, AHCI gets IOVAs inside its RMRR (HP Gen8)
Date: Wed, 25 Nov 2026 12:00:26 +0100	[thread overview]
Message-ID: <awa_ys0XSt9UwAZE@ryzen> (raw)
In-Reply-To: <CAGvcwsDwi9vNcCLxdBz-Arx=5i-fFvqxP+QbRKrx7hK4yqmvRg@mail.gmail.com>

On Wed, Nov 25, 2026 at 11:01:17AM +0100, Pe3k wrote:
> bugzilla 221713 looks like the same bug. The ML10 v2 in comment 15 shows
> "DMA PTE for vPFN 0xf1f81 already set (to f1f81003 ...)", which is inside
> the same HP RMRR (0xf1f7e000-0xf1f94fff) that I see on 6.12, and its 7.x
> symptom is the same "Emask 0x40 (internal error)". Their bisect of the 7.x
> symptom points to d373449d8e97 ("iommu/vt-d: Use the generic iommu page
> table"), but the RMRR overlap is there long before that (they saw the
> PTE error back to 6.0, and I see it on 6.12). So my guess is that
> d373449d8e97 only changed how the overlap shows up.
> 
> The H97 thread looks different to me. There the faults are "non-zero
> reserved fields in PTE" at 0xff4xxxxx, outside any RMRR, and they depend
> on the request size.
> 
> sp_off: on this machine the only DRHD reports no superpage support
> (cap c9008020660262, SLLPS = 0), so I would not expect it to change
> anything. I tested it anyway:
> 
> 7.3.4 with intel_iommu=on,sp_off: no change. It still has 0 DMAR errors
> and 221 failed commands with "Emask 0x40 (internal error)" (121 READ
> FPDMA QUEUED, 100 WRITE FPDMA QUEUED). 3 of 6 copies lost 8 MiB each
> (zeros), and the iommu:map trace again shows 21 maps with
> iova=0xf1f7e000 size=0 from iommu_dma_map_sg.

You mentioned that 6.12.118, 7.3.4 and 7.4-rc4 is all bad.
Is there any kernel version where you did not need iommu=pt for a reliable
system without corruption?

This seems like either an Intel IOMMU bug or a HP ProLiant MicroServer Gen8
specific bug to me. Hopefully someone more knowledgeable in those areas will
chime in.


Kind regards,
Niklas

  reply	other threads:[~2026-11-25 11:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 18:08 iommu/vt-d: data corruption, AHCI gets IOVAs inside its RMRR (HP Gen8) Pe3k
2026-11-24 21:19 ` Niklas Cassel
2026-11-25 10:01   ` Pe3k
2026-11-25 11:00     ` Niklas Cassel [this message]
2026-11-25 13:48       ` Pe3k
2026-11-25 15:49         ` Pe3k
2026-11-26  8:48           ` Niklas Cassel
2026-11-27  5:38 ` Baolu Lu
2026-11-27 10:13   ` Pe3k

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=awa_ys0XSt9UwAZE@ryzen \
    --to=cassel@kernel.org \
    --cc=baolu.lu@linux.intel.com \
    --cc=dlemoal@kernel.org \
    --cc=dwmw2@infradead.org \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=pe3cek@gmail.com \
    --cc=robin.murphy@arm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.