From patchwork Thu Mar 28 17:10:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10875453 Return-Path: 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 E268213B5 for ; Thu, 28 Mar 2019 17:11:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C077528CC9 for ; Thu, 28 Mar 2019 17:11:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4C9228CD0; Thu, 28 Mar 2019 17:11:41 +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,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 4BC3F28D4B for ; Thu, 28 Mar 2019 17:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727677AbfC1RLk (ORCPT ); Thu, 28 Mar 2019 13:11:40 -0400 Received: from mail-eopbgr770071.outbound.protection.outlook.com ([40.107.77.71]:44991 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727182AbfC1RLj (ORCPT ); Thu, 28 Mar 2019 13:11:39 -0400 Received: from DM5PR07CA0098.namprd07.prod.outlook.com (2603:10b6:4:ae::27) by CY1PR07MB2537.namprd07.prod.outlook.com (2a01:111:e400:c636::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.15; Thu, 28 Mar 2019 17:11:37 +0000 Received: from BY2NAM05FT027.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::208) by DM5PR07CA0098.outlook.office365.com (2603:10b6:4:ae::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15 via Frontend Transport; Thu, 28 Mar 2019 17:11:36 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by BY2NAM05FT027.mail.protection.outlook.com (10.152.100.164) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1771.6 via Frontend Transport; Thu, 28 Mar 2019 17:11:35 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 28 Mar 2019 10:10:30 -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 x2SHATP2026476; Thu, 28 Mar 2019 10:10:29 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x2SHATlC026475; Thu, 28 Mar 2019 10:10:29 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 04/15] qla2xxx: Increase the max_sgl_segments to 1024 Date: Thu, 28 Mar 2019 10:10:01 -0700 Message-ID: <20190328171012.26425-5-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190328171012.26425-1-hmadhani@marvell.com> References: <20190328171012.26425-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131982666963825143;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(396003)(376002)(346002)(136003)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(97736004)(336012)(8936002)(81166006)(51416003)(8676002)(47776003)(85426001)(81156014)(50226002)(2906002)(76176011)(1076003)(305945005)(69596002)(4744005)(80596001)(86362001)(26005)(68736007)(87636003)(498600001)(11346002)(2616005)(54906003)(6666004)(53936002)(356004)(4326008)(26826003)(5660300002)(126002)(16586007)(446003)(50466002)(316002)(105606002)(36756003)(476003)(42186006)(14444005)(110136005)(486006)(106466001)(48376002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2537;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eee9d6bc-c27a-4602-f8f9-08d6b3a06f58 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:CY1PR07MB2537; X-MS-TrafficTypeDiagnostic: CY1PR07MB2537: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0990C54589 X-Microsoft-Antispam-Message-Info: 8CeDfWQ+j+1PfiBOOSmdcrkH2oDfd0E1e3yCPiF1WxrN3kRicJaRHaEkdurxqo4y1tSG8Nw3CRe5z7e8Pn/8EB82Uf1dB1Og3P390UcFVEiXIvzNSp0NLkBwwrp7kNtqQIduzlbLN4jRb402GYVInpreP9Q8qXfYGvghdqFRA9bGFts4Xis9Y3bc75XArdJ3JCg4d4xkJtwtYj3dSAhHt0NbHGxfXtplx2mrg2JiXvokjZBGelUIxfgpmsRskbU1YqpO53CDIt1Dir/Ee1Q4Ijrjdrk5erXrK9OPK4bo4dowuHZDYPXB+181lNvgmIV9PuDQtKXinWgKSPjEfCy2eCsatLwTEyI0LIQMKAUghk44WoAGoBTD+TCLfm9/vv/Fiimz+3fDnFMjjKz5NGGCY8CUGDF3ypikNm+xOgI2pWw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2019 17:11:35.7449 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eee9d6bc-c27a-4602-f8f9-08d6b3a06f58 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2537 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: Giridhar Malavali This patch increases max_sgl_segments value to max supported which is 1024. Increase in max_sgl_segments will support larger IO size from driver. Signed-off-by: Giridhar Malavali Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c index 41c85da3ab32..cc2afc21a30d 100644 --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -573,7 +573,7 @@ static struct nvme_fc_port_template qla_nvme_fc_transport = { .fcp_io = qla_nvme_post_cmd, .fcp_abort = qla_nvme_fcp_abort, .max_hw_queues = 8, - .max_sgl_segments = 128, + .max_sgl_segments = 1024, .max_dif_sgl_segments = 64, .dma_boundary = 0xFFFFFFFF, .local_priv_sz = 8,