Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87D4DC433F5 for ; Fri, 17 Sep 2021 04:48:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 61D7260F93 for ; Fri, 17 Sep 2021 04:48:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244704AbhIQEtV (ORCPT ); Fri, 17 Sep 2021 00:49:21 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32522 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244700AbhIQEtI (ORCPT ); Fri, 17 Sep 2021 00:49:08 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18H4RUnl028706; Fri, 17 Sep 2021 00:47:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id; s=pp1; bh=YDdDWuS4gEUmYH95pLfp7IAuAzXZHyH1/s7htloovyI=; b=tVVPJ+7zW4XUDvIlvDIZNvkC5DxCCRsoU/X7wtJR6JIgMjt7xX3Q9VXP8bCVIG91X7xn igbPITlP5FuIQOXd/6ls5RwW6qLvPxqaev7/oGEe1HcP6TkqGHPVeFVua/Ls+eozy3iz FmoEDg0hAeGkHpXJ8ryZsSkubq6uUmDc/u8ipnMU5qZaxUN8AEXfrh5jjV1W3iqW8uw1 KnjHkH7JP8apJQVQafa2vfdq+zdwL04SNNcEBdM7MVmJDOtX4Zl8lj7gpDsQJFDcVcZa FawHJZMNlRJ0DBK8G7EO46xId6L5A8gvpBg6s9lHVFYUAyuXmFbF/nRx9eEz1yp0Ulj7 iQ== Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0b-001b2d01.pphosted.com with ESMTP id 3b4g673txc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Sep 2021 00:47:44 -0400 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 18H4l29w012416; Fri, 17 Sep 2021 04:47:44 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma04wdc.us.ibm.com with ESMTP id 3b0m3d264g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Sep 2021 04:47:44 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 18H4lgdQ44958084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Sep 2021 04:47:43 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DB33AAE063; Fri, 17 Sep 2021 04:47:42 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 64782AE05F; Fri, 17 Sep 2021 04:47:42 +0000 (GMT) Received: from localhost.localdomain (unknown [9.40.195.89]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 17 Sep 2021 04:47:42 +0000 (GMT) From: wenxiong@linux.ibm.com To: jejb@linux.ibm.com Cc: linux-scsi@vger.kernel.org, brking@linux.ibm.com, martin.petersen@oracle.com, wenxiong@us.ibm.com, Wen Xiong Subject: [V4 PATCH 0/1] Saw "Failed to get diagnostic page 0x1" Date: Thu, 16 Sep 2021 22:20:05 -0500 Message-Id: <1631848806-10184-1-git-send-email-wenxiong@linux.ibm.com> X-Mailer: git-send-email 1.6.0.2 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: pePiXPBERCpmFf_kKr0xgwO1wnu1YiHi X-Proofpoint-GUID: pePiXPBERCpmFf_kKr0xgwO1wnu1YiHi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-17_02,2021-09-16_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 mlxlogscore=822 clxscore=1011 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109170028 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Wen Xiong v4: Add checking return value before calling scsi_sense_valid() v3: checked to retry on NOT_READY and UNIT_ATTENTION v2: checked to retry on UNIT_ATTENTION in ses_recv_diag(); v1: called scsi_test_unit_ready() to eat UA in ses_recv_diag() Wen Xiong (1): scsi/ses: Saw "Failed to get diagnostic page 0x1" drivers/scsi/ses.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) -- 2.27.0