From: Bjorn Helgaas <helgaas@kernel.org>
To: Niklas Cassel <cassel@kernel.org>
Cc: Mario Limonciello <mario.limonciello@amd.com>,
Bjorn Helgaas <bhelgaas@google.com>,
Damien Le Moal <dlemoal@kernel.org>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
<x86@kernel.org>, "H . Peter Anvin" <hpa@zytor.com>,
"open list:PCI SUBSYSTEM" <linux-pci@vger.kernel.org>,
"open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
<linux-kernel@vger.kernel.org>,
"open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)"
<linux-ide@vger.kernel.org>, Arthur Husband <artmoty@gmail.com>,
Roland Waltersson <roland.waltersson@netinsight.net>,
snoep <snoepke@live.nl>
Subject: Re: [PATCH v2 2/2] Revert "ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585"
Date: Sat, 26 Sep 2026 11:26:25 -0500 [thread overview]
Message-ID: <20260926162625.GA2140496@bhelgaas> (raw)
In-Reply-To: <arfea9Zk6mbaoRYr@ryzen>
On Sat, Sep 26, 2026 at 05:02:03PM +0200, Niklas Cassel wrote:
> On Fri, Sep 25, 2026 at 03:01:39PM -0500, Mario Limonciello wrote:
> > On 9/25/26 14:42, Bjorn Helgaas wrote:
> > >
> > > What if I just merge patch [1/2] ("x86/PCI: Disable enhanced atomics
> > > on AMD NBIO 7.7 and 7.11") for v7.3? Would that leave anything
> > > broken?
> > >
> > > [1] https://lore.kernel.org/all/20260403050225.50186-1-artmoty@gmail.com/t/#u)
> > > [2] https://forum.radxa.com/t/repeated-ext4-metadata-corruption-on-raspberry-pi-5-with-penta-sata-hat-jmb585-despite-healthy-ssds-and-raid1/31393/10
> > > [3] https://forums.raspberrypi.com/viewtopic.php?p=2386959#p2386959
> > >
> > > > Cc: Arthur Husband <artmoty@gmail.com>
> > > > Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> >
> > I think we should let Niklas speak up here because there was confirmation on
> > this thread it's an AMD only issue.
> >
> > https://lore.kernel.org/all/ap6RyP28fxXNjRWS@ryzen/
>
> 1) The original reporter mentioned that he had never seen any issues on
> Raspberry Pi, the commit message was AI generated.
>
> 2) The problem "repeated-ext4-metadata-corruption" appears to be a problem
> with NCQ on a specific drive. I asked that person for more tests, but
> he did not to once turning off NCQ solved his problem.
>
> 3) The quirk actually introduced a bunch of problems on Raspberry Pi,
> because libata did not clear upper 64 bit addresses. This has since
> been fixed in commit 82e47533221d ("ata: libahci: clear PxCLBU and
> PxFBU for AHCI_HFLAG_32BIT_ONLY")
>
> 4) People had been using this AHCI controller for years (including on
> Raspberry Pi) without seeing any issues (until the quirk was
> introduced).
>
> 5) The people who were complaining about data corruption could be
> identified to all use AMD systems.
>
> 6) These people complained that it broke directly for any address > 32 bit.
> For the JMicron (instead of ASMedia), it breaks for any address > 43 bit.
> I have a hard time believing that the controller is so broken that the
> set the 64-bit DMA addresses supported bit in the AHCI CAP register,
> but does not support a single bit more than 32 bit.
>
> 7) For all AHCI controllers with these quirks (except for an old ATI
> one), we have gotten an errata from the manufacturer.
> We have never seen any errata for this controller.
>
>
> All in all, I am 100% confident to revert the patch.
> But, I don't care if it goes into 7.3 or 7.4.
>
> Just say the word and I can pick it up for 7.4 instead.
That all sounds good. How about if I ask Linus to pull Mario's AMD
SMN fix for v7.3, since that seems to be PCI-related, and then you can
decide how/when to take the quirk revert, since that seems to be
ATA-related?
I'll ask Linus to pull the AMD SMN fix today, so you could still
revert the quirk for v7.3 also if you wanted. It sounds like there
might be more details that could be included in the quirk revert,
e.g., the fact that the quirk caused issues on Raspberry Pi and the
fact that the problem the quirk address was fixed by commit X.
next prev parent reply other threads:[~2026-09-26 16:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 19:05 [PATCH v2 0/2] Fix for storage corruption w/ AMD IOMMU on 64-bit addressing Mario Limonciello
2026-09-08 19:05 ` [PATCH v2 1/2] x86/PCI: Disable enhanced atomics on some AMD PCIe ports Mario Limonciello
2026-09-14 16:57 ` Mario Limonciello
2026-09-22 15:35 ` Mario Limonciello
2026-09-23 17:12 ` Bjorn Helgaas
2026-09-23 17:30 ` Mario Limonciello
2026-09-23 18:05 ` Bjorn Helgaas
2026-09-23 18:25 ` Mario Limonciello
2026-09-08 19:06 ` [PATCH v2 2/2] Revert "ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585" Mario Limonciello
2026-09-22 12:52 ` Niklas Cassel
2026-09-25 19:42 ` Bjorn Helgaas
2026-09-25 20:01 ` Mario Limonciello
2026-09-26 15:02 ` Niklas Cassel
2026-09-26 16:26 ` Bjorn Helgaas [this message]
2026-09-26 17:16 ` Niklas Cassel
2026-09-21 4:52 ` [PATCH v2 0/2] Fix for storage corruption w/ AMD IOMMU on 64-bit addressing Mario Limonciello
2026-09-22 9:49 ` Niklas Cassel
2026-09-22 10:44 ` Mario Limonciello
2026-09-22 15:46 ` Mario Limonciello
2026-09-23 18:36 ` Bjorn Helgaas
2026-09-23 18:39 ` Mario Limonciello
2026-09-23 18:46 ` Bjorn Helgaas
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=20260926162625.GA2140496@bhelgaas \
--to=helgaas@kernel.org \
--cc=artmoty@gmail.com \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=cassel@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=dlemoal@kernel.org \
--cc=hpa@zytor.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=mingo@redhat.com \
--cc=roland.waltersson@netinsight.net \
--cc=snoepke@live.nl \
--cc=tglx@kernel.org \
--cc=x86@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
all inboxes | Powered by JetHome®