* [PATCH] ata: libata-core: Allow command duration limits detection for ACS-4 drives
@ 2024-04-11 20:12 Igor Pylypiv
2024-04-13 0:57 ` Damien Le Moal
0 siblings, 1 reply; 2+ messages in thread
From: Igor Pylypiv @ 2024-04-11 20:12 UTC (permalink / raw)
To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide, linux-kernel, Igor Pylypiv
Even though the command duration limits (CDL) feature was first added
in ACS-5 (major version 12), there are some ACS-4 (major version 11)
drives that implement CDL as well.
IDENTIFY_DEVICE, SUPPORTED_CAPABILITIES, and CURRENT_SETTINGS log pages
are mandatory in the ACS-4 standard so it should be safe to read these
log pages on older drives implementing the ACS-4 standard.
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
---
drivers/ata/libata-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index be3412cdb22e..c449d60d9bb9 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2539,7 +2539,7 @@ static void ata_dev_config_cdl(struct ata_device *dev)
bool cdl_enabled;
u64 val;
- if (ata_id_major_version(dev->id) < 12)
+ if (ata_id_major_version(dev->id) < 11)
goto not_supported;
if (!ata_log_supported(dev, ATA_LOG_IDENTIFY_DEVICE) ||
--
2.44.0.683.g7961c838ac-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ata: libata-core: Allow command duration limits detection for ACS-4 drives
2024-04-11 20:12 [PATCH] ata: libata-core: Allow command duration limits detection for ACS-4 drives Igor Pylypiv
@ 2024-04-13 0:57 ` Damien Le Moal
0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2024-04-13 0:57 UTC (permalink / raw)
To: Igor Pylypiv, Niklas Cassel; +Cc: linux-ide, linux-kernel
On 4/12/24 05:12, Igor Pylypiv wrote:
> Even though the command duration limits (CDL) feature was first added
> in ACS-5 (major version 12), there are some ACS-4 (major version 11)
> drives that implement CDL as well.
>
> IDENTIFY_DEVICE, SUPPORTED_CAPABILITIES, and CURRENT_SETTINGS log pages
> are mandatory in the ACS-4 standard so it should be safe to read these
> log pages on older drives implementing the ACS-4 standard.
>
> Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Looks good, but I think this needs:
Fixes: 62e4a60e0cdb ("scsi: ata: libata: Detect support for command duration
limits")
Cc: stable.vger.kernel.org
so that we have 6.6 LTS also getting this fix and accepting the same devices as
mainline. I will add that when applying.
> ---
> drivers/ata/libata-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index be3412cdb22e..c449d60d9bb9 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -2539,7 +2539,7 @@ static void ata_dev_config_cdl(struct ata_device *dev)
> bool cdl_enabled;
> u64 val;
>
> - if (ata_id_major_version(dev->id) < 12)
> + if (ata_id_major_version(dev->id) < 11)
> goto not_supported;
>
> if (!ata_log_supported(dev, ATA_LOG_IDENTIFY_DEVICE) ||
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-13 0:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 20:12 [PATCH] ata: libata-core: Allow command duration limits detection for ACS-4 drives Igor Pylypiv
2024-04-13 0: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).