From patchwork Fri Jun 2 16:12:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9762967 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 593EF60365 for ; Fri, 2 Jun 2017 16:12:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BF8928531 for ; Fri, 2 Jun 2017 16:12:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40D3828569; Fri, 2 Jun 2017 16:12:38 +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=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 CEA7728567 for ; Fri, 2 Jun 2017 16:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751215AbdFBQMg (ORCPT ); Fri, 2 Jun 2017 12:12:36 -0400 Received: from mail-cys01nam02on0053.outbound.protection.outlook.com ([104.47.37.53]:7808 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751200AbdFBQM3 (ORCPT ); Fri, 2 Jun 2017 12:12:29 -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=fV4gug1aIh38lXpBQhpDDcIKCIIgaWje/xBKlO/1n88=; b=SBqBmn1wmGYtO1MvjGQrsdq8tGzA872T96hGFdNgI26j6E6U8iOMGg0b1EGU/Wn43CBYYky1OSz1D6H9r+RxfULPDUKozsFTdF2XiMg07YyETuu9j3VjFEEq+cpm5j1i2AEB45QzdeQW4GQYqX1s/InIcDvIMUGxxp2ejmFaL5g= Received: from SN1PR0701CA0065.namprd07.prod.outlook.com (2a01:111:e400:52fd::33) by DM2PR07MB430.namprd07.prod.outlook.com (2a01:111:e400:243a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 2 Jun 2017 16:12:27 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::114) by SN1PR0701CA0065.outlook.office365.com (2a01:111:e400:52fd::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Fri, 2 Jun 2017 16:12:26 +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 BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Fri, 2 Jun 2017 16:12:26 +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; Fri, 2 Jun 2017 09:12:09 -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 v52GC9eJ006747; Fri, 2 Jun 2017 09:12:09 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v52GC97d006746; Fri, 2 Jun 2017 09:12:09 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v3 13/15] qla2xxx: Accelerate SCSI BUSY status generation in target mode Date: Fri, 2 Jun 2017 09:12:05 -0700 Message-ID: <20170602161207.6660-14-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170602161207.6660-1-himanshu.madhani@cavium.com> References: <20170602161207.6660-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)(39450400003)(39400400002)(39850400002)(39840400002)(39410400002)(2980300002)(428002)(199003)(189002)(9170700003)(42186005)(478600001)(4326008)(105586002)(106466001)(54906002)(38730400002)(36756003)(72206003)(50986999)(101416001)(87636003)(33646002)(76176999)(356003)(2950100002)(6666003)(2906002)(5660300001)(47776003)(8936002)(81166006)(50226002)(8676002)(50466002)(305945005)(48376002)(86362001)(1076002)(189998001)(80596001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB430; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:EjrihsqcI30/B+BcGqNJmSXktVOnbXNjy4a7vSkJ/gbWpCpwLT5WOQLsG5LptxtImJZ/V3jQeti7UBqLhOPL6Qphs08iKL8wg6q5VGG5JJNrg48kX3JRUeDeDxvErOlEk57cpg97ePM8BlXLxS4Yk2BBDM2U8GXu8CHw76Z/BKWvnLjw5RZYtBsch0B/H27yaxXV5If7m8Muf4UcyrTSC2HIrnJjwfLGDXimO6Q/MoLzmBO2xuB6KrqAY9heMpxZO90tDvSZngODf7Dt8Yp089ndSseW2Fd23BaxR8jni9hKfIF05MHcxQ0LrPV3qlwFUL5lTvQrmlgv3UFl9pfdWpVYS0M8PSt7VWopekrvZ15BniR04MN4eB3wCGfI4RtUEzEUDqtXCGev3D3GTRArA148gC4DcVmeLsYifrMXZYFJoZYGGn6CHLX0XlfQDyrJBoiPjRgnUVlICtR2VQs7uWrkelAmyivHEDEnFBRjtzTPpJy9xkx62siwQ9H1DC5SmbbTHvb46TtbvDHLgFo8gA== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR07MB430: X-MS-Office365-Filtering-Correlation-Id: f2014847-1894-4799-5c67-08d4a9d2296a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR07MB430; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB430; 3:otVWDoky3NJDxsZtW75H68ZlCOc20vEZXwLAG+H/GMCacHToAbS2cUgCu+MHK2VS+8hA/PSyePkToj8MGtq9uNbjWICvkMMbzVN9spMqUJFQ3LDOR0x5zKnMxQOdg4ayscQxC9HyfGpLG8xY920omcc09bEHpF+gbSfxWIOQVJaXnk/2VVHV2LoIId6y+6pLM5LcdLywYoSzXgU2zg8yfCTRCPQgkSJEW0si+ZoIKxAjXTZrZFfsw33TV8+nvrXKuitF23eKG4Xo/xSw0v1UY8mkr1BzYPHhNoq8NY/min/kETQsSqpg23PDBIw8v8VWpSQKE6CPtoTN/PwqWdaXeWO6uNklH2BeXlVktoFY5T1IwaeTuULrN0SI4+W4Y7JK3oJOMmGKWkTL5voy/p/iMkEfvDXGCzdkWePVB6uAz6ZbfB2hm8T2Y1bOrCt6LWGRo0n4xMvyIRhOvWgnq8kBnCI5V/1f2KbCUb84xZETwZQfeIQQ2nWhAL8cntpFqwTV X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB430; 25:vljBsJ8erYTeUjiweD7e5X5/BA0lH8EDhR2m+nHZ8pjetkpNwI9P2ytNI1JBAV8y+8XQA8hTzki5LtuPj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Z+RGrJJsIIspY/mGBYkLRtd18CDdzUq4J6qyty1vR24j9t6hiN+hBkFXE+m2AtsawNMwAZUqSWFoB8D1AChwicYtj7XCPL7fiJSBuqneDn95MpbKSrRi+skwneKqFlV0EXJgBeELML7dbzpLpQ1QWpFTRiy1MWb5YVfr5D X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR07MB430; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR07MB430; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB430; 4:9EvRWhyJ+SgiE1mHimqsF7eW39Ejvd0POVCVlAxfdlF?= =?us-ascii?Q?aInxiKrPnX8bIZ2qwh64ojsrmFDK99C2BKXDxxyMzP1vRx+MsthTkgvHXgOj?= =?us-ascii?Q?OHXBI8GozGyMudw5gsJsOU7tcZdf/kZj1VAoZnpdJaKdIE9t1pJfOdodYj9o?= =?us-ascii?Q?cOWNFJWZCB2pB2R95aFloZgPGTNtoZ/1HeM+o5mfquZLJjo0xFenNbsrzlIK?= =?us-ascii?Q?2gwwwrLnp9JXA4LUJ+bwc9JBwk6hirj2+FBOzTlBCSuWhhaewanGjy8wozwf?= =?us-ascii?Q?8osXAdXZiTwdwXyE0LChhQDLbuSMmMiqihxxCGro5gMzTaYdgPCT3/7Fjihf?= =?us-ascii?Q?54dROWl/+GDpQxYaTnVy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1O3R8VktbrZRH73AU8s1KbqkJQ?= =?us-ascii?Q?j/12kYJft01XtG3GoIQkdzhv0O8EarhzgxEBFqxekIN85fRlx4eNZ0vp+hbL?= =?us-ascii?Q?38LQg4cdPnOM0fDpYzPO93ukD21h6iK8vRGNMFqxSnN0d61rNUY11kHs3tRO?= =?us-ascii?Q?gWOL+MlCd7MSbITb6GcSYoJ+hROnp/EM23cKqaq6hb9VgZk3eRzwmU/bfuyI?= =?us-ascii?Q?D1fKuU1Ds0Rx4mfotaACAErS6F?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB430; 6:MfzxswYp1UeQrnuOsuod214ZPW5gN603T0D9DXYEaJMitXyqkOKTRddoVfJOk5L0dozx4/bRGOA/S/aI3rpHlTAMv1O8fi5v3i4qTpTAwvG0Zap32GvTCzv5nUvE4g2DHQhlh2smYiWQcksm1xzzFEp1YciEsnGlA5z8IdmW1forZF3GBEKtZoIolukWcvaDF81o8m0bBYx1VYMicaUUPHkEiUWlB+/PiIHS48dRZPTDchaNdI8KJMo4mfS33I87El1Q6l0hP8krMR/uPRVgAPdLWxWvgLq+FL006bz4fjon+ogb9HYsQIWdXcPYG34eVb2fksNH+QWQwVkuDSdfLQMhush3T8a4//28bd4+SpH3vrZAiyvACLQmL2Zm6f8AOFqbCl1sIUb5zcYmtXTneshVUkPQWF37b+6fRB2OsSDaUguByYL87tdqLJS8Zm0hqBBmSQ3FypPqZg/VqCM+CiXYd/hg4A79FFy6Len2pmc4eMyqEcttJVCTUmEyhjOEPFFOXhDHYtD1DbfB7YDVGg== X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB430; 5:TP9wTq9zLifxraTCq4bYgtpgIeL2HQYj7FBGtcyHxICGz0d1gUftmR9Pi+vHkPY3ZZ9hjjk0fMh6mBr/XyftVL4D1kYsjLq5+VQD4FwAC5/i6hacoxEW4tyQcHkKt6a6m76PI6VdA7F7udCXPCacFKNhnQxupA+tF+c0Jwqvk5gPB4Yd2oGHRZpXUVYYlDrtokl5+5UZnJID/ID4lHz9WXB3i3lsvBQxfSnRwIFqnCUK1kuaAQAalu3S1G2XpduJgWBFEKk8MhsFxPyernLSk4B+bru2fLtzSy1EAzFXJfJM65M+9zd+dhFCaw4rKIuxBizrugsGwMR/dgwrsZ8xCrYq7aaBlwQhFzIdcEPy/9YZWw5R4CFUeSVIhCAFkXnCvWeV4ECdw9LtWk0XttK4tL2tVNWFoaH+EkhcixScqGEkdnQBMLeiCAPwV22cFs5sOpfve8M53IrJvd6uFG8cQjpi1s7+0DMqYMo1dlPTq3mx2mr+26ZqrQyOtDeIM7j4; 24:Qjsq68fkFufhzql1JfC1DLxiw14bxcjOvaD3N0dBTIe8HjX/Vgf4toPzBbu/hMN3hjiBHcwAQwaB0pLGTBGWhBSJevTvTys/GzDoVNIIP88= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB430; 7:RtHrKsaRCtkV7MnMAMUJirbW9LKGFRZDI3VCM4PXbUomo+TisU6JHnMN1lbXJyZVJvhKI1sg1eBUJGxMUGXnHsxSGvEShodfDcPe9K6gx7tzsMIehWrh5jkzf/PVSI9ZU7RDqNbLXsxeUJxIl0NVBVWCAAHWFcpxuWLaRaVGk/AHLT3c18p0JWWbZfRMlGIaUZdHnZ7HoZ4A7lIkvN3QbZXkw4gcX03CyFHYw0uW6zFW9vOyFUmaXt8DChGOgQ8492C5NbGx4cTQjcbYKwaeNydTISv8mujJxJjsPsNXOt7IwnbPQtsRwBeUfNgB8KRvk/x2xsDlLxz6DNUn8/SpUw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 16:12:26.5713 (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: DM2PR07MB430 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 Accelerate generation of SCSI busy to let initiators slow down when target is running low in resources. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 13 +++++++++++-- drivers/scsi/qla2xxx/qla_mbx.c | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 08000aebe8d4..436968ad4484 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -7374,10 +7374,19 @@ qla81xx_update_fw_options(scsi_qla_host_t *vha) } if (qla_tgt_mode_enabled(vha) || - qla_dual_mode_enabled(vha)) + qla_dual_mode_enabled(vha)) { + /* FW auto send SCSI status during */ + ha->fw_options[1] |= BIT_8; + ha->fw_options[10] |= (u16)SAM_STAT_BUSY << 8; + + /* FW perform Exchange validation */ ha->fw_options[2] |= BIT_4; - else + } else { + ha->fw_options[1] &= ~BIT_8; + ha->fw_options[10] &= 0x00ff; + ha->fw_options[2] &= ~BIT_4; + } if (ql2xetsenable) { /* Enable ETS Burst. */ diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index bebac42d9e9e..f02a2baffb5b 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -1048,6 +1048,8 @@ qla2x00_set_fw_options(scsi_qla_host_t *vha, uint16_t *fwopts) mcp->in_mb = MBX_0; if (IS_FWI2_CAPABLE(vha->hw)) { mcp->in_mb |= MBX_1; + mcp->mb[10] = fwopts[10]; + mcp->out_mb |= MBX_10; } else { mcp->mb[10] = fwopts[10]; mcp->mb[11] = fwopts[11];