Message ID | 446e3039-ec25-89d8-2583-5e60dd2bfc88@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 7F86760574 for <patchwork-linux-rdma@patchwork.kernel.org>; Thu, 21 Jul 2016 20:03:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7136127A98 for <patchwork-linux-rdma@patchwork.kernel.org>; Thu, 21 Jul 2016 20:03:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65E7D27D85; Thu, 21 Jul 2016 20:03:56 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 6EE3227A98 for <patchwork-linux-rdma@patchwork.kernel.org>; Thu, 21 Jul 2016 20:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753892AbcGUUDy (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Thu, 21 Jul 2016 16:03:54 -0400 Received: from mail-cys01nam02on0089.outbound.protection.outlook.com ([104.47.37.89]:27376 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753877AbcGUUDx (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Thu, 21 Jul 2016 16:03:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vzYpwLF7P6PzLrFCdsoaMi69WWcTvoc9I1CS1Ai40ZI=; b=Lp1l4kKcKKHcmjTZe8psvWKbajdHOq3aE4jkfZLU6NrpTjcm1QAo9r7vu6nuLBLAEzXUkRrjxa/hz0VEJBYRsgLoW4IHmvlyqAIK+LYZqm0VINtGLVmZbCDHIcsoloC6+sUY5Z1ac9PRbDNJ9QKT0g27Mv/xe+u3LUCMuqJJE/s= Received: from CY1PR0201CA0029.namprd02.prod.outlook.com (10.163.30.167) by DM5PR02MB2618.namprd02.prod.outlook.com (10.168.196.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Thu, 21 Jul 2016 20:03:49 +0000 Received: from BN1BFFO11FD018.protection.gbl (2a01:111:f400:7c10::1:166) by CY1PR0201CA0029.outlook.office365.com (2a01:111:e400:58b9::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10 via Frontend Transport; Thu, 21 Jul 2016 20:03:49 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; linux-iscsi.org; dkim=none (message not signed) header.d=none;linux-iscsi.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BN1BFFO11FD018.mail.protection.outlook.com (10.58.144.81) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Thu, 21 Jul 2016 20:03:48 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [172.22.12.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 0A.A6.03698.84921975; Thu, 21 Jul 2016 12:58:00 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.301.0; Thu, 21 Jul 2016 13:03:46 -0700 X-AuditID: ac160c71-eb3ff70000000e72-a2-5791294815f5 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 80.B3.03606.3AA21975; Thu, 21 Jul 2016 13:03:47 -0700 (PDT) Subject: [PATCH v4 3/5] IB/srpt: Limit the number of SG elements per work request To: Doug Ledford <dledford@redhat.com> References: <75fc8647-16a6-5a89-400f-f5f418a8d6eb@sandisk.com> CC: Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>, "Steve Wise" <swise@opengridcomputing.com>, Parav Pandit <pandit.parav@gmail.com>, Laurence Oberman <loberman@redhat.com>, "Nicholas A. Bellinger" <nab@linux-iscsi.org>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <446e3039-ec25-89d8-2583-5e60dd2bfc88@sandisk.com> Date: Thu, 21 Jul 2016 13:03:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <75fc8647-16a6-5a89-400f-f5f418a8d6eb@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsWyRoxnka6H5sRwg2+rFCxenv/AarFy9VEm i2eHelkszn94xWTRtvoMo0XjJQOLda/fs1j8W9vN4sDhsXPWXXaP8/c2snjc336EyWP3zQY2 j0fPzzF6vN93lc3j8ya5APYoLpuU1JzMstQifbsErowJL68yFswTrFj1pYupgfEqXxcjJ4e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+bmbGMFBzRm1g/H6RPNDjEwcnFINjFmuGWdWJ3xszFJK/71a9Vbj+7Jz XyLaAyItnDJnm5sU13l8SA5u/PFM5diNbZVnu0qtZH35/Aomshnk8s7MWRU5LbfOcHrdxoY5 gkvPuSs4Vl7LyxT50C8rPTXhRuKUx7se/zM8b7Dvrq6ULMNPx+WHmb2MDkvK/izy+VuRtT9l KmdH/Lt6JZbijERDLeai4kQAV6unQhoCAAA= X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(52084003)(189002)(81166006)(81156014)(11100500001)(54356999)(68736007)(2950100001)(65956001)(6806005)(65806001)(8936002)(50986999)(230700001)(76176999)(47776003)(23676002)(106466001)(87936001)(86362001)(2270400002)(33646002)(229853001)(31686004)(53416004)(69596002)(586003)(50466002)(19580405001)(19580395003)(92566002)(83506001)(31696002)(189998001)(110136002)(2906002)(4326007)(97736004)(4001350100001)(64126003)(36756003)(5003600100003)(356003)(7846002)(7696003)(77096005)(8676002)(305945005)(65826006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2618; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD018; 1:gfdrPF1zBo9hLYc0N7Y8KQ9HxBTDOCvMkKjjlw2Ip5uKd+v7PYe2Y5R9iXG7aYbirkpu/KeodVt1Rgp6Q6sb44H3h2v9li2X82PY/PdbIYOQzmgvUR+rOLFy38FuJ39GsFYR2FW3UJXcl6zMafScGZN4OKbWwHvbfNIzpEYXohfwjb19SFvTxhU+Zt033wW6vXPVBxOBCF0vgYhUaA1toXSuDRb3Jp9C//q/l9XaMbnJiROPkrugzEBzWDhcaz3Rv9BuHa63RUTApuvcvfREkK+P8DTlkHU3WI2eBj4qzX3XhswDrPUyRcvSSYPcT1NWyoJEx/vkVZthO8AoGsD765CDzI4TkkFENGYZRYQAwvBS5AGAGqRl+h64Ay3rq2KhEvL2NRRmhXnhFPZMMzKZPpnPdw2YsaQZGXTtmr8ZbNllGNvXmy4RZo0dkKXxADJgzHr8iBexmdSCq+H9EOMZWxeB8OnjGt12bOWNj6CRprzDwD8QxWuNM63FEIcHg+IHk9AsM+XyCSAjeoDFini2/A== X-MS-Office365-Filtering-Correlation-Id: efbf3955-3c6c-4dad-52bd-08d3b1a22189 X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2618; 2:7RerXrTgNjmC0gyp6d4eJwlbkWct7ckSMGcF3jxZI/OPcTpahCAZ0CZ8KO/wkF+Os1ACRE7fF6hnc7l9vyBlemH1OAr/XzFQu7X3a7mRtQ2kB/0uRpgjHlDaWzspzRECBpi5jT6yl5xrM02DzdtZL2qSqYRUqIa1XzGZIzLMLY85l3fKjmfTsV3uU/rmRiAU; 3:Np5bXrqAHU3K9E32HcYbZ14wCeMIKOoZ9nj57gFYMczq1TTHfbdODA+3jDnHC65Zebktc639TUlXBYrLSfmEvAV/5ReuaCI+nkW4LNZx5YNUdlMJb4J+9qbmMlUlqfDbB2u4N6jIsFe9gNSnOPaj7/1g3RSQKRj8anmNjGH5FTZi1lyuzrA0ZSYYOL3sA4ZGtkHN5848nXh5rziv6M/1Iog5m/hAqqjhgOCWJImpjuyZgkG7ETW6rvQl62Y32sVqfaAZT3NcS+N7tos62mq39w== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:DM5PR02MB2618; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2618; 25:4j3iCWgg+Dw+d/S8BPmmEZKiBiZehF6cMYfinivTBLzW2TohqjqimLv6jIeLyzS2dEoCHwgHpNr5sE16hwlghmAL2SPC5FHbrgUdpe4gCtA7qh9QB50TaTIJV8bX+ewunhjzFDTZevYPkb3Et8jpwLf+Vi4J5o435ad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z54yEp7OkzA5dL41UfTISKzliesrWmf3FZ0SgaAJmlvUhXbArF2VCZTy11MQ8dWJ18VxDcq0TONeBaE5VbteVgQU3KQM3Se7uMO7+Gdnr+nltU2RpEsZHFuAkUOiJ+h5C2x6F415BYFyp9Y9k0t8ASkPkZ5rFrp2dMABlP407Ev+D2RQh2MS70GYSMolXAhr1QMa1sJdliUJamXba7XszuPNjtv9GCTRXPei1YHlQBy78t5PPFcx6FUd6iJiufp3UPiETtqK1B16oPC2ioc9kQVXPK/ixXilpG1wFUI3dwihm21oR1Ph+nXPHKIDpMB0OptoyiKM+OhexSPu7E/f5prnLJhcU1t8THE4 X-Microsoft-Antispam-PRVS: <DM5PR02MB26187B81ED990BB995F2F0DB81090@DM5PR02MB2618.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(131327999870524)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(3002001)(10201501046)(6055026); SRVR:DM5PR02MB2618; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB2618; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2618; 4:iO6vj5JHeXPeR6u3jEhOFQu+fI4SyjNyHUmgpNTrutzwxDZLbfkbTZmkU6xti0FPlY1v+Pw3ViNVI58adJyJv2MtGBjkAOVXzvuNrhyeD/9BsMlc55fXgyLjgoeNwhaPYowfse/1M2PkA8iAdM83gcxQsJ4H226Q3vwb+3Hx2LzcHBQufMv6mk6+LJmVwWeapCrsPebCW/lCqdAu2POL+jLyZoW7NVaTN8nMNshWk48oF/lXyvZCdwecJxRr+pnLaFC914zyF1M7TgEBGGqs/DXegt9QE90CdRwwOiRtdqIwkbdE+K6Gnoei3D2yCTdR3omcETdeO6pdPVUeYIfVs8lcazkNV5UkOptqjUsIzKQUUJbfoJLuCSTXRnH/vUkvWOcOip6xSNBA4tQJmUxeEfCPeC4qkuYemE6cf7Rzq0w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Ej7nMvURa7VQqjC7hyxdB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2618; 20:N1OG1nYpeCjRP8L0GcC4oE63pfBfeS6Dz+WH43KU2kKbTtX0+UdJq01m55JoB/jlig8CPeim0EnRCncSh5Z5gdpjKH6Q6wZjTO3ZyrkZFyDaMMaRPOJAv1IUDvBmcNZ06dxSlGIDmvzIgWLkRcr5KaYgCeQvoFbO3WEeuxxRaNP3B9h+oDgJhYihoOYYSxyoQrfLnQtki6F/DHBTFSZZfqWhEJAuVFJjmQdQU8S1ZFls6uew71EFvwAVsMrb8uRu X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2016 20:03:48.7037 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2618 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Thu, Jul 21, 2016 at 01:03:47PM -0700, Bart Van Assche wrote: > Limit the number of SG elements per work request to what the HCA > and the queue pair support. Looks fine, Reviewed-by: Christoph Hellwig <hch@lst.de> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 4a41556..9a3b954 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -1601,6 +1601,7 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch) struct ib_qp_init_attr *qp_init; struct srpt_port *sport = ch->sport; struct srpt_device *sdev = sport->sdev; + const struct ib_device_attr *attrs = &sdev->device->attrs; u32 srp_sq_size = sport->port_attrib.srp_sq_size; int ret; @@ -1638,7 +1639,7 @@ retry: */ qp_init->cap.max_send_wr = srp_sq_size / 2; qp_init->cap.max_rdma_ctxs = srp_sq_size / 2; - qp_init->cap.max_send_sge = SRPT_DEF_SG_PER_WQE; + qp_init->cap.max_send_sge = min(attrs->max_sge, SRPT_MAX_SG_PER_WQE); qp_init->port_num = ch->sport->port; ch->qp = ib_create_qp(sdev->pd, qp_init); diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.h b/drivers/infiniband/ulp/srpt/ib_srpt.h index 3890304..5818787 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.h +++ b/drivers/infiniband/ulp/srpt/ib_srpt.h @@ -106,7 +106,11 @@ enum { SRP_LOGIN_RSP_MULTICHAN_MAINTAINED = 0x2, SRPT_DEF_SG_TABLESIZE = 128, - SRPT_DEF_SG_PER_WQE = 16, + /* + * An experimentally determined value that avoids that QP creation + * fails due to "swiotlb buffer is full" on systems using the swiotlb. + */ + SRPT_MAX_SG_PER_WQE = 16, MIN_SRPT_SQ_SIZE = 16, DEF_SRPT_SQ_SIZE = 4096,
Limit the number of SG elements per work request to what the HCA and the queue pair support. Fixes: 34693573fde0 ("IB/srpt: Reduce QP buffer size") Reported-by: Parav Pandit <pandit.parav@gmail.com> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: Steve Wise <swise@opengridcomputing.com> Cc: Parav Pandit <pandit.parav@gmail.com> Cc: Nicholas Bellinger <nab@linux-iscsi.org> Cc: Laurence Oberman <loberman@redhat.com> Cc: <stable@vger.kernel.org> #v4.7+ --- drivers/infiniband/ulp/srpt/ib_srpt.c | 3 ++- drivers/infiniband/ulp/srpt/ib_srpt.h | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-)