Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2273413rda; Tue, 24 Oct 2023 19:20:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMNg1xq6AVOrlUxjSUvJm2bH9r5YHls/Kl8to7K9wSIsewDOM7EmmXZVN7V8wayC2KZL1H X-Received: by 2002:a81:5344:0:b0:59f:687c:fb36 with SMTP id h65-20020a815344000000b0059f687cfb36mr13481252ywb.45.1698200431127; Tue, 24 Oct 2023 19:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698200431; cv=none; d=google.com; s=arc-20160816; b=SidSKD2kABtKuvYmFRbZmcIOBtNT/nSHIdcEdHK8H/RkJtxMSJQeEcAeM/riMeIhr1 TP31rU1zJuyg/0oUGBGc6+F8kVdnyirxWvrR8kBjGDY3KTFT37cGjPUxHMnQP1lPnvc0 bq41AOtB524tu8n+fQFyY9pldOlK5rUeVr0LbSpNJK/IJkqknp8AVvIc5LxC4wzxHXpy 7TAps6CsNOK7C02zNi/yVJm4qXxnOggz/FHneLZFdUGnIa4MZYLDwNV7MwHq54w/lfgU eN8JPTk2mUwsZkwXps5skfZVCDuCrQuk3IuI1w/qsllS7RNtS+HJOCHVs29Crnehu/7m oCsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BoJr5H11P3Mxq3RdCvbv/K4oFLgQ2TVLlaOWrcTCKVA=; fh=5IK+1icX8acX+2Luz/O7D+nj6qlh7OSziu9sxt2mxKk=; b=Dc57ji+QBR8WNj5hkRp/llIdVO+KE7SBP/X/CbhgEjlP61UWAvQeK/mb8kpTCwCJx4 mGYM8J87zdETaY+i960qPYRJ2HOovI4eMxN4vcV/zSIk9aR1tDcDeVYwW4Ebn1N3SFMn iO1keAPEioMJBeIzJ/N2i9B9GNHNdwJq8G3bSJODIkakS9Wd4klX+PxcbRd/5VyJdgTE AahBzHWrnXUsCKyIRGmpjCvW8gmNARdWpEymCOCjNLkJ/TJYkQI1Ulp17XerzCFtCyng 4nYrJrCG4TGO1o6W9Y6A9M6L7uERu838/nNbA/JtcDPk5vrCIQWGydmnyBlFsOfS681e 7XNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=pTQdANJy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id n193-20020a0dcbca000000b005771e239aa8si9357988ywd.30.2023.10.24.19.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 19:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=pTQdANJy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CED1A80B9506; Tue, 24 Oct 2023 19:20:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbjJYCUJ (ORCPT + 99 others); Tue, 24 Oct 2023 22:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJYCUH (ORCPT ); Tue, 24 Oct 2023 22:20:07 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02F69C; Tue, 24 Oct 2023 19:20:05 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39OLUNN6004153; Wed, 25 Oct 2023 02:19:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2023-03-30; bh=BoJr5H11P3Mxq3RdCvbv/K4oFLgQ2TVLlaOWrcTCKVA=; b=pTQdANJyioC3m+r9ve023Kg9iRG3ds0R+WfQ3nYga1KW8Or9zRCLbGuo1dxZNrXuFwDN dQSBjKHRLOIYJOdg1mb9X+EuqNOfQdB7tnoNjSpDf7CP44WRBdx59SVT/7ja4oVN3a2/ UM0Oo/gdI6fSy2iqZBd0Bi6sZ3rxJsiAExyhUwQQjhx6oHtRDEDWdeQEkgXou3O/rF/j 2RiBY4JQiG0ffNICsPccmwPfIMN7hBfbTrsyhrWmtJERNbR7zEzPKPcXc0xnH/30JzBd ZPImBvmA9cbLQXUOQkvczoIXkcIvuIDwAWOyg82EzdAMBzcoiBF/qeoVf7/Bss4Kqh0I vA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tv581pr9u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Oct 2023 02:19:53 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39P0LjbR015130; Wed, 25 Oct 2023 02:19:53 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tv53621a5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Oct 2023 02:19:52 +0000 Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39P2JpFK000926; Wed, 25 Oct 2023 02:19:52 GMT Received: from ca-mkp2.ca.oracle.com.com (mpeterse-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.251.135]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3tv5362196-2; Wed, 25 Oct 2023 02:19:52 +0000 From: "Martin K. Petersen" To: Douglas Gilbert , Wenchao Hao Cc: "Martin K . Petersen" , "James E . J . Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, louhongxiang@huawei.com Subject: Re: [PATCH v6 00/10] scsi:scsi_debug: Add error injection for single device Date: Tue, 24 Oct 2023 22:19:44 -0400 Message-Id: <169819964272.2667926.6343411701212225977.b4-ty@oracle.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231010092051.608007-1-haowenchao2@huawei.com> References: <20231010092051.608007-1-haowenchao2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-25_01,2023-10-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=985 bulkscore=0 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310250018 X-Proofpoint-GUID: l5JbVltxVkkgXdqC-5QwO4vc7xS5ppie X-Proofpoint-ORIG-GUID: l5JbVltxVkkgXdqC-5QwO4vc7xS5ppie X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 19:20:25 -0700 (PDT) On Tue, 10 Oct 2023 17:20:41 +0800, Wenchao Hao wrote: > The original error injection mechanism was based on scsi_host which > could not inject fault for a single SCSI device. > > This patchset provides the ability to inject errors for a single > SCSI device. Now we support inject timeout errors, queuecommand > errors, and hostbyte, driverbyte, statusbyte, and sense data for > specific SCSI Command. Two new error injection is defined to make > abort command or reset LUN failed. > > [...] Applied to 6.7/scsi-queue, thanks! [01/10] scsi: scsi_debug: create scsi_debug directory in the debugfs filesystem https://git.kernel.org/mkp/scsi/c/6e2d15f59b1c [02/10] scsi: scsi_debug: Add interface to manage single device's error inject https://git.kernel.org/mkp/scsi/c/a9996d722b11 [03/10] scsi: scsi_debug: Define grammar to remove added error injection https://git.kernel.org/mkp/scsi/c/962d77cd4c85 [04/10] scsi: scsi_debug: timeout command if the error is injected https://git.kernel.org/mkp/scsi/c/32be8b6e22eb [05/10] scsi: scsi_debug: Return failed value if the error is injected https://git.kernel.org/mkp/scsi/c/33bccf55c20b [06/10] scsi: scsi_debug: set command's result and sense data if the error is injected https://git.kernel.org/mkp/scsi/c/33592274321e [07/10] scsi: scsi_debug: Add new error injection abort failed https://git.kernel.org/mkp/scsi/c/5551ce928805 [08/10] scsi: scsi_debug: Add new error injection reset lun failed https://git.kernel.org/mkp/scsi/c/0267811625e1 [09/10] scsi: scsi_debug: Add debugfs interface to fail target reset https://git.kernel.org/mkp/scsi/c/f084fe52c640 [10/10] scsi: scsi_debug: Add param to control sdev's allow_restart https://git.kernel.org/mkp/scsi/c/573c2d066eb9 -- Martin K. Petersen Oracle Linux Engineering