All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Yihang Li <liyihang9@h-partners.com>
Cc: mario.limonciello@amd.com, dlemoal@kernel.org,
	linux-ide@vger.kernel.org, linuxarm@huawei.com,
	liuyonglong@huawei.com
Subject: Re: [bug report] ata: ahci: IO error with the default med_power_with_dipm
Date: Fri, 21 Nov 2025 15:17:46 +0100	[thread overview]
Message-ID: <aSB0ilF_cI5PS8M0@ryzen> (raw)
In-Reply-To: <20251121073502.3388239-1-liyihang9@h-partners.com>

On Fri, Nov 21, 2025 at 03:35:02PM +0800, Yihang Li wrote:
> Hello Mario, Damien,
> 
> After commit 5433f0e7427ae ("ata: Kconfig: Update SATA_MOBILE_LPM_POLICY
> default to med_power_with_dipm") from linux v6.11, I am seeing the error,
> and eventually, my file system became read-only and could no longer
> be used. Please help check whether this is reasonable and how to resolve
> this issue?
> 
> I am using an standard AHCI controller, connected to a SATA disk, and
> using this disk as the system drive.
> 
> # lsblk
> NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
> sda                  8:0    0 447.1G  0 disk 
> ├─sda1               8:1    0   600M  0 part /boot/efi
> ├─sda2               8:2    0     1G  0 part /boot
> └─sda3               8:3    0 445.5G  0 part 
>   ├─openeuler-root 252:0    0    70G  0 lvm  /
>   ├─openeuler-swap 252:1    0     4G  0 lvm  [SWAP]
>   └─openeuler-home 252:2    0 371.5G  0 lvm  /home
> 
> Any suggestions on the problem are welcome.

Hello Yihang Li,

As far as we can tell, it appears that a lot of vendors have not
implemented LPM properly, or have issues with LPM in their firmware.

The way we solve it is to quirk these broken devices, see e.g.:
https://github.com/torvalds/linux/blob/v6.18-rc6/drivers/ata/libata-core.c#L4209-L4213


Please tell us which the model of your drive:

$ lsblk -o MODEL /dev/sdX

and the firmware version
$ lsblk -o REV /dev/sdX


So we can create a quirk.


It would also be helpful if you could share which AHCI adapter you are using:
$ lspci -nn | grep -i ahci
$ lspci -nn | grep -i sata


If you want to verify that disabling LPM works for your drive, you can add:

libata.force=nolpm on the kernel command line.


Kind regards,
Niklas

  reply	other threads:[~2025-11-21 14:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-21  7:35 [bug report] ata: ahci: IO error with the default med_power_with_dipm Yihang Li
2025-11-21 14:17 ` Niklas Cassel [this message]
2025-11-21 14:29   ` Mario Limonciello (AMD) (kernel.org)
2025-11-24  9:13     ` Yihang Li
2025-11-24  9:06   ` Yihang Li

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=aSB0ilF_cI5PS8M0@ryzen \
    --to=cassel@kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=liuyonglong@huawei.com \
    --cc=liyihang9@h-partners.com \
    --cc=mario.limonciello@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 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.