]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: hisi_sas: print device id for errors
authorJohn Garry <john.garry@huawei.com>
Fri, 23 Mar 2018 16:05:14 +0000 (00:05 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 18 Apr 2018 23:32:51 +0000 (19:32 -0400)
When we find an erroneous slot completion, to help aid debugging add the
device index to the current debug log.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c

index bed6afb324a1ede76617817ff6d5434bb0d001ca..a5abde855cb2575a0cebbfd1950ac06e9cbdb595 100644 (file)
@@ -2459,10 +2459,10 @@ slot_complete_v2_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot)
                        slot_err_v2_hw(hisi_hba, task, slot, 2);
 
                if (ts->stat != SAS_DATA_UNDERRUN)
-                       dev_info(dev, "erroneous completion iptt=%d task=%p "
+                       dev_info(dev, "erroneous completion iptt=%d task=%p dev id=%d "
                                "CQ hdr: 0x%x 0x%x 0x%x 0x%x "
                                "Error info: 0x%x 0x%x 0x%x 0x%x\n",
-                               slot->idx, task,
+                               slot->idx, task, sas_dev->device_id,
                                complete_hdr->dw0, complete_hdr->dw1,
                                complete_hdr->act, complete_hdr->dw3,
                                error_info[0], error_info[1],
index aa52d5e424f7a09d5e5728a6d0b0fee0ebdd90b0..760724ae4d6f429362171aa192396ac239b44139 100644 (file)
@@ -1641,10 +1641,10 @@ slot_complete_v3_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot)
 
                slot_err_v3_hw(hisi_hba, task, slot);
                if (ts->stat != SAS_DATA_UNDERRUN)
-                       dev_info(dev, "erroneous completion iptt=%d task=%p "
+                       dev_info(dev, "erroneous completion iptt=%d task=%p dev id=%d "
                                "CQ hdr: 0x%x 0x%x 0x%x 0x%x "
                                "Error info: 0x%x 0x%x 0x%x 0x%x\n",
-                               slot->idx, task,
+                               slot->idx, task, sas_dev->device_id,
                                complete_hdr->dw0, complete_hdr->dw1,
                                complete_hdr->act, complete_hdr->dw3,
                                error_info[0], error_info[1],