From patchwork Tue Apr 6 11:48:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 415893 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4490529jai; Tue, 6 Apr 2021 04:52:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHUsRongIDQf3JyFrsvXnBzSmRYAYNVcl1ldbsZUB0Xg2QshyPbatX8gHY9Uu206O6CPpS X-Received: by 2002:a05:6402:270c:: with SMTP id y12mr37432051edd.284.1617709973172; Tue, 06 Apr 2021 04:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617709973; cv=none; d=google.com; s=arc-20160816; b=o+hV+0eYrar9s0qobFH3C7kmhpAmw1kR381e/ejUtv0S7SOzhcZnHFJ11/JVI2HKwj ThRGG3+YeXGJGB0oSGEjGIlo3ZSEe+MQ0+sKm/fyTTA1P+hKEAaxzasMA3zl2jLKROti 0OmBziKys4UUK7JWqJaNi8Fr4MXwT+kj96cmoiM6smhwoZ5Lf0iJf28W9CRa4m6slKBd AL1rUmBxChs5uUmPbryC3YEbmeXu8srmzQlHJBbq4sS5Ju+uu1DPZLaC5jmOmMdJyKCN A3mGvuXONcFzZw3s/2C54pRt4cAKHvwm4tL2LL3F43wEA9czGa1GqGJS5xoxg/Q1/quG A3qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=CD3SJU7o7UvjWjPEvkiqGPFB0D5juY/HPR07+/nKuYw=; b=rjn8HyEZGMhrlH1MpfNy4BsIcXWpNf0q6ep/LyfCVfFxHx7GbyVdoBk5dqVRk9CkJ6 LNE4sNPoOsbQzJ2zZQunToMw/KgBRv8mVij5DOSgZk3y6KnmEG0hBmVP8MNQbjJawkcZ r8ypCuo5mrhRYbGnrM+P0iTBCT4LvVEDDoXVb1F27X3nwhGjizhCqxcZn6aCIX196adX HSTr81Emsnrq47F8SxI7MqDK7iVSsWBtGP3kwEaAsgnCN7Q6MXXmh3oGzqqf5FrZLm7H XhAugsS2yk4KbQ2mQ7I4KIH69rTImBAfitRhM8Zi/GmH21GF5eEKyTly1LpV6oxnjdVy kyGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si17443705edw.487.2021.04.06.04.52.53 for ; Tue, 06 Apr 2021 04:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343539AbhDFLw7 (ORCPT ); Tue, 6 Apr 2021 07:52:59 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16360 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343534AbhDFLw5 (ORCPT ); Tue, 6 Apr 2021 07:52:57 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FF5SY3ffBz9405; Tue, 6 Apr 2021 19:50:37 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Tue, 6 Apr 2021 19:52:37 +0800 From: John Garry To: , CC: , , , Luo Jiaxing , John Garry Subject: [PATCH 2/6] scsi: hisi_sas: Print SAS address for v3 hw erroneous completion print Date: Tue, 6 Apr 2021 19:48:27 +0800 Message-ID: <1617709711-195853-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617709711-195853-1-git-send-email-john.garry@huawei.com> References: <1617709711-195853-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Luo Jiaxing To help debugging efforts, print the device SAS address for v3 hw erroneous completion log. Here is an example print: hisi_sas_v3_hw 0000:b4:02.0: erroneous completion iptt=2193 task=000000002b0c13f8 dev id=17 addr=570fd45f9d17b001 Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.26.2 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 4580e081e489..51187dd53c86 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -2252,8 +2252,9 @@ static void slot_complete_v3_hw(struct hisi_hba *hisi_hba, slot_err_v3_hw(hisi_hba, task, slot); if (ts->stat != SAS_DATA_UNDERRUN) - dev_info(dev, "erroneous completion iptt=%d task=%pK dev id=%d CQ hdr: 0x%x 0x%x 0x%x 0x%x Error info: 0x%x 0x%x 0x%x 0x%x\n", + dev_info(dev, "erroneous completion iptt=%d task=%pK dev id=%d addr=%016llx CQ hdr: 0x%x 0x%x 0x%x 0x%x Error info: 0x%x 0x%x 0x%x 0x%x\n", slot->idx, task, sas_dev->device_id, + SAS_ADDR(device->sas_addr), dw0, dw1, complete_hdr->act, dw3, error_info[0], error_info[1], error_info[2], error_info[3]);