linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hisi_sas: A couple of misc patches
@ 2020-07-13  8:04 John Garry
  2020-07-13  8:04 ` [PATCH 1/2] scsi: hisi_sas: Directly trigger SCSI error handling for completion errors John Garry
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: John Garry @ 2020-07-13  8:04 UTC (permalink / raw)
  To: jejb, martin.petersen; +Cc: linux-scsi, linuxarm, linux-kernel, John Garry

Includes a patch to speed up error handling and a kerneldoc clean-up.

John Garry (1):
  scsi: hisi_sas: Remove one kerneldoc comment

Luo Jiaxing (1):
  scsi: hisi_sas: Directly trigger SCSI error handling for completion
    errors

 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 4 +++-
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 6 ++++--
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 4 +++-
 3 files changed, 10 insertions(+), 4 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] scsi: hisi_sas: Directly trigger SCSI error handling for completion errors
  2020-07-13  8:04 [PATCH 0/2] hisi_sas: A couple of misc patches John Garry
@ 2020-07-13  8:04 ` John Garry
  2020-07-13  8:04 ` [PATCH 2/2] scsi: hisi_sas: Remove one kerneldoc comment John Garry
  2020-07-14  4:58 ` [PATCH 0/2] hisi_sas: A couple of misc patches Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: John Garry @ 2020-07-13  8:04 UTC (permalink / raw)
  To: jejb, martin.petersen
  Cc: linux-scsi, linuxarm, linux-kernel, Luo Jiaxing, John Garry

From: Luo Jiaxing <luojiaxing@huawei.com>

We used timeout mechanism of SCSI mid-layer to trigger some IO's error
handle, this type of abnormal IO require driver to enter error handle to
clear the residue in the hardware.

But timeout mechanism caught error handle time to be longer, some threads
need to wait for tens of seconds until block layer detect timeout and wake
up SCSI error handle thread. So we try to trigger error handling directly
for some specific IOs to save time.

Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
---
 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 4 +++-
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 4 +++-
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
index 2e1718f9ade2..53e1f517efe9 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
@@ -1258,8 +1258,10 @@ static void slot_complete_v1_hw(struct hisi_hba *hisi_hba,
 		!(cmplt_hdr_data & CMPLT_HDR_RSPNS_XFRD_MSK)) {
 
 		slot_err_v1_hw(hisi_hba, task, slot);
-		if (unlikely(slot->abort))
+		if (unlikely(slot->abort)) {
+			sas_task_abort(task);
 			return;
+		}
 		goto out;
 	}
 
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
index e7e7849a4c14..4151b2c04923 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
@@ -2404,8 +2404,10 @@ static void slot_complete_v2_hw(struct hisi_hba *hisi_hba,
 				 error_info[0], error_info[1],
 				 error_info[2], error_info[3]);
 
-		if (unlikely(slot->abort))
+		if (unlikely(slot->abort)) {
+			sas_task_abort(task);
 			return;
+		}
 		goto out;
 	}
 
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
index 3e6b78a1f993..d2488d27ff8f 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
@@ -2235,8 +2235,10 @@ static void slot_complete_v3_hw(struct hisi_hba *hisi_hba,
 				 dw0, dw1, complete_hdr->act, dw3,
 				 error_info[0], error_info[1],
 				 error_info[2], error_info[3]);
-		if (unlikely(slot->abort))
+		if (unlikely(slot->abort)) {
+			sas_task_abort(task);
 			return;
+		}
 		goto out;
 	}
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] scsi: hisi_sas: Remove one kerneldoc comment
  2020-07-13  8:04 [PATCH 0/2] hisi_sas: A couple of misc patches John Garry
  2020-07-13  8:04 ` [PATCH 1/2] scsi: hisi_sas: Directly trigger SCSI error handling for completion errors John Garry
@ 2020-07-13  8:04 ` John Garry
  2020-07-14  4:58 ` [PATCH 0/2] hisi_sas: A couple of misc patches Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: John Garry @ 2020-07-13  8:04 UTC (permalink / raw)
  To: jejb, martin.petersen; +Cc: linux-scsi, linuxarm, linux-kernel, John Garry

The comment for interrupt_init_v2_hw() should not be a kerneldoc comment,
so remove it.

Signed-off-by: John Garry <john.garry@huawei.com>
---
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
index 4151b2c04923..ce84f2ba7f68 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
@@ -3302,7 +3302,7 @@ static irq_handler_t fatal_interrupts[HISI_SAS_FATAL_INT_NR] = {
 	fatal_axi_int_v2_hw
 };
 
-/**
+/*
  * There is a limitation in the hip06 chipset that we need
  * to map in all mbigen interrupts, even if they are not used.
  */
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] hisi_sas: A couple of misc patches
  2020-07-13  8:04 [PATCH 0/2] hisi_sas: A couple of misc patches John Garry
  2020-07-13  8:04 ` [PATCH 1/2] scsi: hisi_sas: Directly trigger SCSI error handling for completion errors John Garry
  2020-07-13  8:04 ` [PATCH 2/2] scsi: hisi_sas: Remove one kerneldoc comment John Garry
@ 2020-07-14  4:58 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2020-07-14  4:58 UTC (permalink / raw)
  To: John Garry, jejb; +Cc: Martin K . Petersen, linuxarm, linux-kernel, linux-scsi

On Mon, 13 Jul 2020 16:04:29 +0800, John Garry wrote:

> Includes a patch to speed up error handling and a kerneldoc clean-up.
> 
> John Garry (1):
>   scsi: hisi_sas: Remove one kerneldoc comment
> 
> Luo Jiaxing (1):
>   scsi: hisi_sas: Directly trigger SCSI error handling for completion
>     errors
> 
> [...]

Applied to 5.9/scsi-queue, thanks!

[1/2] scsi: hisi_sas: Directly trigger SCSI error handling for completion errors
      https://git.kernel.org/mkp/scsi/c/05d91b557af9
[2/2] scsi: hisi_sas: Remove one kerneldoc comment
      https://git.kernel.org/mkp/scsi/c/3d570a28ee8d

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-14  4:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13  8:04 [PATCH 0/2] hisi_sas: A couple of misc patches John Garry
2020-07-13  8:04 ` [PATCH 1/2] scsi: hisi_sas: Directly trigger SCSI error handling for completion errors John Garry
2020-07-13  8:04 ` [PATCH 2/2] scsi: hisi_sas: Remove one kerneldoc comment John Garry
2020-07-14  4:58 ` [PATCH 0/2] hisi_sas: A couple of misc patches Martin K. Petersen

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).