From patchwork Tue Apr 2 21:24:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10882351 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 42A5817E0 for ; Tue, 2 Apr 2019 21:25:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CF00288BA for ; Tue, 2 Apr 2019 21:25:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 213A7288D2; Tue, 2 Apr 2019 21:25:55 +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 BCFED288BA for ; Tue, 2 Apr 2019 21:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726671AbfDBVZy (ORCPT ); Tue, 2 Apr 2019 17:25:54 -0400 Received: from mail-eopbgr710071.outbound.protection.outlook.com ([40.107.71.71]:3636 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726328AbfDBVZy (ORCPT ); Tue, 2 Apr 2019 17:25:54 -0400 Received: from DM5PR07CA0050.namprd07.prod.outlook.com (2603:10b6:4:ad::15) by SN6PR07MB5376.namprd07.prod.outlook.com (2603:10b6:805:74::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Tue, 2 Apr 2019 21:25:52 +0000 Received: from CO1NAM05FT038.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::205) by DM5PR07CA0050.outlook.office365.com (2603:10b6:4:ad::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1750.15 via Frontend Transport; Tue, 2 Apr 2019 21:25:51 +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 CO1NAM05FT038.mail.protection.outlook.com (10.152.96.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1771.6 via Frontend Transport; Tue, 2 Apr 2019 21:25:51 +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; Tue, 2 Apr 2019 14:24:48 -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 x32LOliD028520; Tue, 2 Apr 2019 14:24:47 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x32LOlBd028519; Tue, 2 Apr 2019 14:24:47 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 04/15] qla2xxx: Increase the max_sgl_segments to 1024 Date: Tue, 2 Apr 2019 14:24:23 -0700 Message-ID: <20190402212434.28469-5-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190402212434.28469-1-hmadhani@marvell.com> References: <20190402212434.28469-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131987139517241420;(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)(376002)(39860400002)(346002)(396003)(136003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(2616005)(5660300002)(105606002)(446003)(486006)(126002)(476003)(11346002)(50466002)(86362001)(53936002)(4326008)(48376002)(76176011)(81166006)(2906002)(81156014)(97736004)(8676002)(14444005)(47776003)(16586007)(42186006)(54906003)(85426001)(50226002)(110136005)(51416003)(80596001)(87636003)(498600001)(26826003)(316002)(305945005)(68736007)(8936002)(6666004)(356004)(1076003)(336012)(106466001)(36756003)(4744005)(26005)(69596002)(36906005);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR07MB5376;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f107840b-2f6c-41cc-966c-08d6b7b1c843 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600139)(711020)(4605104)(2017052603328);SRVR:SN6PR07MB5376; X-MS-TrafficTypeDiagnostic: SN6PR07MB5376: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0995196AA2 X-Microsoft-Antispam-Message-Info: Lr8zMFZXXdkEQ9WYLkbBWs7D+REtZOz1Mhl/8oWRf7aQhRf3Z8kx02c/CpXpA9jzWi1AYle1PbIuXqry5ZQThgCwes5zoD/DjVIoiTdGdbSp4bBSZYD8Pn5vdT36SNnIgcyINZQonTmbFuJjWl3fVFLRTWXksnqi4ydWX2Fhmot1jt1XGLpovSPjxMWt2C+adQiQ6szyHM7v7DUxsx46vMFO8z1lF8N9Uw8uuCKlwovJq/8IR0vmygCWZbfwDQwLt/Midt3MwecSZwvdJt7QVUG82+GTe3SgDzmfLi0BQHnCYX9UtwowK2xafCgMj6vq/KxJHQ81gW2ye89coYWzFUJ60WljGJpZjIsa8hGnn0KKkJ9i39p7txoURjShcG9xi005sHqZ6X8UCsMZxQQBxB8kSoIeoOuedXcSQbtJm3Y= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2019 21:25:51.3628 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f107840b-2f6c-41cc-966c-08d6b7b1c843 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: SN6PR07MB5376 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,