Linux ATA/IDE development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ioannis Barkas" <jnyb.de@gmail.com>
Cc: cassel@kernel.org, linux-ide@vger.kernel.org, dlemoal@kernel.org
Subject: Re: [PATCH] libata: Fix HPA horkage to target whole model series not just a few devices
Date: Sun, 13 Sep 2026 14:08:05 +0000	[thread overview]
Message-ID: <20260913140806.546C91F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260913135650.14244-1-jnyb.de@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Fixing the HPA quirk matching causes these drives to lose their required ATA_QUIRK_WD_BROKEN_LPM flag due to early loop termination.
- [Low] Malformed Fixes and Signed-off-by tags in the commit message.
--

commit 38c888241e3a93997eedcbdd5bda6cc7281c77f5
Author: Ioannis Barkas <jnyb.de@gmail.com>

libata: Fix HPA horkage to target whole model series not just a few devices

This commit updates the __ata_dev_quirks table to target an entire model
series for the ATA_QUIRK_BROKEN_HPA quirk instead of specific device serial
numbers. It resolves an issue where the HPA horkage was not applied to all
affected drives.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=8888

> Fixes: 16c55b038033 (\libata: implement BROKEN_HPA horkage and apply it to affected drives")
> 
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=8888
> 
> Signed-off-by: Nick Barkas nickbgrk@gmail.com

[Severity: Low]
Does this commit message violate formatting guidelines?

Automated tooling might fail to parse the Fixes tag due to the invalid
backslash escape instead of an opening quote, and the Signed-off-by tag is
missing angle brackets around the email address.

> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 59e87b987d73e..b23e1c3e4cd99 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -4248,8 +4248,8 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {
>  
>  	/* devices which puke on READ_NATIVE_MAX */
>  	{ "HDS724040KLSA80",	"KFAOA20N",	ATA_QUIRK_BROKEN_HPA },
> -	{ "WDC WD3200JD-00KLB0", "WD-WCAMR1130137", ATA_QUIRK_BROKEN_HPA },
> -	{ "WDC WD2500JD-00HBB0", "WD-WMAL71490727", ATA_QUIRK_BROKEN_HPA },
> +	{ "WDC WD3200JD-00KLB0", "08.05J08", ATA_QUIRK_BROKEN_HPA },
> +	{ "WDC WD2500JD-00HBB0", "08.02D08", ATA_QUIRK_BROKEN_HPA },

[Severity: High]
Does this change cause these drives to lose their required
ATA_QUIRK_WD_BROKEN_LPM flag?

During device initialization, ata_dev_quirks() iterates through the
__ata_dev_quirks table and returns immediately upon the first match. By fixing
the firmware string to correctly match these devices here, the function will
now exit early and skip the subsequent ATA_QUIRK_WD_BROKEN_LPM entry that
these drives previously relied on:

    { "WDC WD3200JD-*",     NULL,   ATA_QUIRK_WD_BROKEN_LPM },

Without this flag, Link Power Management issues on these specific WD drives
could cause command timeouts, NCQ errors, and potential drive dropouts.

>  	{ "MAXTOR 6L080L4",	"A93.0500",	ATA_QUIRK_BROKEN_HPA },

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260913135650.14244-1-jnyb.de@gmail.com?part=1

      reply	other threads:[~2026-09-13 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-13 13:56 [PATCH] libata: Fix HPA horkage to target whole model series not just a few devices Ioannis Barkas
2026-09-13 14:08 ` sashiko-bot [this message]

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=20260913140806.546C91F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=cassel@kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=jnyb.de@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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