From patchwork Wed Jun 14 03:47:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9785227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0FB35602DC for ; Wed, 14 Jun 2017 03:48:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22A8F27FA3 for ; Wed, 14 Jun 2017 03:48:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 177BC2858D; Wed, 14 Jun 2017 03:48:13 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable 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 9C8E627FA3 for ; Wed, 14 Jun 2017 03:48:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754192AbdFNDsL (ORCPT ); Tue, 13 Jun 2017 23:48:11 -0400 Received: from mail-co1nam03on0086.outbound.protection.outlook.com ([104.47.40.86]:17896 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753926AbdFNDsG (ORCPT ); Tue, 13 Jun 2017 23:48:06 -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; bh=osy/GNcuQCIn7+VB6n91rvfKPTKf5ffSkeAzj4huIzE=; b=a/N/4NlQ0MznUgUFxyZ4F2DixeTq/yBQUyDN+YnTD74SxV7qaYr9W7zGZC4CciOPAYil0gaWXseGkpCkPeWqzrRuRWTMgiyIWWqvU9csX/cE6mV2RvGzwi/29uMkUVC77UyzoGxkM/eM17jKOThKcc8ieKTfT/wcEAIlqh+2hdQ= Received: from SN1PR0701CA0070.namprd07.prod.outlook.com (10.163.126.38) by SN2PR0701MB1024.namprd07.prod.outlook.com (10.160.57.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Wed, 14 Jun 2017 03:48:03 +0000 Received: from BL2FFO11FD009.protection.gbl (2a01:111:f400:7c09::165) by SN1PR0701CA0070.outlook.office365.com (2a01:111:e400:52fd::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Wed, 14 Jun 2017 03:48:03 +0000 Authentication-Results: spf=none (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=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD009.mail.protection.outlook.com (10.173.161.15) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1143.11 via Frontend Transport; Wed, 14 Jun 2017 03:48:01 +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, 13 Jun 2017 20:47:50 -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 v5E3lo5X015487; Tue, 13 Jun 2017 20:47:50 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v5E3lonW015486; Tue, 13 Jun 2017 20:47:50 -0700 From: Himanshu Madhani To: , CC: , , Subject: [PATCH v2 06/15] qla2xxx: Add fw_started flags to qpair Date: Tue, 13 Jun 2017 20:47:21 -0700 Message-ID: <20170614034730.15428-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170614034730.15428-1-himanshu.madhani@cavium.com> References: <20170614034730.15428-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39400400002)(39410400002)(39450400003)(2980300002)(428002)(199003)(189002)(9170700003)(72206003)(86362001)(6666003)(2950100002)(50226002)(575784001)(42186005)(54906002)(38730400002)(48376002)(2906002)(8676002)(101416001)(189998001)(81166006)(76176999)(87636003)(5003940100001)(5660300001)(47776003)(50986999)(305945005)(50466002)(8936002)(1076002)(4326008)(356003)(33646002)(105586002)(106466001)(36756003)(80596001)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1024; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD009; 1:sWwzpf6K4GWvOH+C5hNsC+ic6Mpy8emc64/QTTNDgxPmqE3KXquLI2GAi8YIeFQ544F5yvpVWt6lCCqhsbwz5HGu4XXTbcMXZwRi+N+uM3abKqCClF30XFUBaMoYFayoysqdK8wQ//f4v4jo+58x0TV7//5FfElsqV+cWxT1gANqfEstMvc50SmYuJM4pCFLWFxd4dgRL9aJrlz2FJ+NaTBlkyE3qXs/7Mz5i4Yg/E/ZAphNBrBQhRRxn4FU21TvL2iZ3SAUYHYp/NyVLwSaM2/5+1L4PtgOC7pZROUiJeD0SVNN6/Emfme7V2VEN7qywsMNiFSFVzlaE18syNAONHRRIPSdIWuZddjom+J0JShK6WDOTHTMDTtlWhmTbSAcagpctAX0UX+76YHYohZk5eK2Om87kgnr3DDRO4zFcrBByJ1jKlMPvwsXt+0dtDe4ApiO/eEQmi5Z8TCaQfwUR8YdC/7FkKS095MF+q+bOzWb+BvrkzOeSSvV4/G1nMj353e5a2Z9MgZFiAaLEkZnKQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN2PR0701MB1024: X-MS-Office365-Filtering-Correlation-Id: 97c5f8e5-5366-4988-9250-08d4b2d82871 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:SN2PR0701MB1024; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1024; 3:seYDAUooegux7oMkw2z978HaUIkj100xktBzeW617sHWwAoaouSOlONBevWvNVq9oqivFA0zHULCQBMbnlPKBFXJGtsfLPu9a7IAVP5oN8Z95SmxpL41zHkYtswSSW1BjWgSyXWR+Z850gVEG6Cn8V2zS6Ah9DKKpnFFdN1dVuFquNsEUSwcpYCuUO05aBixyapf8+QNc33e9j4cFIDFrkQyYcxyEIRtuuIvvzfIIuMXNoSxP/ahQS62invLEsLo81gxdY4qOcK2zYdhuG3p8aEq95JaoykZrD3JgiRytbmZ4pK57ueirbSerROUhcck0IoHnIybEc8b/ymx31e9H7g7ATKiiFZ73dsgrxZNAqZ2hZJKU+0S5kNc+Q4iZqUV0Vmp5rqTh3frtf/RyVMjjKj4gAu/nV2BbFv+DEe2N+1hw6fQQa6w7SjJcfMWsNwWkWqsgGCK8r3wCckV0Cd3aQ== X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1024; 25:XH6DVeHllISSzpusRgk90hRT65QzUQxvAJfcgG7EAyVZnKrYigqAV7AOeJBPt/bd+XH4HQz4hy7MDBO2001NaoMuvVTzTPtwyh4xMEYszuVz4M+A+UvidXS5YwXdMs2FANsjzCBe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XoULcGEKgU+Sc6SZk71qBNuErnkk3TJssTpHfXY6UR2roWI3/HZDFwDYvTtm8vrJTkJey9YHBUrQi/SFPNYwEalnZXsmXfEjZhKKC4KfEujAV80C4jOpsJKDux+a5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(209352067349851); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR0701MB1024; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR0701MB1024; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1024; 4:cj1pe0w3ICaYsV+B0TXk2xN+7+4DRsT9rY75OTJS?= =?us-ascii?Q?59+MVICFPG5pAp+kcuoKVo/sEPv824AG4YEz08MVKyGfset/u0ZMW4/EOxkB?= =?us-ascii?Q?kd6VRv177Y7cu+0kR/PU7BOZmV+wAtPFEHOTT/tgA9Olf/Aetuc8+2I6CIPh?= =?us-ascii?Q?MARsA1O9B/i2xnjeTxTlhglE11Oln4wQg6sLFQexifJ08CHT+g0GxgRr1r88?= =?us-ascii?Q?Few38BkYfnNqFnL70Nwsjn1PWHi5xoJJZghq45fphSnYMg/vtzHOYjokxbE7?= =?us-ascii?Q?ztgJmveqFbplA8oJgP1cgMVfD4TybgVjsuNRdrN2F7mrqQb318IwfrDde2YM?= =?us-ascii?Q?Gxvv5o0ZYK/0Go/EseNdfyeNT0sGzeVCj/UFJ9IuYr9P28wJOTrxC2k526F6?= =?us-ascii?Q?5HO7N4Uf3o2L0bePwepRI1kM+BxheHUqj1fE4yKQdPL37x/sIOFLaAYZvXNH?= =?us-ascii?Q?ovQRu1n95vS7L/n21tgj8hyVlMw9C/S7m4SvpxJLp7Ofwn/TUvvZCF0TL05K?= =?us-ascii?Q?Ed5QljiZ5z1bV924VawOueqBcVVgUo9CGQYSnifHqobQvxMXQh+JBdqoUwJx?= =?us-ascii?Q?XnTWy7FWbSu/NJP7sBzvOoVdZxaOvGfLy+qkLiHKWTfWPtuooNGHa30d0vIG?= =?us-ascii?Q?soLDjl/K2MmHI+AI220inrYVGE3nDzqI74GnqHGsj/h/WYCfzcSoOwgvIrAU?= =?us-ascii?Q?tDUa3vwqcdw9+i09wbT9rOEwBK16thuX/Jz3hgcw7RR1bEi4pfa+Axw5lBnV?= =?us-ascii?Q?weSZr+rJNVsglXtLP5/2ik9pbMlWpDUUqEfCObaDiXa/r+hEKx/q5sn1Xze8?= =?us-ascii?Q?IfNMYfTvv7oxpBZINTXSL4UQ3joDTFZkB6TKUE0PRE4wvWIGR34VyYGH+UBF?= =?us-ascii?Q?nDpo5zkqO46bkTHn8r3GtWkF1rpiLQCVfTt5/s9Q8Z3DSe4nub6vvS05tAna?= =?us-ascii?Q?BtoDjWj2aSZDU3drkdMlbwgwGgCx7ScX4olSVins25edy8dsb9ROhKmjAfTX?= =?us-ascii?Q?ds8QyF3VTl/FpmWfwPqrkqsM1EvZspoa6NRxB7N3JaAmLYMHw/9ghd+fYCbD?= =?us-ascii?Q?aEoJiJAskx8Qa7XlSyMli9jPy1mrPaW+3mvmY3f4k4nZncxhCoF3N2A2kf0S?= =?us-ascii?Q?GZVJ3XxmciUqv74j1QwNlC/cNnmzykDc4XhZEHXBjk2ycClfizE36rrRXPox?= =?us-ascii?Q?mjIUK1AM1vKx+sKn0JgOzy61QOQN1i6mdSc2omsg6YB83KhTKw4tgB+MdQ?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 033857D0BD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1024; 23:6fuG5RxWjBRDYH9M8vaCztXzZbWSBVswO/Viaf2?= =?us-ascii?Q?YfLT3m07EGbS646rY7FpsYqbguLWpNeiMthXB1asMIrPyNuNeMrTA+jVN879?= =?us-ascii?Q?W0HcPLH7UxOmpCJw3AetDWN8sE0ViwBqjAjq6vAgek3UZ3/fWnas0nHwcTib?= =?us-ascii?Q?ccUkbatAQ7vyXOxOZzf8Eh/og5c8l+6pA8SL2sumr35T1IKOeR8qqT9bf+OD?= =?us-ascii?Q?tUNjmO/1JRhK2dnhi7ETIkphQbp9kPK3ZSVYBg7SZYftmRjd/0Y6Uw5A94Qg?= =?us-ascii?Q?c28o7mso0YQsdi2iM7CQOE5ZGnxW4TVzUuBdMKe3bE5ZvoT2XwX4rBsQajjG?= =?us-ascii?Q?WZ/CFDfWWid2K6j2NNZOH+xjs9vmOzSZ3RzWSMBblhLmB3UCi1pJq9iPvjOw?= =?us-ascii?Q?Dw3tJ4fub0nyYwHgTZ9eYt4U0sut9f0eLYjJQMJ3pTIcq9res50M8yJB3HHH?= =?us-ascii?Q?SxRwtiVsd8F8h1LQs84YspDsqwrpCVq7RFZ89jPOI9cylT6owa0k+LCoxxB4?= =?us-ascii?Q?zifx9DL4wu+X4653XDj3MOR8qj4HIPOq7lM6mzmb98qSlwLX9hhPmf8TxUBC?= =?us-ascii?Q?uev4rPSmWIwFSjDurBPYC2YOphTcNPLbufNysLg2Aq2r3YQnAlcnIShYdFj3?= =?us-ascii?Q?f6b4e63J7tfuz4QugRbpa4UhX2ePvRoNhMTERBsxxChalQvCkdn3JF1DULil?= =?us-ascii?Q?tpneOMluhhOPRBK0RVinbp+xdETt2jqhNKBAZoqM+OODPiFb8rkeEjcCVjNJ?= =?us-ascii?Q?46s46JPgZeSBeqcjxsN38Jt6x980DaV0B68O2rD+YRkPRp6LNgamIomfKh+4?= =?us-ascii?Q?JBYQXD9qhngvZlvYPsi22RA7L0keB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VvhM6D/3FP10FxaoJQjFrHTn3DynR0/PtolFrAqcK4FhU53xd+pxSV0sIgG9XkzhurQSytBYRQQ56cQkEek7y+F1qnaRntoWYhPbAVgplrmly/96aJx4VTXYECSHY8+HjRnyPuA+fdr6ahpxWQROPbvT/exf9BbkvuzpkX9gUrnTxPEJdQBa4SR9+ad5sOAX/rY9NhcfQy9jdkbOlAPnn1e9NPQ4GggMwQ0B6lQtfbhDIq6oqW8dc6jsBgPyXIfPlD7v8zOcXLxa5meFLCZuK59gunxUYW654ouTwMnifp18ZpberEtNUwswte8pSRphtryBWJgsWRdI; 24:IwFxAkXAyTVMRoyo6tnQnSeVtSWThOWUNm2M3QJagzWyXrVt7PVIqb/+6v5W/5jq+bg0MLjaOzIoj8pbybWGWaEnYYiTGnxhgbu5xF+XiQc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1024; 7:15cnotF0AqoaaFujoqcl2D+Wk1qVEOZB89asc6BLRXkfEfAidW/FTZ4F1fKE9Kw4UwhvLRyuGXAiRPwV1q2AD6OvOYZeOq9kPv8z5871eeF6v39kK+5Xnm9LkKG0YrpNDHqF6HVatC4iRxasjfqLMCK0DBY74mEH3G3x20Y5AAlE68SALTwEeANCkKqwpoGwTbRhcobeq/7y1nTzfVfCQJte0d1TefmjVxQPaYBvTB8j26TwEoVjvg/Db3TAe1DoJqlg3R4sbbR2tw5TBWBYA5NqBhCkZSpzsBHRUfTshL6o456Gh7LW3FnYd311x1+L/o8OzpRayTvnzlBz8s6Lpw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2017 03:48:01.2318 (UTC) 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: SN2PR0701MB1024 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Add fw_started flag to qpair to reduce cache thrash. This reduce access to qla_hw_data structure by each qpair. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 21 +++++++++++++++++++++ drivers/scsi/qla2xxx/qla_init.c | 4 ++-- drivers/scsi/qla2xxx/qla_isr.c | 2 +- drivers/scsi/qla2xxx/qla_target.c | 9 ++++----- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 18b37c864250..0dec148a4580 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -3262,6 +3262,7 @@ struct qla_qpair { /* move vha->flags.difdix_supported here */ uint32_t difdix_supported:1; uint32_t delete_in_progress:1; + uint32_t fw_started:1; uint16_t id; /* qp number used with FW */ uint16_t vp_idx; /* vport ID */ @@ -4183,6 +4184,26 @@ struct qla2_sgx { srb_t *sp; }; +#define QLA_FW_STARTED(_ha) { \ + int i; \ + _ha->flags.fw_started = 1; \ + _ha->base_qpair->fw_started = 1; \ + for (i = 0; i < _ha->max_qpairs; i++) { \ + if (_ha->queue_pair_map[i]) \ + _ha->queue_pair_map[i]->fw_started = 1; \ + } \ +} + +#define QLA_FW_STOPPED(_ha) { \ + int i; \ + _ha->flags.fw_started = 0; \ + _ha->base_qpair->fw_started = 0; \ + for (i = 0; i < _ha->max_qpairs; i++) { \ + if (_ha->queue_pair_map[i]) \ + _ha->queue_pair_map[i]->fw_started = 0; \ + } \ +} + /* * Macros to help code, maintain, etc. */ diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index dcc306121a3d..e6a1f9ca0e95 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -3207,7 +3207,7 @@ qla2x00_init_rings(scsi_qla_host_t *vha) } else { ql_dbg(ql_dbg_init, vha, 0x00d3, "Init Firmware -- success.\n"); - ha->flags.fw_started = 1; + QLA_FW_STARTED(ha); } return (rval); @@ -6841,7 +6841,7 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *vha) ret = qla2x00_stop_firmware(vha); } - ha->flags.fw_started = 0; + QLA_FW_STOPPED(ha); ha->flags.fw_init_done = 0; } diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 3c9f9aa7f2c2..40385bc1d1fa 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -710,7 +710,7 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) ha->isp_ops->fw_dump(vha, 1); ha->flags.fw_init_done = 0; - ha->flags.fw_started = 0; + QLA_FW_STOPPED(ha); if (IS_FWI2_CAPABLE(ha)) { if (mb[1] == 0 && mb[2] == 0) { diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index cbe6ff9f663e..e25f1fae2c3d 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -3086,7 +3086,7 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, else vha->tgt_counters.core_qla_que_buf++; - if (!ha->flags.fw_started || cmd->reset_count != ha->chip_reset) { + if (!qpair->fw_started || cmd->reset_count != vha->hw->chip_reset) { /* * Either the port is not online or this request was from * previous life, just abort the processing. @@ -3096,7 +3096,7 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, ql_dbg(ql_dbg_async, vha, 0xe101, "RESET-RSP online/active/old-count/new-count = %d/%d/%d/%d.\n", vha->flags.online, qla2x00_reset_active(vha), - cmd->reset_count, ha->chip_reset); + cmd->reset_count, vha->hw->chip_reset); spin_unlock_irqrestore(qpair->qp_lock_ptr, flags); return 0; } @@ -3206,7 +3206,6 @@ int qlt_rdy_to_xfer(struct qla_tgt_cmd *cmd) { struct ctio7_to_24xx *pkt; struct scsi_qla_host *vha = cmd->vha; - struct qla_hw_data *ha = vha->hw; struct qla_tgt *tgt = cmd->tgt; struct qla_tgt_prm prm; unsigned long flags = 0; @@ -3223,7 +3222,7 @@ int qlt_rdy_to_xfer(struct qla_tgt_cmd *cmd) if (qlt_pci_map_calc_cnt(&prm) != 0) return -EAGAIN; - if (!ha->flags.fw_started || (cmd->reset_count != ha->chip_reset) || + if (!qpair->fw_started || (cmd->reset_count != vha->hw->chip_reset) || (cmd->sess && cmd->sess->deleted)) { /* * Either the port is not online or this request was from @@ -3234,7 +3233,7 @@ int qlt_rdy_to_xfer(struct qla_tgt_cmd *cmd) ql_dbg(ql_dbg_async, vha, 0xe102, "RESET-XFR online/active/old-count/new-count = %d/%d/%d/%d.\n", vha->flags.online, qla2x00_reset_active(vha), - cmd->reset_count, ha->chip_reset); + cmd->reset_count, vha->hw->chip_reset); return 0; }