[PATCH][Bionic][SRU Artful] scsi: hisi_sas: support zone management commands

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH][Bionic][SRU Artful] scsi: hisi_sas: support zone management commands

dann frazier-4
From: Xiaofei Tan <[hidden email]>

BugLink: https://bugs.launchpad.net/bugs/1739891

Add two ATA commands, ATA_CMD_ZAC_MGMT_IN and ATA_CMD_ZAC_MGMT_OUT in
hisi_sas_get_ata_protocol(), to support SATA SMR disk.

Signed-off-by: Xiaofei Tan <[hidden email]>
Signed-off-by: John Garry <[hidden email]>
Signed-off-by: Martin K. Petersen <[hidden email]>
(cherry picked from commit c3fe8a2bbbc22bd4945ea69ab5a29913baeb35e4)
Signed-off-by: dann frazier <[hidden email]>
---
 drivers/scsi/hisi_sas/hisi_sas_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 44f3f9e0b0d4..9d9c2c248027 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -61,6 +61,7 @@ u8 hisi_sas_get_ata_protocol(u8 cmd, int direction)
  case ATA_CMD_WRITE_QUEUED:
  case ATA_CMD_WRITE_LOG_DMA_EXT:
  case ATA_CMD_WRITE_STREAM_DMA_EXT:
+ case ATA_CMD_ZAC_MGMT_IN:
  return HISI_SAS_SATA_PROTOCOL_DMA;
 
  case ATA_CMD_CHK_POWER:
@@ -73,6 +74,7 @@ u8 hisi_sas_get_ata_protocol(u8 cmd, int direction)
  case ATA_CMD_SET_FEATURES:
  case ATA_CMD_STANDBY:
  case ATA_CMD_STANDBYNOW1:
+ case ATA_CMD_ZAC_MGMT_OUT:
  return HISI_SAS_SATA_PROTOCOL_NONDATA;
  default:
  if (direction == DMA_NONE)
--
2.15.1


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

ACK: [PATCH][Bionic][SRU Artful] scsi: hisi_sas: support zone management commands

Seth Forshee
On Sat, Dec 23, 2017 at 09:24:42AM -0700, dann frazier wrote:

> From: Xiaofei Tan <[hidden email]>
>
> BugLink: https://bugs.launchpad.net/bugs/1739891
>
> Add two ATA commands, ATA_CMD_ZAC_MGMT_IN and ATA_CMD_ZAC_MGMT_OUT in
> hisi_sas_get_ata_protocol(), to support SATA SMR disk.
>
> Signed-off-by: Xiaofei Tan <[hidden email]>
> Signed-off-by: John Garry <[hidden email]>
> Signed-off-by: Martin K. Petersen <[hidden email]>
> (cherry picked from commit c3fe8a2bbbc22bd4945ea69ab5a29913baeb35e4)
> Signed-off-by: dann frazier <[hidden email]>

For artful:

Acked-by: Seth Forshee <[hidden email]>

This patch was merged in 4.14-rc1 so it is not needed in
bionic/master-next.

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

NACK: [PATCH][Bionic][SRU Artful] scsi: hisi_sas: support zone management commands

Kleber Souza
In reply to this post by dann frazier-4
On 12/23/17 17:24, dann frazier wrote:

> From: Xiaofei Tan <[hidden email]>
>
> BugLink: https://bugs.launchpad.net/bugs/1739891
>
> Add two ATA commands, ATA_CMD_ZAC_MGMT_IN and ATA_CMD_ZAC_MGMT_OUT in
> hisi_sas_get_ata_protocol(), to support SATA SMR disk.
>
> Signed-off-by: Xiaofei Tan <[hidden email]>
> Signed-off-by: John Garry <[hidden email]>
> Signed-off-by: Martin K. Petersen <[hidden email]>
> (cherry picked from commit c3fe8a2bbbc22bd4945ea69ab5a29913baeb35e4)
> Signed-off-by: dann frazier <[hidden email]>
> ---
>  drivers/scsi/hisi_sas/hisi_sas_main.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
> index 44f3f9e0b0d4..9d9c2c248027 100644
> --- a/drivers/scsi/hisi_sas/hisi_sas_main.c
> +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
> @@ -61,6 +61,7 @@ u8 hisi_sas_get_ata_protocol(u8 cmd, int direction)
>   case ATA_CMD_WRITE_QUEUED:
>   case ATA_CMD_WRITE_LOG_DMA_EXT:
>   case ATA_CMD_WRITE_STREAM_DMA_EXT:
> + case ATA_CMD_ZAC_MGMT_IN:
>   return HISI_SAS_SATA_PROTOCOL_DMA;
>  
>   case ATA_CMD_CHK_POWER:
> @@ -73,6 +74,7 @@ u8 hisi_sas_get_ata_protocol(u8 cmd, int direction)
>   case ATA_CMD_SET_FEATURES:
>   case ATA_CMD_STANDBY:
>   case ATA_CMD_STANDBYNOW1:
> + case ATA_CMD_ZAC_MGMT_OUT:
>   return HISI_SAS_SATA_PROTOCOL_NONDATA;
>   default:
>   if (direction == DMA_NONE)
>

This patch has been resent.

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team