Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp135065iob; Tue, 17 May 2022 21:25:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcX3hbJusqvNKBQalizP3cMD0pDZ+OGeddRbQTS78KSU3M22ZTrd2fsm8JCoHI5Kgia0IF X-Received: by 2002:a17:903:1212:b0:15e:7d94:e21d with SMTP id l18-20020a170903121200b0015e7d94e21dmr25317861plh.92.1652847957363; Tue, 17 May 2022 21:25:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652847957; cv=pass; d=google.com; s=arc-20160816; b=kGrkvlG6DbtP5I3z+gi5HXD8q8FhkkrRLfKyUQR5vdHnMGtI1UjWJ9EAbreFvyPorV uNUnYtmFm5pRXpbda5qZEKG3qUhz0mA3gPviT2gn4p6JWZaFPL0L/dtEK3sXdD4ilzic F8Bhj4b64w1LyQNzHezQGZnS3XjoHU1d75XH+zrFmZpg3S7QpGxGTZJimk2PKdNM9mvV h1HROqnEgKX+/7aOdzrw8mHGd9Liqm5RiVQjtRCnbS+fz1Xrzkag8nEgRLIMIhA1ItFs 0zpc3WnY90sfyLiFso9yol2nKD01mCtPce+CyPDoabA/3KnaCSbCw5PJpWOrhOr/Cuph 1ryQ== 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=1A8TBJTP6ndxGg4dRRs7oJvrIDM5adSeHZyD5wG156o=; b=aO05xod9sARS0opxVoEaDHLDDWBdDblxgQ6ERH9U938XjJ8tpqg1MraYBs6djVjK/9 IqljHkG5HXYSTBOBNc20SOrAmJ1tT4QhmQiiFAPtZHqKvHRS6OUKB5LKLC0CUQuUQh2p D4s+vLoaQ5BtZaXyDWfpRmd1CeOl4+SLqs/xMbSJFAN5krkVEn+aNf9puTDJOs2iliD+ qrrGoD2BSZJ8nHoTbCd1VpJoCCGJYoKOjzU36KdcLIaXFP3RLBI1j9bUG1bIsi3QvA97 suhExI5kRGCjAk7RFlIWfKKkSCxxRv5zFgH5QgdJOx4eIQsn2w3YQ+hw2qucFlbRau24 CdWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=hdmfIDKu; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SnOzku84; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j20-20020a170902f25400b00161bc840c77si1072584plc.548.2022.05.17.21.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:25:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=hdmfIDKu; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SnOzku84; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8047C7E1E1; Tue, 17 May 2022 20:49:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235660AbiEQBvq (ORCPT + 99 others); Mon, 16 May 2022 21:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiEQBvn (ORCPT ); Mon, 16 May 2022 21:51:43 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6F3628E2C; Mon, 16 May 2022 18:51:41 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24GKnXYu019520; Tue, 17 May 2022 01:51:33 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-2021-07-09; bh=1A8TBJTP6ndxGg4dRRs7oJvrIDM5adSeHZyD5wG156o=; b=hdmfIDKuOx66AvMmrZzyry+aHOB3LZmyxeSd6EPyLRzuglWfI+rBtYfR5z7AOJ3X6ka1 uDtM+a2RGhFo+JUfGpvMdpDOlcfn5ptFB3t9dK+T3Xh0DSFOwhKH61cmF+TjYTagpvgB AKYtG1MXG42dh0i458h7ZPCaWjeclg4gXYinevf3kPNWRw3NfcTeg2JsEFg+xljJ0Uby ruMSFK91jjuD6s6QSVaGY2iBi291OlpBOnn2O13OysX21S1cTwaQmbK//5saHVnKX9aB WjUWqlIVgjoB05Tu78KEUVcZ9NuJSRCA2O5RfftBRWOSUNadbEDkatmmfo41K5roAqRY dQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3g241s4uxk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 May 2022 01:51:32 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24H1jdpx038479; Tue, 17 May 2022 01:51:32 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3g22v2a6rj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 May 2022 01:51:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hluci+2pL9zu5ap9n9ePGuHxCqAzZNsfNL0oIn74p6yOVoHv0rmsy4/lW0/rOcesfuOGEDsv6BYKC3kvj/HdDy++34VvQy/VqXAcssAo//9HPuULXelQKJhDiAM/lE+mbtqJ57INcs0pTa0GO+Vp+tm2ttAo5rtTJXfQijN95QjdmgagfBLUmozmW2KV7kNloFErOyzVM06UCk/YJZTCZStPsErpEY+hW8bbRrckjtfYF+krzkLngyO/uUCgyIZ/2Ntg/44f4UDVXyIEl7y9yBgNY8E3uc+qTx/99zTfidRm3H5xNPEEIVaV6ucpNotbP/kKJP/osJ7GWu4KrIFfCA== 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=1A8TBJTP6ndxGg4dRRs7oJvrIDM5adSeHZyD5wG156o=; b=kMa80F0Yska0nu5nhH/iFqGLW7KcAxF9WKUIQPwdLocZzPQMnlvZIfMiBiZiCHrlBqZ6uBQlsYxp6d6uXjYVNpcoVf2FrHBRvgFsGC2fHGGDEIEQBwxoDkTZvHFow7KpHiA3XPEebHGlxzxqpRLOBDNmSfqzgvPURtevRupBAkxPB9QTxGXYyK6SRJ4VFK8ezvgZzTlDPSjSZM8daC5QjNsv0Yb/dTntgK10JjylThL7+4ohhtB64nFnioWzOVqogB+OTiC4VOY27m7kt6eZwBWBzjFjlJmDYvFQbhLpi4PTW/L1+OKtnsyEPvc/I9mMEFgumSNfgwUN1PvMNj0cvA== 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=1A8TBJTP6ndxGg4dRRs7oJvrIDM5adSeHZyD5wG156o=; b=SnOzku84aICCo7kwniWqxERPCX8KBTThhH3fhpIvF2cp4+LWwm/f9o6S24gW712VQaKpixt9YWr9dpWZh3bCN9KVCWWI/kn0CkQo7dSZCh6vNvmrYeqnCPhTZxfh3OEtU8TC33gifVU5BRpdl+j9VUJTKTN3uyDkGv3zVTarq8Q= Received: from PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) by MN2PR10MB3853.namprd10.prod.outlook.com (2603:10b6:208:180::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.14; Tue, 17 May 2022 01:51:29 +0000 Received: from PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::d1db:de4e:9b71:3192]) by PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::d1db:de4e:9b71:3192%9]) with mapi id 15.20.5250.018; Tue, 17 May 2022 01:51:29 +0000 To: John Garry Cc: , , , , Subject: Re: [PATCH 0/3] hisi_sas: A device rescan and IT nexus reset fix From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <1652354134-171343-1-git-send-email-john.garry@huawei.com> Date: Mon, 16 May 2022 21:51:27 -0400 In-Reply-To: <1652354134-171343-1-git-send-email-john.garry@huawei.com> (John Garry's message of "Thu, 12 May 2022 19:15:31 +0800") Content-Type: text/plain X-ClientProxiedBy: SA9P223CA0028.NAMP223.PROD.OUTLOOK.COM (2603:10b6:806:26::33) To PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 12a70311-ecdc-4b39-9485-08da37a7c2f4 X-MS-TrafficTypeDiagnostic: MN2PR10MB3853:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P9uzE4FQ9tLVXYJ4N4Tnk6p4dCLkMytABjjUEumWgQQdPSfIMrsGdBtpdYU4hQUyyucRl9ImyGKCYhfakrzzhDJ0G5XD9GtUD2B6VH6/x0JDdQbDPZdo+g82V+laWvOUj7hwRhfb9UMI3zGG+G8XXlHHBNcoOZ1iP5TjuqxmXHaHyvFCU/zDRh/b/J8+lKrf99Nd9T3s06TqOkYmSoPcQvKpIJVUL84zo7nnUJldi9Nfzp0i9PZw4c5PcoKlPvgy+YQfY4JCHg0fpMr6sqMu73WI5PDWP/7d1vDdQoNOhyw/vIreOC7XsuUCT+u7WsyLUV5a9K6NbFjwxVSYy6CxBHxzeXk0L1ejbWkDKmP955GDMV1HAK9bgDXqsyMtS1qJ/Jw1+XnKJ5XXU94yGshsgH+Me5788sJI+lsdivIdA35ZzCB9f9a+aKyo1hk82yU8lJWPz5HEZRLDvuwHEyNaByBZneeWRTCoG+tbCL/gWQFuh8J4ednDx9plOPfetJNJu3y1std27UAC98mGJSLxoXJQXmoVuaYtK78ADO1iBByFenwIAlWQdmTUfPSVpQeGQ+CuJjWeWPB3RVd7TncBK6MQxYHsbW/8IBkBsMtnmj1nKl1QWv/8l0zP43OvA0IJIrareARQABXykmafE9ep9+/ZJF50u+10bxnb0Y58+Cx1FINmfWqCxxMnwTKtKy3KetwyQbfqb8Ll10J7f1M9TA== 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:(13230001)(366004)(2906002)(186003)(38100700002)(6506007)(38350700002)(26005)(316002)(6512007)(4326008)(86362001)(4744005)(6486002)(54906003)(6916009)(8936002)(66556008)(508600001)(8676002)(66946007)(66476007)(36916002)(52116002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HpjL/pwFDpIS0ZftX9/I6CW18ypDIMbR9n6sl4OtSkMvvZfakPg2mkQhw4Fx?= =?us-ascii?Q?eB9YaPlWK5n5tiFbSwuE3hvjbItSzVD5owF4uGGf4+RAgnOtf/EqgqUo1Xbd?= =?us-ascii?Q?anvjZAg+l2p6g9k7uFUGZ2C4zeudhAbkEgQaf3ea7FALCoB4SQ8F46k5y0cm?= =?us-ascii?Q?CysS+bxyPjX9bhjmSgOMCxQDq01G8fI6BfyKrbl2skOEKvvR8KQdxd3r3OJ6?= =?us-ascii?Q?EHqIHO7MaKk98EEvNdLkIcFMI6c7v34qaPr2bJ9l2IbxD09thfhAUtyIo8p/?= =?us-ascii?Q?UCWZBFD2fWcAlp943Mj2svJuX4L0ZSByk/51Bzc+A+tDx2B6Gp4Gw6gnhTEW?= =?us-ascii?Q?hsXK5M6+ytQJenQau0WFB++3IjVG21HlxWJt3O3b/Q9OHpYbTqV/ONFqcK9L?= =?us-ascii?Q?tvJB+T9J/XHNspJ9izBjmQNN3x/aSfX0FY+J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fkn4j76omvKD3mB+OdalBq6ntTCgGMfny+zJkzLK1AIpdCUoCSuG4?= =?us-ascii?Q?EsgltMXI8Y404IgdkWlfE1d7n7h51fuoc/OJo4G0mkGiol5MY6SyHay16dwK?= =?us-ascii?Q?wtwkvpjYRi1q1Jbq6L1myq3s2AUT4PTCyDDZGsIExJlYfc0GvZ5O3mgQflRS?= =?us-ascii?Q?qm0VMuu++j96gK0QJ7JgYNy81E+fjmvICu1/JEHZzSxhX7ZVfhLmmybnVJ7O?= =?us-ascii?Q?FuKsy3vcUW63rTkgyaDdLu/yK39KDFGVsLmLpnGgOaN+djC3o9XjmHTnIhXL?= =?us-ascii?Q?PANFDNnJP5AV1kXgeNmTEgaajAJ/Io6lKzWxD1ypBzuiSXxx4pFqzQtW4YRf?= =?us-ascii?Q?lLNazwnPEkBdNuZJB0NUruVR4XKrJzgRpWB9l73SEM/W2mPbMT+skZyCpoSH?= =?us-ascii?Q?ymYmEcGBjteFEZ/EhKffgrNjCt8jeOk=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12a70311-ecdc-4b39-9485-08da37a7c2f4 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB4759.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2022 01:51:29.7939 (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: u7527qe+5UXuMfhfsHANChWT8wOc2uaCPI7DR/BQjiGNOk0SrK+H+RaEiARoV0M7Oe9Gcu6uHjdM0jYzBtrUGDCYIQ7NfOP+OU559vgwdjs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB3853 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.858 definitions=2022-05-16_16:2022-05-16,2022-05-16 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 mlxlogscore=923 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205170007 X-Proofpoint-GUID: 3qGZtspyca9BLZkm-56qcaU2fEmrq2V_ X-Proofpoint-ORIG-GUID: 3qGZtspyca9BLZkm-56qcaU2fEmrq2V_ X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, > This series includes 2x fixes for the hisi_sas driver: > - In issuing an ATA softreset in the IT nexus handler the disk may become > lost as we may issue the softreset before the phy is back up. > > So export functionality from sas_ata_hard_reset() to wait for phy up to > synchronize. > > - For host rescan we issue a nexus reset to the disk which is unnecessary, > so drop it. In addition, usage of the device status flag needs to be > fixed. Applied to 5.19/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering