public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: eyal@eyal.emu.id.au, list linux-ide <linux-ide@vger.kernel.org>
Cc: Niklas Cassel <cassel@kernel.org>
Subject: Re: ata timeout exceptions
Date: Sun, 21 Dec 2025 17:34:01 +0900	[thread overview]
Message-ID: <3d476e67-31a9-4e7d-b8cc-5bb298a6d62f@kernel.org> (raw)
In-Reply-To: <582e748c-3e29-4f21-af7c-c799fb457e59@eyal.emu.id.au>

On 12/20/25 13:03, Eyal Lebedinsky wrote:
> On 17/12/25 23:02, Niklas Cassel wrote:
>> On 17 December 2025 20:56:07 GMT+09:00, Eyal Lebedinsky <eyal@eyal.emu.id.au> wrote:
> 
> [trimmed]
> 
>>> Do you want me to try different max_sectors_kb values to see where it breaks?
>>>
>>
>> You can also try this:
>>
>> https://github.com/floatious/max-sectors-quirk
>>
>> It tries these max_sector_kb values:
>> declare -a sizes=(128 1024 2048 3072 4095 4096)
>>
>> You can simply modify the script if you want to try more intermediate sizes.
> 
> After testing the script on a sacrificial disk, I got brave and ran it on the offending disk.
> See comments after the test report.

From your test results, it seems that the drive actually correctly handles very
large write commands, but because it is a drive-managed SMR disk, such commands
can take a very long time to process (due to the drive needing internal garbage
collection first), which triggers a timeout and a reset as the ata subsystem
assumes that the drive has stopped responding.

Limiting write commands to smaller sizes seems to mostly avoid this issue, even
though I do not think that gives any guarantees that the same issue will not
happen for small writes too.

So my suggestion is that you run with something like "libata.force=[<port
ID>:]max_sec=1024" for that drive. We can also add a permanent quirk for it too,
but that would be a really more of a big hammer solution.

-- 
Damien Le Moal
Western Digital Research

  reply	other threads:[~2025-12-21  8:34 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-03  4:13 ata timeout exceptions Eyal Lebedinsky
2025-11-09 20:40 ` Niklas Cassel
2025-11-09 22:41   ` Eyal Lebedinsky
2025-11-10 13:11     ` Niklas Cassel
2025-11-14  4:32 ` Eyal Lebedinsky
2025-11-18 15:17   ` Niklas Cassel
2025-11-18 23:05     ` Eyal Lebedinsky
2025-11-19  5:41       ` Damien Le Moal
2025-11-19 13:37         ` Eyal Lebedinsky
2025-11-20  3:34           ` Damien Le Moal
2025-11-20 11:38             ` Eyal Lebedinsky
2025-11-20 12:18               ` Damien Le Moal
2025-11-20 23:53                 ` Eyal Lebedinsky
2025-12-16 23:39 ` Eyal Lebedinsky
2025-12-17  1:35   ` Damien Le Moal
2025-12-17 11:56     ` Eyal Lebedinsky
2025-12-17 12:02       ` Niklas Cassel
2025-12-20  4:03         ` Eyal Lebedinsky
2025-12-21  8:34           ` Damien Le Moal [this message]
2025-12-21 12:12             ` Eyal Lebedinsky
2025-12-21 22:43               ` Eyal Lebedinsky
2025-12-21 23:14                 ` Damien Le Moal
2025-12-22  2:10                   ` Eyal Lebedinsky
2025-12-22  3:43                     ` Damien Le Moal
2025-12-22  5:57                       ` Eyal Lebedinsky
2025-12-30 22:43                         ` Eyal Lebedinsky
2026-01-02  1:21                           ` Damien Le Moal
2026-01-02  6:30                             ` Eyal Lebedinsky

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=3d476e67-31a9-4e7d-b8cc-5bb298a6d62f@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=cassel@kernel.org \
    --cc=eyal@eyal.emu.id.au \
    --cc=linux-ide@vger.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