Message ID | 20180801061335.28709-5-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A5B9B96FA for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 1 Aug 2018 06:13:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95E5E2A64D for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 1 Aug 2018 06:13:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EC9E2A645; Wed, 1 Aug 2018 06:13:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F410F2A645 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 1 Aug 2018 06:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733156AbeHAH5n (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 1 Aug 2018 03:57:43 -0400 Received: from mail-eopbgr700084.outbound.protection.outlook.com ([40.107.70.84]:17952 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733087AbeHAH5n (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 1 Aug 2018 03:57:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZypwnS/KIZRjJhDD4wMtKbx30p+lCstCBOuLlSjO+rw=; b=fGBt+sbv4HMOvaTatFCywNzr6llngEIU8QFNyNRHnSJydjw6BAwc9P9vR1Twy/h7weJgK23CVWWlXixE4r+NuBYCF8bW0GJO9AXx878O8JQmWJ6doOl55NUhM97CQE0AuazRlzLt3qW25Mx1WlflrUiNFGBGPAsIXUooDF5B5Vc= Received: from BYAPR07CA0027.namprd07.prod.outlook.com (2603:10b6:a02:bc::40) by CY1PR07MB1463.namprd07.prod.outlook.com (2a01:111:e400:50eb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Wed, 1 Aug 2018 06:13:42 +0000 Received: from BY2NAM05FT043.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::202) by BYAPR07CA0027.outlook.office365.com (2603:10b6:a02:bc::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.995.17 via Frontend Transport; Wed, 1 Aug 2018 06:13:42 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2NAM05FT043.mail.protection.outlook.com (10.152.100.180) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1038.3 via Frontend Transport; Wed, 1 Aug 2018 06:13:42 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 31 Jul 2018 23:13:35 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w716DbxE028760; Tue, 31 Jul 2018 23:13:37 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w716Db72028759; Tue, 31 Jul 2018 23:13:37 -0700 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v2 04/16] qla2xxx: Add longer window for Chip reset Date: Tue, 31 Jul 2018 23:13:23 -0700 Message-ID: <20180801061335.28709-5-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180801061335.28709-1-himanshu.madhani@cavium.com> References: <20180801061335.28709-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(346002)(136003)(39860400002)(396003)(2980300002)(438002)(189003)(199004)(6666003)(336012)(106002)(186003)(54906003)(110136005)(316002)(16586007)(42186006)(51416003)(5660300001)(446003)(11346002)(69596002)(2616005)(575784001)(126002)(476003)(106466001)(80596001)(486006)(36756003)(8936002)(8676002)(14444005)(44832011)(305945005)(26005)(86362001)(356003)(81156014)(81166006)(48376002)(50466002)(47776003)(1076002)(76176011)(2906002)(52396003)(87636003)(478600001)(72206003)(50226002)(4326008)(148743002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB1463;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM05FT043;1:tUua0vcAz8fa2oylntdneOXxowkE5h1xy+ku7kZCtJGom0ypsGbknvDBSS3zmWC5VUJCaGrWwHf24c0M1WZBd5isLJQkULGHMqrtHHJDw9wxezSP2F5viE41jJsTAqXx X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 033f9006-4b57-46c5-eec3-08d5f775ee5b X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:CY1PR07MB1463; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1463;3:w4rqNZ0IWEjv+7DQBhrn/gKkDbpH/NWsdFlV19MXwvkpZvnEaenDJ/BZgjVCVThsW7/qS+iRvJhPJgoK6JeMDK5GW6siie+RKHw4gpflPvx9dQnOyRIPAEdVi74U2dRhKfvklBd59egwAanGGZxQEUGSxSMolYVcZCS+bACU8cAaNTUCU2EXAha+bLVMk9YYQ4KHK+XB7va9xBVQMeHD+E7oEf8E5HCLDkcvCFR546jwGJpz96QQlGptzo3aFLvJtuwS1acL6JxgjeYyvOxdDj4KEOf+8LvsC5o2QDv0kU1nPJnasj33bj+lmlFBVaqLw34e1S6/NhIZickyOoLaPk+1ftTlgdbCl146UKw/LVU=;25:/AgBjZB3JlOcQmnwWP9lEyjhUTlGZOM7Q3U8KN3hDdGL2pu2J8I7gcX9wlOknxcrauuaqOqG0Sgj+d7IZ1sgUVIGhY6nwQ1D94ErA6H01mXDsw+8z0x7ts4bO+NYykI5ovztXPBo8ohwsHEqhzfAS51XiRO7Xy1ihfnkg7EFskqmtp6EUBPhmskqfxZacO5liChxK2hilDi//aUTg3gu44q0XLOSKlFBWYa+40TXIQksSIHMr+u5dVl8wEhVOno8/8hvjohnSU25/761JCh5XMi1U8LNp3MnG+7pK4/ZgQLV0SFmY+cuykD36rOEztubLj6+LptcZ+t2TLTK13+TKg== X-MS-TrafficTypeDiagnostic: CY1PR07MB1463: X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1463;31:BEF+NB+5z+m7FD0XE0NqPOFsx2XFr/0F7ASJZnDSRp4IZARzfZvCeGoVhJhvgc01C8VUj9nOXqUlvV7jK+WzzCoI6Jc2EgyhtB8vN0NTOYhkAbP/TYqXULKJ5zlWAlUThwuuzKY8TS2k8TD/h6vD5rCp4cOI8EepvSGmOER/PAoC+Tl0prw9ORCXRkpYwYNISmYh6qDiWUagtlgsKHBjnliEHbFDTj/t5RbKztqClxk=;20:600JD+6461c1QlxRFSOMWnBOfQHgHp+Ny0c6SNUE3BF3PoMy5PEJERdrCGRuZx9LtdK291+sW4nWNmSWGgxpT3h6LOU+bj5FmQtBp1MldV02c7CciNp/xhdlkL/i6SZr4KFJLGikHmHbmcrvLyNjePCE+cGrv994ttY9BRWdJ8iDWMBnOzu1ADVurTTov/xt240hOANK6BP21l8USj3LyyJODfZ0hVhykZN31OQ+iYgqq7GF7PdbT8gTegJ0DJz3DGVsg75NHYLuuAXSeP4AIXmaAVKPDkCes/Tmph309twh8K/Fqcgx35c0TsksYeWP//IQc5V0gAKJAcy0ys+pudsuiOFFwjuEp/xmlyxlPOzTMAZgzV/BYY2w7Tcclacs6DUAbiIOViG313GKbLPaeRumS5BVUJqqDDfqbhwESPRQP20FijLTBWXVn8rpD+35ocn3BtU84lotWc17TKMi26ftcYzhyJURWDarNgGzAazkfmMbXwJo8jG6Ql17riN+ X-Microsoft-Antispam-PRVS: <CY1PR07MB146314D0EBD066448EC41DE6F52D0@CY1PR07MB1463.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231311)(944501410)(52105095)(93006095)(93004095)(3002001)(149027)(150027)(6041310)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:CY1PR07MB1463;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB1463; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1463;4:uGZ3Fb489fLCEtOMUvhlpaaER13gC04+1CS0OLv0ikMuJd/cKOJMWqlj9QIXFOVq85ySAnmORa0CPqfdKUFH9ZDWE0YTKn3526rHUuGh4Zh4WXvvCUiTzpKYNmAabnLicGTK2kp18Z4l62J5SxN4ThW0xPx76Yifnjzrn4/eCWBkdfxpC00AYTIG+5EiSSITX9Vy22+bJnytOVmaDk0mbUYs3Ex3iYqX9zchot+U2m4ImXzUJ+wWhOgXxu2PNxXv2rK/VvbfEejmIK/52vXCcg== X-Forefront-PRVS: 0751474A44 X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1463;23:mXxUjNawW2zwTXoskDdfPgYgUH1/gLaCwM2nWt/iVNe6aoact67Vy/WZddE/FKPiO0bNXwo1ybD7+oAofs8YNh48gMmx6MDNioJCt0UY7KPso2I7j9FXTQ3ZDehwuhtMJkcL46zXicyjhLEg/2p3DfgC6Kh6P5deqpXGrGouGNbZibmpJEx9lq4qn0balgfPtJULnYuHGJgAefXFVwKweZIcoF+eOljzLVt4KsCuGG7JR34+NDdATyib+9P8ruq0zMQArDYSOKPN/C1IO1ePoHU9CuJzdqVuOqxHUVvMl/68Oi1eB02yQA9s4RJ+MJ0Z47TFsXwZP185xf0Sfd+Ijl5cxlnZ5jECDqDiaKAT6qiqKjLy+f8uH7capfBWwJAnbQW91XlCMvaSUJdDzj1Oc1951CEyqHyFvpm5WW4M24PuuUBj/7og41BoJzowKHYGQC6njT6slygJkoOxrhlyQ8HuEfpE8LhRlIXCl5TJkN88OswAcQ+jr/3Y7NEUoi3B1zALBjaSH/TkdRFVdin5IBd2oHySbF7dxP14mm3SNqsRXKH6zF7pIQ3QuSriQUTs29ANiHWH7zeqmV4gOSE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l2biEQA63pGMrOUvYlccTOyx9tbqOqF0E/fHr7hd3F31nAiqIVnrIXBr5WVVXf9SHcOCbdgD8PhWRJu3QUCc7OUO0TxvlIOvJxbFDKQVTlvAgzc9n5buzE9AqsyRPUNiOiGc2NAQx+N0q4cBL9yZNxZJ6C7mipyZjw7BIcI7mHJXwekUKSN6iaWTW4ELySiRaASzoy8X0PJ6m8l1wrOvObesqCXpOW5Y0c5dkJti/Tsr8aFOeGZPOBP7031/tVKGEbCf8opkv8GkGjgPWxerIHhGoyaXXOIO12s/BPgOp4APdGn0EjjjWFO8iTAeMRzb8hnpUOyUEg/OCm9SoJVLRx31xWIW+H2ODRFLbwDSFucRzQfCyrYKbfmejWq/6kB3dGB1CGJFCB+hTQODFas4f39fWr3Hx6Uy9hhA2squFl3g==;5:TXzwUXWWEvcuqRILjIGg8OOdlDps3khZ2hJBR7TKIEQnpC9ykS3w0p02mh/3CdO0s2q4BRiQVaO7mpS6nmyA7Eg1OuJkda0B2nu/qazQOGtnnuSRxANbS0yqdyw0XsFhn423zTmIstxo39hMJtm3T96Q5G+886k5XBpNO9Gm94o=;7:4ZmHR7v5ChxA1xjVFMlrN4EcvakyGBwTB7m//0Uspm+NV9Es9ifhQhLAWL8NvvjkcKlqo4xID1IWZcdQIPuXioQo+hWkSmc52ucKmPSdgBM3rC5UpncX8HVtFXBNLbR5elEfNdoBj/7Y6JbquX+n3SIcRzsN/czpC/GZCIr5aUkvyiWtTTVJni58eBw9+CIgyRksAqeV7CfJ/orAZkB3nm39fXZPjoqI+WbvMVswnhsnjOU+Or8p2fZypKUBaPua SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2018 06:13:42.2998 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 033f9006-4b57-46c5-eec3-08d5f775ee5b X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB1463 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
qla2xxx: Updates for the driver
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index 5fd44c50bbac..c7533fa7f46e 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c @@ -1130,6 +1130,7 @@ qla24xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) ha->fw_dump); goto qla24xx_fw_dump_failed; } + QLA_FW_STOPPED(ha); fw = &ha->fw_dump->isp.isp24; qla2xxx_prep_dump(ha, ha->fw_dump); @@ -1384,6 +1385,7 @@ qla25xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) ha->fw_dump); goto qla25xx_fw_dump_failed; } + QLA_FW_STOPPED(ha); fw = &ha->fw_dump->isp.isp25; qla2xxx_prep_dump(ha, ha->fw_dump); ha->fw_dump->version = htonl(2); @@ -2036,6 +2038,7 @@ qla83xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) "request...\n", ha->fw_dump); goto qla83xx_fw_dump_failed; } + QLA_FW_STOPPED(ha); fw = &ha->fw_dump->isp.isp83; qla2xxx_prep_dump(ha, ha->fw_dump); diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c index 731ca0d8520a..b170eb54aab5 100644 --- a/drivers/scsi/qla2xxx/qla_tmpl.c +++ b/drivers/scsi/qla2xxx/qla_tmpl.c @@ -1028,8 +1028,10 @@ qla27xx_fwdump(scsi_qla_host_t *vha, int hardware_locked) ql_log(ql_log_warn, vha, 0xd300, "Firmware has been previously dumped (%p)," " -- ignoring request\n", vha->hw->fw_dump); - else + else { + QLA_FW_STOPPED(vha->hw); qla27xx_execute_fwdt_template(vha); + } #ifndef __CHECKER__ if (!hardware_locked)