Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5334280rwi; Mon, 17 Oct 2022 19:51:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/oY53+J3CYNZZPYRAV1pjTfJ3bW45Lg/wOiOUKHUmd/jepc2RaMeHfPIFpov2Kz4uWwVQ X-Received: by 2002:a17:906:9b83:b0:730:b3ae:343 with SMTP id dd3-20020a1709069b8300b00730b3ae0343mr611571ejc.670.1666061476341; Mon, 17 Oct 2022 19:51:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666061476; cv=pass; d=google.com; s=arc-20160816; b=KHZt0jhjhso9jR8BIwUyyv+qM1/npuvymXPjdNqnTesw9CSbyNtnsfap1SwLyky2nc AoRkVcx9VkMN0w4HiaLu6p65wfgGcgmIeuXH8I5q8dzO5m95R3YBnEFpI8MC5VdjHKT/ Lfvsarb3Bqlzb/u1HvtsPoO8Hvg1g4S1nUxBDIIzP/DRgtO6RmVr2/Q904xg8GbZb5oF GWmljr/pTX7wrKlhCFBSqs00gAPkNGp6fbHsUU5ytX/hoanfFtMIlIZA2Npxr4wkc6Hm T3QiL1h1gnXkoCMgcyQSTyGF5iMeOAz7drDot/HxSJhgCAurHhZ6pXMQ7nJyJHVEOYL7 Ql+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature :dkim-signature; bh=m+bZUiGj6L/BBzGB9Y5p+hhAF3raVKr7jXj8PPjKhXI=; b=l+iFhg90DVhNbSMCovWVOKR+/lFxZIKvjnDwYjRXbQUUIVV46FISh7Rl3B+q+AdVBQ +if3lInEtEND4jZZWBQf+7xFyIhAVkOTu28NyWcXPR/MldBst5eHsR4HyX3YgwtOTZeU bxzUYRmJkCdBzYivQHEv+ubk6GwcxATpU4nLK6lA+zdNis8rs+k/F++pGYMm+hk17G9D uQ/A3kXoPmV7sLfWQbI+ZhYFkATXdsC4/pgatbVr5N7BSsHYyD2dN+DixvAtwpBess/H 8JBd6fea/JzkwbVCvXWwpzcIYNnCPIr5CRlKwaS2TCxioMikh7f0MR8/eF6jbStnnS42 w/8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=jbDNJ+cH; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=oDQOGqpg; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho34-20020a1709070ea200b0078db3ce1e59si12711928ejc.38.2022.10.17.19.50.50; Mon, 17 Oct 2022 19:51:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=jbDNJ+cH; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=oDQOGqpg; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbiJRCk5 (ORCPT + 99 others); Mon, 17 Oct 2022 22:40:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiJRCky (ORCPT ); Mon, 17 Oct 2022 22:40:54 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B47F8708B; Mon, 17 Oct 2022 19:40:53 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29HNYFRf016326; Tue, 18 Oct 2022 02:40:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : message-id : references : date : in-reply-to : content-type : mime-version; s=corp-2022-7-12; bh=m+bZUiGj6L/BBzGB9Y5p+hhAF3raVKr7jXj8PPjKhXI=; b=jbDNJ+cHmF3OmBaOj/h9KfiSMjLJ0F4XFTpAjRvG1rwWpmGJ8ZqVWM/VASDpZleF63ev XWvxsHG7Kuh5ts1UiXk/GYvf3NgDoHuYB9tJ6tF/liXHZjl3bK9ZKCYHutQ1pbpPj5PO CrQTuZ6SKp9EkT8WBkHkgz83ZRYPJiCDCjt1JmqvGZ5n4vkubZQnsE0uN+971vkMRKZ8 tjtcumyRxodapkCb54ag8kwoNVCokqJQDMWxnOclCyRP+S/O6S8mOFvm2OF2Ff3U22vr H5fC1DU4opnb4AI5ui5N7pI0IBXOcvOrWugw4OhJH13M9o/7ab+7HiVVYP0hLZtEZ4vp lQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3k7mw3d7h8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Oct 2022 02:40:35 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 29I0DuYt015922; Tue, 18 Oct 2022 02:40:34 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3k8hqy4ypc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Oct 2022 02:40:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OV1XJHbet4ViLRNRDz8yaaJy8jX60yrUsU5z83otFP++eItnZeCr+ADVRi0M/Dv9aoUm/qJG6Aven3n0eY++nKntmy8s+3mXYjQR68CIkDgsls8/AqN195S8OOqVEHu8WtTM2Iw178Sqb+JBdK2bHarN4qjLz6599R563kIr43S5biL1gXlGQkh3UgmJPGBs3nqdBj5EvN+IcfWD+ZqFqFzRKgokvz8/+a5gAxvjWnmmUQU1sagd0LTTg6Qm97f1DE3tKmqOCmkl+pq+EKw1BWNw1xwddtNp5y2G4LBIpPCaQHR1saX85DoG6A6mNJONlSqwJrwyl+x1EvjE9py67g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=m+bZUiGj6L/BBzGB9Y5p+hhAF3raVKr7jXj8PPjKhXI=; b=ZY68JbYKvtnCO611EcgHHnnasMJoA+3wPJ8CgUoXtw23yt7nC37la1BIdwqJhWC2lQt32NqMi3gBgRMZA/apOBeagKoijtDf8hr43vX/k5Dg+3Rd63ea1AwoqQmwNKG11hiyT8MuCopx4rfXy2uB5WbYSX3+bkPUKHuJ1P8jxdrifMNgejuG7V+MGrL/wLaqSbXXBIvldB3/6Pf3DHZ76UJ7zzG4bYM8UTewXfOBOm8PxlVzGZ67ldH9ELvF/ZEksJm76bY92Kp6a34jMlHyt2g+dA5z3DaC1Ktau+gPXlJfs0bW9VRoCzRzmpPUj/KhrzFLgIiNsM16V2NSUhKDkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m+bZUiGj6L/BBzGB9Y5p+hhAF3raVKr7jXj8PPjKhXI=; b=oDQOGqpghvx1v5Rn4QN1/s/h731FN2Y+cC8S+AOhMsTN/qgnNbNA//pMj2JW+6EnI0V5Fq8DoiKMDnQeiE1LvdIlhFFFZkb6BLTjgXL2bSJDeWnBa3HeZqiGW1YPo/JbDwy2rS09xWfQMXgPnkufopkdcZAfNluAKQ9Aou+CU0E= Received: from PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) by MW4PR10MB6347.namprd10.prod.outlook.com (2603:10b6:303:1eb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Tue, 18 Oct 2022 02:40:32 +0000 Received: from PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::a497:8929:2c6f:7351]) by PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::a497:8929:2c6f:7351%6]) with mapi id 15.20.5723.033; Tue, 18 Oct 2022 02:40:32 +0000 To: John Garry Cc: , , , , , , , , Subject: Re: [PATCH v6 0/8] libsas and drivers: NCQ error handling From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <1665998435-199946-1-git-send-email-john.garry@huawei.com> Date: Mon, 17 Oct 2022 22:40:29 -0400 In-Reply-To: <1665998435-199946-1-git-send-email-john.garry@huawei.com> (John Garry's message of "Mon, 17 Oct 2022 17:20:27 +0800") Content-Type: text/plain X-ClientProxiedBy: DM6PR07CA0052.namprd07.prod.outlook.com (2603:10b6:5:74::29) To PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB4759:EE_|MW4PR10MB6347:EE_ X-MS-Office365-Filtering-Correlation-Id: cff52e0a-613b-4c18-395e-08dab0b22052 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7j4rVivPK2R/ysNwfSaw0iiKEPIghVJYGSUfDBksYaXoOpK1IkyOa0g5jrWeXT5b1Ow7T8pJj59LhYGrOIZWxcDL+Y1EziaarmfJPfnvCkmtCvENpqhjL+pf3ZZ2H5cZkBAo7fdUOvpaXlp8fH/oTmk1UBVo/7nNQwtKwqzOZs6Of/rDSjp2hd8Mfczo/Y9HlwWi11oaTAVllWV7OVBVBID5KAMqteJrFf6Xt3A3uR4qrn5sM+AO9IUUqvVgz0zfwghzFyIV7pwAR9rJMi3m7I5DG0zw0Y+ThnlYY11esrYUSpTlAcwfZNN8BaARuW2ofwOarZPJj/uLq1MtPNw0YFPOa7TjELhFswyZqFkf8lJD03K3bKgFlKYAxO4aNFQNeeYaAlum9EO936nZQFuG1pXYP3JZIOCj86jCsrZCpSqEQlYA8QXm/rVbNoVSRqLKp1yh7Nl9ZLt51YgQoR6CRnyPVSxjIxx+vSEHpLE+eoH5zoLnHv1NlAJfn1KFyneTh0ZiPC4W221L9VT69S9OhrYNOEo3pbGQlogcXb0kQ1ukzXQ/irfu12USg3VGZjdu4mU9h2kqXzpVuKuyTByay0eHS+diNgWuDDUqVHJ9Vlv3kbSnRWfV9OwGANxZa1GjDaqdB4dtGiHSkriYi0dLla2FXDREKZ5/kQkG8yYj/dh8zKOrFu2JHwJdFv/OwKJppyE5JRFrFx/2U3SfkIHzBg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB4759.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(366004)(396003)(346002)(376002)(39860400002)(451199015)(86362001)(478600001)(6486002)(4744005)(186003)(6506007)(8936002)(26005)(6512007)(36916002)(6916009)(54906003)(316002)(6666004)(66946007)(2906002)(38100700002)(66556008)(66476007)(41300700001)(5660300002)(8676002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/P17qjuJcGZ/Cp33xKGq3bltd1ygU8R1N6pKTNNoAGJXhLt7vM5OCn6icYcT?= =?us-ascii?Q?TnrgFjiJlIINOsJoD+SnDPu7DAnmFkZDaSMEIS3HJ3/ul56vEvoUV0PdUpTg?= =?us-ascii?Q?CMZub070seDgc1oEthp3iIluHcufqWiSvyseXvFhJF9lwiOiqSXlOEo1TI8v?= =?us-ascii?Q?JUkt3hTfCNcxNep/yPnIaSFfsIRrYV4s/raLmiUo71//v9SGYNgGNA0kO+w7?= =?us-ascii?Q?wXVMN8KjENJoFHJjpVyTPPUP//h9O63GlWe1f6XfdPmdjDSnabsT7IqyaPkV?= =?us-ascii?Q?Ec6SwL657A9+dA6TwlsCEmDMtyAHdC90KIb1fq8oWY9G1HvaafrhU3ZLeYoK?= =?us-ascii?Q?uSiH+ldPtvztA1XbMtVFB7Jz9rpwgKSayQL5Uic5S0lTg7MYjytuVzi7nJVq?= =?us-ascii?Q?zKkqF3cZMdw+r181gtXPXeyJ0ke6UZaL3Iptgflv3QWdKjDxeFBQfpZPGK9I?= =?us-ascii?Q?cfomfgWipwufCvjp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uSjyZE?= =?us-ascii?Q?CiIOnLY8J0La/wWPBUs1eEbiXWQaGHNQwPNF96ByY8+lPniD9Zm55lpsT1wf?= =?us-ascii?Q?YCUBuNla03Bklo4rHxzGiNgmeLEQj/kruzManF0XH8KExla1RmeEcsupLzy2?= =?us-ascii?Q?5cBB+I90R0ZtbDlup0paERvJxiIsjvhF9aC3hTiNnEi22QkLEmVWKv/uFp92?= =?us-ascii?Q?SYiJ89qAdlpBcBWf/R/yYBLjK59cWgGaz5wAIOrvrcEnSmKqwoiUzGdYxobs?= =?us-ascii?Q?DA=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: cff52e0a-613b-4c18-395e-08dab0b22052 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB4759.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 02:40:32.1459 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /wrDYWvYlvHGEWwkNtLBVv8/+QxX8w1Gr3aQFrWLR52F5EqSLR0upw2unLb72P6MJ3kgFDwfRWmYCj815ZwOqZcIUwgEMN2m772RCTQxpoo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6347 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-17_13,2022-10-17_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxlogscore=788 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210180013 X-Proofpoint-ORIG-GUID: 7AQngRA6-HvPfP-AO_7D8GQ0jInRoN8S X-Proofpoint-GUID: 7AQngRA6-HvPfP-AO_7D8GQ0jInRoN8S X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org John, > As reported in [0], the pm8001 driver NCQ error handling more or less > duplicates what libata does in link error handling, as follows: > - abort all commands > - do autopsy with read log ext 10 command > - reset the target to recover, if necessary Applied to 6.2/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering