From patchwork Mon Sep 26 16:09:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9350899 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 A46B06077B for ; Mon, 26 Sep 2016 16:09:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9524228A5A for ; Mon, 26 Sep 2016 16:09:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8946828A7F; Mon, 26 Sep 2016 16:09:58 +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 78B7028A5A for ; Mon, 26 Sep 2016 16:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161495AbcIZQJy (ORCPT ); Mon, 26 Sep 2016 12:09:54 -0400 Received: from mail-sn1nam01on0087.outbound.protection.outlook.com ([104.47.32.87]:44384 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161405AbcIZQJx (ORCPT ); Mon, 26 Sep 2016 12:09: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=nZBWT1PGTOS53+Dyl8LVifmq5E3pwfhXRFIU4FPEAd4=; b=A2B4UfLaHsEhHLUMPoWneKTp81Y+pvsYFs4YdWTGBbrvmDZClog2XGY1MpQwW/DDCSeDPDi9XdK2LIq6+AO6Ej9apc5wGWH1/Dw0dRIx+Mbsjj4T1gp6jiYO+gahtN6Y48J1vpQJuB8oWYhai8miGGMsSy0HrkhJ+aPTC8AhvtM= Received: from BN6PR02CA0065.namprd02.prod.outlook.com (10.175.94.155) by DM5PR02MB2748.namprd02.prod.outlook.com (10.175.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Mon, 26 Sep 2016 16:09:51 +0000 Received: from BL2FFO11FD030.protection.gbl (2a01:111:f400:7c09::178) by BN6PR02CA0065.outlook.office365.com (2603:10b6:404:f9::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5 via Frontend Transport; Mon, 26 Sep 2016 16:09:51 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; grimberg.me; dkim=none (message not signed) header.d=none;grimberg.me; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BL2FFO11FD030.mail.protection.outlook.com (10.173.161.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5 via Frontend Transport; Mon, 26 Sep 2016 16:09:49 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.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 7D.83.26959.BF549E75; Mon, 26 Sep 2016 08:59:58 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.301.0; Mon, 26 Sep 2016 09:09:46 -0700 X-AuditID: 0ac94369-b97ff7000001694f-24-57e945fb3592 Received: from [10.50.231.78] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 45.AC.03606.74849E75; Mon, 26 Sep 2016 09:09:46 -0700 (PDT) To: Doug Ledford CC: Sagi Grimberg , Christoph Hellwig , linux-rdma From: Bart Van Assche Subject: [PATCH] IB/core: Improve ib_map_mr_sg() documentation Message-ID: Date: Mon, 26 Sep 2016 09:09:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5ke4/15fhBhfeqFi8PP+B1WLl6qNM Fs8O9bJYrHv9nsWBxeP8vY0sHrtvNrB5vN93lc3j8ya5AJYoLpuU1JzMstQifbsErowD22+w FrTwVsxcdI61gfE0VxcjJ4eEgInExR/PmLoYuTiEBJYySfzccocNwtnBKLHi5GRGmKrDvT3s EIm5jBIrpz9hBUmICKhJbHq1iB3EZhbIl/i2uIEJxGYTMJL49n4mC4gtLGAn8WbhdrBBvEB2 +7x7zCA2i4CqxOSDLWC2qECExK2HHSwQNYISJ2c+AbI5gGZqSqzfpQ8xXl5i+9s5zCA3SAi0 sUosv7UI7AYhAXWJk0vmM01gFJyFpH0WQvssJO0LGJlXMYrlZuYU56anFhia6hUn5qVkFmfr JefnbmKEBHbmDsa7T7wPMQpwMCrx8Hocfh4uxJpYVlyZe4hRgoNZSYT3KjAuhHhTEiurUovy 44tKc1KLDzFKc7AoifO63fsSJiSQnliSmp2aWpBaBJNl4uCUamCssdFXKXd7/jTkXK60mI7a 1b198gqXhevNc+uepDsL2TXbsTDMeHHnxaNMi0qttBTPD5d1V51/mp3klKn6oPfQJ5bdix/t vdSVcHxfkJy6ZAJrBt/iG7xsOvf0psrJ/22PnV24VDWXqcBd1URG8kUCc5POJ/FQZpbci0WP Ozq3zxKQOxQsoMRSnJFoqMVcVJwIAIuHo7loAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJMWRmVeSWpSXmKPExsXCtZEjRdfL42W4wdwTzBYvz39gtVi5+iiT xbNDvSwW616/Z3Fg8Th/byOLx+6bDWwe7/ddZfP4vEkugCWKyyYlNSezLLVI3y6BK+PA9hus BS28FTMXnWNtYDzN1cXIySEhYCJxuLeHHcQWEpjNKNE+LxnEFhFQk9j0ahFYnFkgX2Jv4zxG EJtNwEji2/uZLCC2sICdxJuF28HivEB2+7x7zCA2i4CqxOSDLWC2qECExK2HHSwQNYISJ2c+ YYGYqS7xZ94lZghbXmL72znMExh5ZiEpm4WkbBaSsgWMzKsYxXIzc4pz0zMLDI30ihPzUjKL s/WS83M3MYKDizNqB+P1ieaHGJk4OKUaGI+66xv+fzw3nXeRdbAyp75fcfqysGsCK3o0RfkF 3LZby5YV8szoXOu+RMn3//efO+rFr23ZNEn2UeltpnzdcBmlnVIdO+Y5fXLjY3n/+cvq7Ts5 +1a5V79hmnhb7V7XfBeLJTJ6yRqJlpuiHObNPe29+UjGYv5VDwrsLovNm1K0dfleWc0vJkos xRmJhlrMRcWJACIeBUveAQAA X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(31696002)(47776003)(11100500001)(23676002)(50986999)(229853001)(230700001)(65806001)(65956001)(4001350100001)(97736004)(8936002)(106466001)(189998001)(54356999)(33646002)(77096005)(31686004)(356003)(6916009)(92566002)(8676002)(305945005)(83506001)(2270400002)(626004)(586003)(5660300001)(64126003)(81166006)(81156014)(110136003)(7846002)(65826007)(4326007)(86362001)(2906002)(19580405001)(68736007)(36756003)(69596002)(19580395003)(87936001)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2748; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD030; 1:2Cu/bplzNAh3fT06+L50iI+rE4LsA3yy/sEU/HTWyiu9gmL18GNobSh1BBtif8iAlegM1kFD/FzMI7U03eDSWyZS7cAXv+u86b7qS4igTDGZFKuRqQ/zD4Z3KZi1sl0CSysK+nQ2nuRaSsv93pE2Pna2eihWhDe666NBEcsJ087l5GUzD99tO3yXsYxPRjMTojujx+jNjUbChxxBJrhitedRBXc8JEFs4ayhQecwRxI2f/PYW5Pikpr7XpYv0xgKmhqNS5JR2GoZ0ot9jdbuO9VRdpo/Xea2yAhxldbWuxkj8tUbJn4C6ihJv+H/BTkVFQIBQqoimKWFXn6ngmWWKPA9SymsOcAIC8z5x+ah+NMyTS8BTRVot94pOAdqakJQrelZ1HjkxCDqsMJEORNf2uuEDcX3pKz3xubjwP3dI4niNE7NpFnuO0pquZSnfny1OupXh4L0mQDna3D1x4nEEvJnMzc5687n3D+nAhp/Mm2rc9OIaatF1caC7wo44c7T3m/ct9t6GJy76UmCRKd0ug== X-MS-Office365-Filtering-Correlation-Id: 1be7f2f6-8d48-48ca-76c4-08d3e6278b8c X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2748; 2:XGEjHGTm9oHMQaRRyu3yb2ol4A2gVkE13VWowNkrJMugi6Q6gq6QNsL60t4VONDN4pfbWTTpCPywvNy3BNaExhdwrDrIaDiCsMxMfuEf4zNzVsFJQ6ZiCML93v0AgkiqzDhJYBKVfcV/c52Frn5qlh3V2Lraf0UHHsU62d3YKgoGMrPfdP0OBufMFSuUxSLE; 3:3N0xyOUvb4y7rJKYO7kHrGypTKUNmAGDt9VPRzrngrzcFZWBKhT0KtchUx8eQGlwyr5C4gbPt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EbId5mEOqsAmUA== X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2748; 31:oKHbZDo7K+P4BgEClMK9op/wFFW3BYUeM4LCGsSyzZZB6YXJvfJrpi85HKWi5WzXGNKigl+Eb2hlC37V3PBT/aSPZ5gYm11h+t/ZSyQyUZRqseAqa6PyaSNvqU/LvYbetHKmZzLe2jPGqvM7CZsiLpYJfZTXyT9xnQ/DhiInGjRmhwMqpdjoKEA5lGmVPKtnF/6eVy1v3NAAtlr3zDqJXCsLhMOvSF4hAVvnvKcwb2A=; 20:PLu/Z2FZubHgKRPrGeJ+Pg1wLYSyNjvTV9BqMkEWMtQBcwknULxR7tEmeNkQtzRFJ/q32+gqBUN2nioHKIs9REprJrFX+S5RSuTJtu4xUhHh0/VNwin81/0t4yMlTmWr4mjVVfw2Asr6eXI0EFq7i7txcMUaHV3asnyRCGFRoLyoq4wzwQV5ykKbQfu8BSeyKq8Q9QdKtpe+lB6A2NbUbHRt2BmX5tx9Ge7jXlUqOxWSo0K/bxvrrMgZt+5ARDNdAIMSTZ/djco65ed9trm3dR0CX80nOPUw4sjqOMo+Qlk1e1OYyx7VKWvWbTz4iH6WhxnOTyxS6FluERtMyTyTvrkv3zsuMGW5Y88UjGPYw0sClYEcWq+wYnV1sMEviM9DqOisUYcXyyDeDnRKO6ULUdkjGakqkFVefQYb+GpMjL5rDDO6u57dV9L/Km2e4YBf6dMKu2rIjii3yS1P0mp4aEwvh+QQk/ztktzeeQwAPaD6a7/8ph/SBe35vd6ShXsT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DM5PR02MB2748; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB2748; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2748; 4:obfJ25TfxVkquUS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aZzbfnA1RpypygT5EiA2CPp7Z/aPoIelDSRzNgnEB7PcVffaByMb3l559L4ybHJuG05yFiBwwsRsyQeXftiwHTt48yd4GdhezVMKJEQs4SERTboS7RDk9t7alKhzTAuwcDzhuuCw5m+L9DcigPqP+1BUlBczquKp/D2V+LYg7Rtlnq8OpOo02HBQeYvh1aLDP9n7f1bsMPBEanallUljylhtLy+takaVwyInfUp7IKWq/c4sLL01ukzmCIu7dvQ/3gydEd7j5IFxV1+yzSaNkO92W6rvPuAm/8Iskm0IrjLoWSuq4v7vb SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2748; 20:/gi7qg02ULx0q6BksfMHq99LpsjeHj6/bMxnXw4CjP9002ldBeq/nH+9o7MTGCgUwwBtsxyAGQDcGovXmb3mR6sNw+/BTki73KPhfXGIifmWHRtsDCdxyIPXWzm+KApdoPztob4FRmctIOV+Rge4ZnmeMS6EWn16wymZbx65ggMbbewfHzXAOyqHDZppqULaMVR+C5kdmBmYABAxVKW9JRvC5FY6H66hDN6PxcYfrP8K5q/3O367zHaEEfLG0PBl X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2016 16:09:49.9831 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2748 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document that ib_map_mr_sg() is able to map physically discontiguous sg-lists as a single MR. Change IB_MR_TYPE_SG_GAPS_REG into IB_MR_TYPE_SG_GAPS. Signed-off-by: Bart Van Assche Cc: Sagi Grimberg Cc: Christoph Hellwig Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg --- drivers/infiniband/core/verbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index f2b776efab3a..ff75be35cf28 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -1812,13 +1812,13 @@ EXPORT_SYMBOL(ib_set_vf_guid); * * Constraints: * - The first sg element is allowed to have an offset. - * - Each sg element must be aligned to page_size (or physically - * contiguous to the previous element). In case an sg element has a - * non contiguous offset, the mapping prefix will not include it. + * - Each sg element must either be aligned to page_size or virtually + * contiguous to the previous element. In case an sg element has a + * non-contiguous offset, the mapping prefix will not include it. * - The last sg element is allowed to have length less than page_size. * - If sg_nents total byte length exceeds the mr max_num_sge * page_size * then only max_num_sg entries will be mapped. - * - If the MR was allocated with type IB_MR_TYPE_SG_GAPS_REG, non of these + * - If the MR was allocated with type IB_MR_TYPE_SG_GAPS, none of these * constraints holds and the page_size argument is ignored. * * Returns the number of sg elements that were mapped to the memory region.