From patchwork Tue Apr 6 11:48:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 415891 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4490513jai; Tue, 6 Apr 2021 04:52:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdYvPJY3x3Hc3EenQoWAP0RfUNryRJNeciWydim3SwclZiOOKV0mJi5xTZOGtIjUdOUi8i X-Received: by 2002:aa7:d886:: with SMTP id u6mr9151813edq.346.1617709971291; Tue, 06 Apr 2021 04:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617709971; cv=none; d=google.com; s=arc-20160816; b=bUZXTMMWS+jRhsE+seTjL/Q5Q1h42l7zoK8OnPXsalIuPo6Obpr9opNEmErRXVyQsf jMgrWt6D5MyBxYHZCakvqGzglZD9ggZRxPAv6pVk9AWBn2ZSAViZeLWctLjte86aWV+O 3dvGa+Nhyuc1Cq5M6MljX2SAG9kmLgIdr4IuitVrUufVXqFGBDookozi8jX7CIIqn4fu M4UjWZnlVClxknf4Czj8OchFGUhrWq546f69YwJpILwnoUHfjyWcWVKXqjNkVGl143SD LaY8I4nMYvcb7r1vBLU1ly7m+OaG+gc+TfcFqNRDX+5pId0wCg7tdmHY9F5iVbia3lg6 xHGA== 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=7WEdxYKmfqiJKVbzwNvNchpy9Nn42eTZY31k3FFlwig=; b=I0vS8g5T/Iqe1YRNAlyA0z4/dske6k+Rpf51PLQNVH6Gcc4p9fnZ6LS1rC9AgdR43e 9tDGIR7ehFBdp2bElwfz4Bd8fa3Lo/ftxOtCw7Jpzv9d1InOhbMQ8tLYKQxE8AqZ528t iJXV174cwPf9ZRGUNSAYhEyE3nYnAwEeqV4xFL5FlHFlygvrBPkR/LRL2LaRWw6Nc5FO 2sjj/MYsbgTtNUvof2ZtBVnI2PCUj+Lr+VTK2AZZIFDrVfhgWoamGLt5HmQL6YZhcUhS oSlMrKNZ8FnPE0sqttB93QvAieuNv7B38BE8xS0aC+2KZrO3SDcP2ftPujaW1JuucEb+ 5Kkg== 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.51 for ; Tue, 06 Apr 2021 04:52:51 -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 S1343537AbhDFLw5 (ORCPT ); Tue, 6 Apr 2021 07:52:57 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16361 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233425AbhDFLw4 (ORCPT ); Tue, 6 Apr 2021 07:52:56 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FF5SY3BDjz93fR; 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:38 +0800 From: John Garry To: , CC: , , , Luo Jiaxing , John Garry Subject: [PATCH 6/6] scsi: hisi_sas: Print SATA device SAS address for soft reset failure Date: Tue, 6 Apr 2021 19:48:31 +0800 Message-ID: <1617709711-195853-7-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 Add (pseudo) SAS address for ATA software reset failure log to assist debugging. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.26.2 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 4c90d91d47f4..5a204074099c 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1341,10 +1341,12 @@ static int hisi_sas_softreset_ata_disk(struct domain_device *device) rc = hisi_sas_exec_internal_tmf_task(device, fis, s, NULL); if (rc != TMF_RESP_FUNC_COMPLETE) - dev_err(dev, "ata disk de-reset failed\n"); + dev_err(dev, "ata disk %016llx de-reset failed\n", + SAS_ADDR(device->sas_addr)); } } else { - dev_err(dev, "ata disk reset failed\n"); + dev_err(dev, "ata disk %016llx reset failed\n", + SAS_ADDR(device->sas_addr)); } if (rc == TMF_RESP_FUNC_COMPLETE)