From: Niklas Cassel <cassel@kernel.org>
To: Mikko Juhani Korhonen <mjkorhon@gmail.com>
Cc: Damien Le Moal <dlemoal@kernel.org>,
Ioannis Barkas <jnyb.de@gmail.com>,
linux-ide@vger.kernel.org, Mario Limonciello <superm1@kernel.org>,
Basavaraj.Natikar@amd.com, Shyam-sundar.S-k@amd.com
Subject: Re: [PATCH v4] ata: libata: disable LPM for WDC WD20EFAX-68FB5N0 hard drives
Date: Mon, 12 May 2025 11:25:21 +0200 [thread overview]
Message-ID: <aCG-gS2f3uXKaQPj@ryzen> (raw)
In-Reply-To: <CAAZ0mTdtOVSidMeC76X9oZyHCtJdgyiu44+UEKqP5tSUaD9ZsQ@mail.gmail.com>
Hello Mikko,
On Mon, May 12, 2025 at 08:37:51AM +0300, Mikko Juhani Korhonen wrote:
> To clarify:
> I have a aROG STRIX B550-F GAMING (WI-FI) motherboard with 6 SATA
> ports from which I can use due to space restrictions 3,4,5,6. New
> info: having checked the manual I notice ports 5 and 6 are special,
> they can be used only when M.2_2 slot is not populated.
> I have WDC WD20EFAX-68FB5N0 and WDC WD5000AAKX-001CA0 drives.
Excellent find!
Out of curiosity, do you have the M.2_2 slot populated ?
>
> Every combination worked up to 6.8.12 but it were lpm-pol
> keep_firmware_settings.
>
> After that works:
> sata ports 5,6 -> WDC WD5000AAKX-001CA0
> sata ports 3,4 -> WDC WD5000AAKX-001CA0
> sata ports 3,4 -> WDC WD20EFAX-68FB5N0
> Not working:
> sata ports 5,6 -> WDC WD20EFAX-68FB5N0
> but setting link_power_management_policy to max_performance gets it going.
>
>
> > Basically, we wanted to compare the good 6.14.5 output with the bad 6.14.5 output, especially the lpm-pol output.
Ok, so the bad 6.14.5 dmesg you shared before (where you got timeouts),
was when using SATA ports 5,6 ?
If so, it seems that you've managed to narrow it down to:
Things works as expected on 6.14.5, when using ports 3-4 (and most likely
port 1-2), lpm-pol is 3, which means that LPM is enabled (it also means
that hotplug is not enabled in BIOS).
You get timeouts on 6.14.5, when using ports 5-6, lpm-pol is 3, which
means that LPM is enabled (it also means that hotplug is not enabled in
BIOS).
I think this makes things more complicated, since as you have figured out
yourself, LPM appears to work correctly on AMD 500 Series SATA Controller,
when using the ports that are not also used for NVMe.
This means that it would be wrong to apply a quirk for this specific
controller (as that quirk would apply for all ports).
Since this LPM issue only affects the ports that are also used for NVMe,
this is most likely a BIOS / motherboard bug, and not a HW bug in the AHCI
controller.
So, if we really want to have a quirk which disables LPM only for ports 5-6,
it would probably have to be a DMI quirk, which matches the motherboard name,
see e.g.:
https://github.com/torvalds/linux/blob/v6.15-rc6/drivers/ata/ahci.c#L1120-L1145
Kind regards,
Niklas
next prev parent reply other threads:[~2025-05-12 9:25 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 20:36 [PATCH v4] ata: libata: disable LPM for WDC WD20EFAX-68FB5N0 hard drives Ioannis Barkas
2025-05-01 18:47 ` Damien Le Moal
2025-05-02 1:32 ` Damien Le Moal
2025-05-05 7:58 ` Mikko Juhani Korhonen
2025-05-05 15:37 ` Niklas Cassel
2025-05-05 17:09 ` Mikko Juhani Korhonen
2025-05-07 8:55 ` Damien Le Moal
2025-05-10 10:14 ` Mikko Juhani Korhonen
2025-05-10 11:59 ` Niklas Cassel
2025-05-10 18:29 ` Ioannis Barkas
2025-05-11 17:08 ` Mikko Juhani Korhonen
2025-05-11 18:53 ` Niklas Cassel
2025-05-11 18:59 ` Mikko Juhani Korhonen
2025-05-11 19:18 ` Niklas Cassel
2025-05-11 20:40 ` Mikko Juhani Korhonen
2025-05-12 5:37 ` Mikko Juhani Korhonen
2025-05-12 9:25 ` Niklas Cassel [this message]
2025-05-12 10:34 ` Mikko Juhani Korhonen
2025-05-12 11:20 ` Niklas Cassel
[not found] ` <CAAZ0mTeiVqZQvkWzJ8aFH4FUPCZwy5O+9hPBgDPhSgNNz+t6HA@mail.gmail.com>
2025-05-14 17:57 ` Niklas Cassel
2025-05-17 16:31 ` Mikko Juhani Korhonen
[not found] ` <CAAZ0mTdZEd6n+tDvqbqzMQS2W+3efpYOeHupYcj3rDSVeuHFBA@mail.gmail.com>
2025-05-23 14:05 ` Niklas Cassel
2025-06-02 11:17 ` Mikko Juhani Korhonen
2025-06-05 12:18 ` Niklas Cassel
2025-06-09 13:49 ` Niklas Cassel
2025-06-11 13:14 ` Mikko Juhani Korhonen
2025-06-11 13:33 ` Niklas Cassel
2025-05-07 8:59 ` Niklas Cassel
2025-05-08 19:24 ` Mario Limonciello
2025-05-07 8:59 ` Damien Le Moal
2025-05-11 18:55 ` Mikko Juhani Korhonen
-- strict thread matches above, loose matches on Subject: below --
2025-05-05 19:38 Ioannis Barkas
2025-05-05 23:33 ` Damien Le Moal
2025-05-06 11:29 ` Mikko Juhani Korhonen
2025-04-29 16:44 Mikko Korhonen
2025-04-30 6:35 ` Niklas Cassel
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=aCG-gS2f3uXKaQPj@ryzen \
--to=cassel@kernel.org \
--cc=Basavaraj.Natikar@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=dlemoal@kernel.org \
--cc=jnyb.de@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=mjkorhon@gmail.com \
--cc=superm1@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