ata: libata-core: Correct HPA horkage
PATCH v3 1/1 ata: libata-core: Correct HPA horkage
Code wrongly detects disks using 2 specific serial numbers Use their firmware to detect whole family of affected disks
--- drivers/ata/libata-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/libata-core.c +2 -2
@@ -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 */
Signature · 1 line
2.53.0
Damien Le Moal
maintainerQuoted 2 lines · Ioannis Barkas
Code wrongly detects disks using 2 specific serial numbers Use their firmware to detect whole family of affected disks
s/firmware/firmware version ?
Quoted 24 lines
Fixes 16c55b038033 (libata: implement BROKEN_HPA horkage and apply it to affected drives")Signed-off-by <Ioannis Barkas [email protected]>Signed-off-by <Nick Barkas [email protected]>--- drivers/ata/libata-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/ata/libata-core.c +2
-2@@ -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 */
Signature · 2 lines
Damien Le Moal Western Digital Research
Niklas Cassel
maintainerQuoted 7 lines · Ioannis Barkas
Code wrongly detects disks using 2 specific serial numbers Use their firmware to detect whole family of affected disks
Fixes 16c55b038033 (libata: implement BROKEN_HPA horkage and apply it to affected drives")Signed-off-by <Ioannis Barkas [email protected]>Signed-off-by <Nick Barkas [email protected]>
The correct format is:
It is automatically added when you do: git commit -s You should not need to modify it manually.
Also, the final Signed-off-by should be the same as the sender. That is not the case here.
Two Signed-off-by directly after each other is only used if you took the patch authored by someone else, and submitted it unchanged.
If you were two people to develop the patch together, the correct tag to use is Co-developed-by (in addition to Signed-off-by from both), see:
https://docs.kernel.org/process/submitting-patches.html#when-to-use-acked-by-cc-and-co-developed-by
Quoted 9 lines
--- drivers/ata/libata-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/ata/libata-core.c +0
-0
drivers/ata/libata-core.c static const struct ata_dev_quirks_entry __ata_dev_quirks[] = { · line 4252
Quoted 7 lines
drivers/ata/libata-core.c +2
-2@@ -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 },
Where did you get this firmware versions from?
As I stated in:
https://lore.kernel.org/linux-ide/as6GuZaRvJFbxMgK@ryzen/
I would prefer if you simply dropped these entries, such that the existing wildcard entries (which already match these devices) are the only ones used.
Kind regards,
Niklas