From patchwork Wed May 10 16:39:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghava Aditya Renukunta X-Patchwork-Id: 9719249 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 0515960236 for ; Wed, 10 May 2017 06:24:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA1F6284D5 for ; Wed, 10 May 2017 06:24:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD52528552; Wed, 10 May 2017 06:24:14 +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=-5.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, 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 782E1284D5 for ; Wed, 10 May 2017 06:24:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751639AbdEJGYN (ORCPT ); Wed, 10 May 2017 02:24:13 -0400 Received: from mail-by2nam03on0043.outbound.protection.outlook.com ([104.47.42.43]:51300 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751552AbdEJGYJ (ORCPT ); Wed, 10 May 2017 02:24:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=S/3u0t2BmrRa1zVV2XcbGTlVyfRJhX+n3zqK3ESbWSo=; b=JV3a4pRCVPpH2B48BoPcqnCAGulg8zJff9uh3cmpqD2wBaVYDUaxiXE+ukBr8OLaVhlL4dZhFiyHnYhD1Lh8n2xNjOx6vb2FOKa4Yh66E6MfqryEkLVARPGxEl7t8f30C6QJ3TzdDhysMmG1uy75P/f+4BN6j81drOjybf+Nj9E= Received: from CY4PR02CA0034.namprd02.prod.outlook.com (10.175.57.148) by CY1PR0201MB1898.namprd02.prod.outlook.com (10.163.56.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Wed, 10 May 2017 06:24:07 +0000 Received: from BN1BFFO11FD011.protection.gbl (2a01:111:f400:7c10::1:131) by CY4PR02CA0034.outlook.office365.com (2603:10b6:903:117::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Wed, 10 May 2017 06:24:07 +0000 Authentication-Results: spf=neutral (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=microsemi.com; Received-SPF: Neutral (protection.outlook.com: 208.19.100.21 is neither permitted nor denied by domain of microsemi.com) Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BN1BFFO11FD011.mail.protection.outlook.com (10.58.144.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1047.9 via Frontend Transport; Wed, 10 May 2017 06:24:07 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.339.0; Tue, 9 May 2017 23:24:02 -0700 From: Raghava Aditya Renukunta To: , , CC: , , , Subject: [PATCH V2 04/19] aacraid: Set correct Queue Depth for HBA1000 RAW disks Date: Wed, 10 May 2017 09:39:38 -0700 Message-ID: <1494434393-17261-5-git-send-email-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> References: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39400400002)(39850400002)(39450400003)(39860400002)(39410400002)(2980300002)(189002)(199003)(9170700003)(189998001)(36756003)(50226002)(5003940100001)(86362001)(81166006)(107886003)(47776003)(2201001)(53936002)(38730400002)(356003)(50466002)(54906002)(104016004)(8936002)(305945005)(6666003)(77096006)(2950100002)(8676002)(478600001)(106466001)(5660300001)(4326008)(76506005)(2906002)(50986999)(76176999)(57986006)(72206003)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB1898; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Neutral; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD011; 1:Nt2u5Xw3H3srAShcR05X9w7LUq0cKMKKxBctynItyvX4TdKdfXZhT1JGtuNufKxe6+8FdNzXRIY8ClDtOtchM8MM1JiieYuaoTMM9gW8ncz5jbrZTcpMFZgY7Vu3L7FccpSDTLTzNoW9qV9C1Ig+SlSStJUSKe9YTtnWZtoFDVksFWp50D/lzREN/8B55TsMAZTY3LQE8NytT+nSwMwEz3FpR1J4dGnY6uG7dVThe36QrmBnK9kCuF1y4ssy5kdZ1YFrHa1qRvDkIiwkXLa7JatGorece357ga9wUOW6sJ/9EWyGAtLwDUANtAA7WsI+3x/LPxERIrfQlS1rFs6/vWpYel6EmUqWo+6fz8iHao3WUiLK3jBt7tcCr86jpkwT8wNVGls3qRDwZXq5RyLbTKqtZpJTLrZPLbkK8xvoBplHSknXEMc4FwVpfmax/ekT2Kv1eHB7YvekOqcM47SzsGDy6FjgonpYv1qkegojoicIMSQwj9Ts/p+ozikn0yxpI9nzE1sMSLVE0eOTrjZPHUZyLZy8zN+6bT1WPnTyswA8vzFwYe7oxlQLOyDDZdwEOLqHemyeU60c7afyCp4vcg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45c76505-3c41-4954-f82f-08d4976d29c2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR0201MB1898; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1898; 3:67S35Jwok+W9iUU/duMAaJpZNvOiCJlZhEYoy9z1RPkL8AjNJZMMRjRMmCr4aE4orf7f22Cc2MWK0DOFEOuOhDJ/0Zb4fW/pAmGV+vxOpyJ9WsprzT/dLKdFqms0CI8QKf1almkWSyoFb17LmLkvIF7SCFyCfWsUB565f+zWgRk8Vj+Y92h04h29dyD2jS1Is8dH46FEfvpPugOpKZ2E4G4rcNr6MDY+rv60nj8+jOkwhNtogr3jOFGnymDdYapGn9z8g3KYyrGWSY8Iq3f1cMyEZXRyWiwPCm4cAGjQpUnRymyfT2gc/B2W6fmHdmZTIkt4rb+SOQoUJWDLKDPm7iOjtaNJOHOxzRD5N3c7vDQRzon2Kfd7oTPvFXYsQs+XoVbAQ/QK0P5TM3JsAJT2AfxBqG36q+zGbCpJh/yohfQbrHMpRvkJOgIT9ufeVy6r6bi0a/iDHvefwPTlCqWvHQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1898; 25:6SA7y4R3nqpp40Mq6nosxgbhPfxXMZ+CSNMR5naXHcj0Tyqezg/p9e+rzMGqPPXP2k3CqMuzoE7aM3IUp3Dc1Km9p6w/KbP00KJ3a54SaSL6xPn5h6M2rOh32HOfYx6Pl6fSn0WjNp5+jbCN3mjFIEvzp5Lh9bSvufiow5WjKFPum8DdKsa6ug9cgDj+Oa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uAkeD9g7pNcrwr/LHp0y1UyBFw8Uz08yPnf6dA+/sLFyYY8UXvTxhzyPN40GiMg2PiVCiuEJ1IreLs08 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13023025)(13024025)(13018025)(13015025)(13017025)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148); SRVR:CY1PR0201MB1898; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB1898; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1898; 4:uOlp8ho07TbQHzSyuGk5SdxRrKU4aABQqEtlCFd41gxkwvFfj77k6QxTCGfMtGVy/aaQ7WnSF12AZvQou21kavJ41LlFQk6MCvenkhwYa7grj8ukLU/+PkUgd2+0KL4Ol5TsJgBWYMM63eENqRj1pWx35qWH2jkpzKjsZMuzORbDV9vZsWxJEEVHEkMY3HVfn19UjjePhtNf3VtCBOfnBRbhUDqPmeE7Fh2ZmFdvIj8ocjiEj30k1R6JP53nJLSWJJKsOYuvf0X/BMdnVT+Edjheoo+jj4+i6tfWgnK+tjVd+FqqHup4llaH93O1khquenDPvgEF86cCKadnhPibAA4QfJkDVj8e1WAUb0OQBRHWfGd8A0PlVTU6C7EKJAe27Uhcz3TL4J74K0CuPAQceuIQx1QNWx77scMonge4RzYFFQ46PyiseqYoURVT9PQgN3qcEO4OOU9NEkYcjxEBQv45NpbUZ7bEssR2U2UtHSGFo0j5yvDT65rqzS8EcpaLeMCFFsyngpu5ZafPAPr3aV2qeCXX7YkdfmOMF+qv4hgTWVpZsafS3iogQk8s6xB0GGT+wmZ10PESlNLxzGZ2BUIGoZIRyXyz4u18dGIcHDTh6maeTUYysYX4ptDuj/0QlgQL4WbC/xjvAoyKH82FAzKruJxkwWEY7lPX9Cw8d50Aiinz0fiK8LgNAlQeP1kvqRDbgaAr6m7pU//m4km/k5M4FQw9vhERnhacErJtuDs/2pDcFA1eAgRZ0Z01tDdELCxLkv2Hwa1eKbioOLJf+qZJxsYddkwSZaTF0tbgxaKxXO+g3DxdhltDDijsHfsiBtRqCMzI1eiiqsKP3D0OYAkMzsy8ubXlaKKqE3njb/kYfVrOgiZB38oFR57EhLXjbNLcrrxyT1QGJisaqTjPsDNsAGNQeqWwr8eBQcs0 QrBZbhXtCNgvgQ2ccdhpOTw5 X-Forefront-PRVS: 03030B9493 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0201MB1898; 23:0EysR1vXUS3pLN7thjpKtvzMWd2KjObdE98jxXw?= =?us-ascii?Q?qMCclSaB+GzE+psij5HIDAaV93hNbQ+fckXVOE16yq5c5Bi9FtjWGu3qQtmu?= =?us-ascii?Q?qUz1mHW8pMuCE2y3Y7xmMc2Ya8s9l6WwipUtMh8+j8eD3WEpslrhnkRPmmJv?= =?us-ascii?Q?ptxglCyIB3inr7SSgHAc+g8BNdmTbE1S66dezrpa3NN21R9JmhzVGgTcKX2j?= =?us-ascii?Q?FJBjtqm4UN7QLk/KlGxblsyw4mbz9VsDuNWHRhSd/15VZ02xuACVHWexEHs+?= =?us-ascii?Q?xI4WBdud+aQ7ynggdRVxYUE4pzpnkcpGWt7rt2d8Zp3cvB+C50pg55HkXcFq?= =?us-ascii?Q?dLY3zKHu5g2wd+UspOZZdkst09x+HnQ7e20JooCc392pNrRfgSwghPh1U5nr?= =?us-ascii?Q?2JPCzxDDMQdSDhATvpc4NvTtfmcdWeG5CnRebQZWehVhnxJ1sByZozG5qmoq?= =?us-ascii?Q?FM6nio36xvZYOXVJVZe1UgneJdFXUfniHPNvbkPZdT45ZHtf4ulBZlgOm1ZE?= =?us-ascii?Q?Y3wiCS9f6G6+7feWBJDj013QX3kja8nXvihMl3c6NfA8beEzvCFsbo9S4Q5a?= =?us-asc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ZLANpQ7m8GutiKw1pKjveM47EhhSUFVor5eHo5brqVyUBGdSDsTaQxO+RJUImgSy6jWt9byvgJDjjTo4DCbRPpX0iL9ccJnEvDRFeG/73mgehp9tFUVr9oSd4OcN8UO2DhD02CVKneP1t5G7EIoF4pIQkSqoXwcnboqF2qAIKxhts=; 5:96Gya85vN6R01vRYFuy03uIoaR6CxUIFx15tTM5CCNXMNre9FOo2Yu3VpV78xFa7sEf3o+R2t7CC/E/sNYFD9PD5HCB2FKAhHdOGdh56w4SL4UtmJzWXY30EtcJdTkiOvV5+jAo415vMxs/vvFsi/g==; 24:wtjz7qlDJCqwCbo+4R+yUholcTIO/oBdqon2HJFgzT6UzqrcWXljwHlbWpb3BuYr64QlIXKegv+NRt0w0DuPo8GYYOFWycCJCdGZrhf9CFw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1898; 7:OymB8q+1UeGGpYCLTroYY/zWwRqKwr6HUUqu9PEi8jfsR3KbVuG+0m4gRJ3+RXCtKQvmaqAGWo6B2XwEaXShYstQSNPvgF2krTmpRjSytxEIi8Nd6wGcpf5OIOQ4UzMlPOsSHjIpbOvUWwhLh1kaG7bSe1apiSqbVy2AwKOlwESR8ZHbrNxrjWayt+UUKZwW9anX4sX6fp2Wetp+1K3lloBOdlPtQ4vgJLOmLRcVUnD/qNP6S1BmIs85UqrbTD8d5el3Yb5Kusp9vxiimrrfklqVkXZw55JMZsXvvTYL6exq1WFlstPwtM7/p0hxfIxKjwouovU9nd34JD84Z4o5Lg== X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 06:24:07.0679 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB1898 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 The default queue depth for non NATIVE RAW disks is calculated from the number of fibs and number of disks or a max of 256. This causes poor disk IO performance. The fix is to set default qd based on the type of disks (SATA -32 and SAS -64) Signed-off-by: Raghava Aditya Renukunta Reviewed-by: David Carroll --- Changes in V2: None - drivers/scsi/aacraid/linit.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 5e1a2d6..9ef98e4 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -405,17 +405,23 @@ static int aac_slave_configure(struct scsi_device *sdev) int chn, tid; unsigned int depth = 0; unsigned int set_timeout = 0; + bool set_qd_dev_type = false; + u8 devtype = 0; chn = aac_logical_to_phys(sdev_channel(sdev)); tid = sdev_id(sdev); - if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && - aac->hba_map[chn][tid].devtype == AAC_DEVTYPE_NATIVE_RAW) { - depth = aac->hba_map[chn][tid].qd_limit; + if (chn < AAC_MAX_BUSES && tid < AAC_MAX_TARGETS && aac->sa_firmware) { + devtype = aac->hba_map[chn][tid].devtype; + + if (devtype == AAC_DEVTYPE_NATIVE_RAW) + depth = aac->hba_map[chn][tid].qd_limit; + else if (devtype == AAC_DEVTYPE_ARC_RAW) + set_qd_dev_type = true; + set_timeout = 1; goto common_config; } - if (aac->jbod && (sdev->type == TYPE_DISK)) sdev->removable = 1; @@ -470,16 +476,22 @@ static int aac_slave_configure(struct scsi_device *sdev) if (sdev_channel(sdev) != NATIVE_CHANNEL) goto common_config; - /* - * Check if SATA drive - */ + set_qd_dev_type = true; + + } + +common_config: + + /* + * Check if SATA drive + */ + if (set_qd_dev_type) { if (strncmp(sdev->vendor, "ATA", 3) == 0) depth = 32; else depth = 64; } -common_config: /* * Firmware has an individual device recovery time typically * of 35 seconds, give us a margin.