* [PATCH] libata: quirk read log on no-name M.2 SSD
@ 2017-08-28 6:28 Christoph Hellwig
2017-08-28 17:28 ` Tejun Heo
2017-08-29 15:41 ` Tejun Heo
0 siblings, 2 replies; 4+ messages in thread
From: Christoph Hellwig @ 2017-08-28 6:28 UTC (permalink / raw)
To: tj; +Cc: idosch, linux-ide
Ivo reported that reading the log page on his systems fails,
so quirk it as it won't support ZBC or security protocols.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Ido Schimmel <idosch@mellanox.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
---
drivers/ata/libata-core.c | 4 ++++
include/linux/libata.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index fa7dd4394c02..697f5f896b19 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2079,6 +2079,8 @@ unsigned int ata_read_log_page(struct ata_device *dev, u8 log,
*/
if (ap_flags & ATA_FLAG_NO_LOG_PAGE)
return AC_ERR_DEV;
+ if (dev->horkage & ATA_HORKAGE_NO_LOG_PAGE)
+ return AC_ERR_DEV;
retry:
ata_tf_init(dev, &tf);
@@ -4578,6 +4580,8 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
{ "WDC WD3000JD-*", NULL, ATA_HORKAGE_WD_BROKEN_LPM },
{ "WDC WD3200JD-*", NULL, ATA_HORKAGE_WD_BROKEN_LPM },
+
+ { "M.2 (S42) 3ME3", NULL, ATA_HORKAGE_NO_LOG_PAGE },
/* End Marker */
{ }
};
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 931c32f1f18d..9e927ae7fced 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -438,6 +438,7 @@ enum {
ATA_HORKAGE_NO_DMA_LOG = (1 << 23), /* don't use DMA for log read */
ATA_HORKAGE_NOTRIM = (1 << 24), /* don't use TRIM */
ATA_HORKAGE_MAX_SEC_1024 = (1 << 25), /* Limit max sects to 1024 */
+ ATA_HORKAGE_NO_LOG_PAGE = (1 << 26), /* Doesn't like Get Log Page */
/* DMA mask for user DMA control: User visible values; DO NOT
renumber */
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] libata: quirk read log on no-name M.2 SSD
2017-08-28 6:28 [PATCH] libata: quirk read log on no-name M.2 SSD Christoph Hellwig
@ 2017-08-28 17:28 ` Tejun Heo
2017-08-29 15:41 ` Tejun Heo
1 sibling, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2017-08-28 17:28 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: idosch, linux-ide
On Mon, Aug 28, 2017 at 08:28:08AM +0200, Christoph Hellwig wrote:
> Ivo reported that reading the log page on his systems fails,
> so quirk it as it won't support ZBC or security protocols.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reported-by: Ido Schimmel <idosch@mellanox.com>
> Tested-by: Ido Schimmel <idosch@mellanox.com>
Applied to libata/for-4.13-fixes w/ Ido's name fixed in the
description.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libata: quirk read log on no-name M.2 SSD
2017-08-28 6:28 [PATCH] libata: quirk read log on no-name M.2 SSD Christoph Hellwig
2017-08-28 17:28 ` Tejun Heo
@ 2017-08-29 15:41 ` Tejun Heo
2017-08-29 16:04 ` Ido Schimmel
1 sibling, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2017-08-29 15:41 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: idosch, linux-ide
On Mon, Aug 28, 2017 at 08:28:08AM +0200, Christoph Hellwig wrote:
> Ivo reported that reading the log page on his systems fails,
> so quirk it as it won't support ZBC or security protocols.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reported-by: Ido Schimmel <idosch@mellanox.com>
> Tested-by: Ido Schimmel <idosch@mellanox.com>
Ido, I've reverted this patch in favor of the following one.
https://marc.info/?l=linux-ide&m=150401053011956&q=raw
Can you please verify whether the above patch works? You can either
remove the horkage patch and apply the above one or test the following
git branch.
git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata.git for-4.13-fixes
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libata: quirk read log on no-name M.2 SSD
2017-08-29 15:41 ` Tejun Heo
@ 2017-08-29 16:04 ` Ido Schimmel
0 siblings, 0 replies; 4+ messages in thread
From: Ido Schimmel @ 2017-08-29 16:04 UTC (permalink / raw)
To: Tejun Heo; +Cc: Christoph Hellwig, linux-ide
On Tue, Aug 29, 2017 at 08:41:48AM -0700, Tejun Heo wrote:
> Can you please verify whether the above patch works? You can either
> remove the horkage patch and apply the above one or test the following
> git branch.
Applied the new one and reverted the old one. Works for me.
Thanks for verifying.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-29 16:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-28 6:28 [PATCH] libata: quirk read log on no-name M.2 SSD Christoph Hellwig
2017-08-28 17:28 ` Tejun Heo
2017-08-29 15:41 ` Tejun Heo
2017-08-29 16:04 ` Ido Schimmel
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.