* [PATCH] libata: Fix HPA horkage to target whole model series not just a few devices
@ 2026-09-13 13:56 Ioannis Barkas
2026-09-13 14:08 ` sashiko-bot
2026-09-15 3:57 ` Damien Le Moal
0 siblings, 2 replies; 3+ messages in thread
From: Ioannis Barkas @ 2026-09-13 13:56 UTC (permalink / raw)
To: linux-ide; +Cc: Ioannis Barkas
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
Signed-off-by: Ioannis Barkas <jnyb.de@gmail.com>
---
drivers/ata/libata-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 59e87b987d..b23e1c3e4c 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 },
{ "MAXTOR 6L080L4", "A93.0500", ATA_QUIRK_BROKEN_HPA },
/* this one allows HPA unlocking but fails IOs on the area */
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] libata: Fix HPA horkage to target whole model series not just a few devices
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
2026-09-15 3:57 ` Damien Le Moal
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-09-13 14:08 UTC (permalink / raw)
To: Ioannis Barkas; +Cc: cassel, linux-ide, dlemoal
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] libata: Fix HPA horkage to target whole model series not just a few devices
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
@ 2026-09-15 3:57 ` Damien Le Moal
1 sibling, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2026-09-15 3:57 UTC (permalink / raw)
To: Ioannis Barkas, linux-ide
On 2026/09/13 20:56, Ioannis Barkas wrote:
> Fixes: 16c55b038033 (\libata: implement BROKEN_HPA horkage and apply it to affected drives")
As indicated by Sashiko, this is not formatted correctly.
>
Drop this blank line too please.
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=8888
>
And this one as well.
Also please write a proper commit message that explains what you are changing.
Because saying "target whole model series" in the commit title but changing the
quirk entries to still have a FW revision does not do that at all.
> Signed-off-by: Nick Barkas nickbgrk@gmail.com
> Signed-off-by: Ioannis Barkas <jnyb.de@gmail.com>
> ---
> drivers/ata/libata-core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 59e87b987d..b23e1c3e4c 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 },
> { "MAXTOR 6L080L4", "A93.0500", ATA_QUIRK_BROKEN_HPA },
>
> /* this one allows HPA unlocking but fails IOs on the area */
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-15 3:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-09-15 3:57 ` Damien Le Moal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).