Re: [PATCH v3 16/18] ata: libata: set read/write commands CDL index

Hannes Reinecke
2023-01-27T15:41:15Z

On 1/24/23 20:03, Niklas Cassel wrote:
> From: Damien Le Moal <damien.lemoal@opensource.wdc.com>
>
> For devices supporting the command duration limits feature, when a read
> or write operation has the IOPRIO_CLASS_DL priority class and the
> command duration limits feature is enabled, set the command duration
> limit index field of the command to the priority level.
>
> For unqueued read and write operations, the command duration limit index
> is set as the lower 2 bits of the feature field. For queued NCQ
> read/write commands, the index is set as the lower 2 bits of the
> auxiliary field.
>
> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
> Co-developed-by: Niklas Cassel <niklas.cassel@wdc.com>
> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
> ---
> drivers/ata/libata-core.c | 43 ++++++++++++++++++++++++++++++++++-----
> drivers/ata/libata-scsi.c | 3 +--
> drivers/ata/libata.h | 2 +-
> include/linux/libata.h | 1 +
> 4 files changed, 41 insertions(+), 8 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes