From: Niklas Cassel <cassel@kernel.org>
To: Tim Teichmann <teichmanntim@outlook.de>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Christian Heusel <christian@heusel.eu>,
regressions@lists.linux.dev, x86@kernel.org,
stable@vger.kernel.org, Hans de Goede <hdegoede@redhat.com>,
linux-ide@vger.kernel.org, Damien Le Moal <dlemoal@kernel.org>,
Jens Axboe <axboe@kernel.dk>
Subject: Re: [REGRESSION][BISECTED] Scheduling errors with the AMD FX 8300 CPU
Date: Wed, 29 May 2024 20:33:00 +0200 [thread overview]
Message-ID: <Zld03FTNQ5q5uQyN@ryzen.lan> (raw)
In-Reply-To: <PR3PR02MB60127B753B3B4BA69A737BBDB3F22@PR3PR02MB6012.eurprd02.prod.outlook.com>
On Wed, May 29, 2024 at 03:02:45PM +0200, Tim Teichmann wrote:
> Hello Niklas,
>
> > ata3 (TOSHIBA HDWD110) appears to work correctly.
> >
> > ata2 (Apacer AS340 120GB) results in command timeouts and
> > "a change in device presence has been detected" being set in PxSERR.DIAG.X.
> >
> > > >> [ 2.964262] ata2.00: exception Emask 0x10 SAct 0x80 SErr 0x40d0002 action 0xe frozen
> > > >> [ 2.964274] ata2.00: irq_stat 0x00000040, connection status changed
> > > >> [ 2.964279] ata2: SError: { RecovComm PHYRdyChg CommWake 10B8B DevExch }
> > > >> [ 2.964288] ata2.00: failed command: READ FPDMA QUEUED
> > > >> [ 2.964291] ata2.00: cmd 60/08:38:80:ff:f1/00:00:0d:00:00/40 tag 7 ncq dma 4096 in
> > > >> res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x10 (ATA bus error)
> > > >> [ 2.964307] ata2.00: status: { DRDY }
> > > >> [ 2.964318] ata2: hard resetting link
> >
> >
> > Could you please try the following patch (quirk):
> >
> > diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> > index c449d60d9bb9..24ebcad65b65 100644
> > --- a/drivers/ata/libata-core.c
> > +++ b/drivers/ata/libata-core.c
> > @@ -4199,6 +4199,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
> > ATA_HORKAGE_ZERO_AFTER_TRIM |
> > ATA_HORKAGE_NOLPM },
> >
> > + /* Apacer models with LPM issues */
> > + { "Apacer AS340*", NULL, ATA_HORKAGE_NOLPM },
> > +
> > /* These specific Samsung models/firmware-revs do not handle LPM well */
> > { "SAMSUNG MZMPC128HBFU-000MV", "CXM14M1Q", ATA_HORKAGE_NOLPM },
> > { "SAMSUNG SSD PM830 mSATA *", "CXM13D1Q", ATA_HORKAGE_NOLPM },
> >
> >
> >
> > Kind regards,
> > Niklas
>
> I've just tested the patch you've provided [0] and it works without
> throwing ATA exceptions.
>
> The full dmesg output is attached below.
>
Thank you Tim.
I intend to send out a real patch for this,
but before I do could you please run:
$ hdparm -I /dev/sdX
against both your SATA drives and paste the output.
(I just want to make sure that the device actually advertizes
some kind of power management support.)
Kind regards,
Niklas
next prev parent reply other threads:[~2024-05-29 18:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7skhx6mwe4hxiul64v6azhlxnokheorksqsdbp7qw6g2jduf6c@7b5pvomauugk>
[not found] ` <87r0dqdf0r.ffs@tglx>
[not found] ` <gtgsklvltu5pzeiqn7fwaktdsywk2re75unapgbcarlmqkya5a@mt7pi4j2f7b3>
[not found] ` <87h6ejd0wt.ffs@tglx>
[not found] ` <PR3PR02MB6012CB03006F1EEE8E8B5D69B3F02@PR3PR02MB6012.eurprd02.prod.outlook.com>
[not found] ` <874jajcn9r.ffs@tglx>
[not found] ` <PR3PR02MB6012EDF7EBA8045FBB03C434B3F02@PR3PR02MB6012.eurprd02.prod.outlook.com>
[not found] ` <87msobb2dp.ffs@tglx>
[not found] ` <PR3PR02MB6012D4B2D513F6FA9D29BE5EB3F12@PR3PR02MB6012.eurprd02.prod.outlook.com>
2024-05-28 19:15 ` [REGRESSION][BISECTED] Scheduling errors with the AMD FX 8300 CPU Thomas Gleixner
2024-05-28 19:17 ` Jens Axboe
2024-05-28 20:19 ` Niklas Cassel
2024-05-29 13:02 ` Tim Teichmann
2024-05-29 18:33 ` Niklas Cassel [this message]
2024-05-29 22:59 ` Tim Teichmann
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=Zld03FTNQ5q5uQyN@ryzen.lan \
--to=cassel@kernel.org \
--cc=axboe@kernel.dk \
--cc=christian@heusel.eu \
--cc=dlemoal@kernel.org \
--cc=hdegoede@redhat.com \
--cc=linux-ide@vger.kernel.org \
--cc=regressions@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=teichmanntim@outlook.de \
--cc=tglx@linutronix.de \
--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