From patchwork Mon Mar 14 01:04:15 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: 8574611 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 72FE59F54C for ; Mon, 14 Mar 2016 01:04:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5ED6D20460 for ; Mon, 14 Mar 2016 01:04:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D6CA2044C for ; Mon, 14 Mar 2016 01:04:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932592AbcCNBEX (ORCPT ); Sun, 13 Mar 2016 21:04:23 -0400 Received: from mail-bn1on0078.outbound.protection.outlook.com ([157.56.110.78]:12288 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932513AbcCNBEU (ORCPT ); Sun, 13 Mar 2016 21:04:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vXIa5L0KQgWqdVP7oKTjn2yp44zuzVISSM44eAr/Bjo=; b=X9puzwgD4n6T8iSGtqRNANkAACeUsEhKpvD9B3jaVxcr7tSOtasdM7CSmdWABFTd5CaLja7HwsV6toHFW0CWdKLrkaUg/WBfVCZrtiuFoU8bEivZScg4fcyiedXMIaABEdkuoGL3HLn2U+yqh1efYBURw/VM4k/wSP/veikImT0= Received: from BY2PR02CA0050.namprd02.prod.outlook.com (10.141.216.40) by BY2PR02MB121.namprd02.prod.outlook.com (10.242.43.139) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 14 Mar 2016 01:04:17 +0000 Received: from BY2FFO11FD006.protection.gbl (2a01:111:f400:7c0c::166) by BY2PR02CA0050.outlook.office365.com (2a01:111:e400:2c40::40) with Microsoft SMTP Server (TLS) id 15.1.434.16 via Frontend Transport; Mon, 14 Mar 2016 01:04:17 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.174) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.174 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.174; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.174) by BY2FFO11FD006.mail.protection.outlook.com (10.1.14.127) with Microsoft SMTP Server id 15.1.434.11 via Frontend Transport; Mon, 14 Mar 2016 01:04:16 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by (Symantec Messaging Gateway) with SMTP id BE.F8.02667.01E06E65; Sun, 13 Mar 2016 18:04:16 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.248.2; Sun, 13 Mar 2016 18:04:16 -0700 X-AuditID: ac160a69-7bbff70000000a6b-1d-56e60e103452 Received: from [10.50.231.66] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 9D.8C.02566.F0E06E65; Sun, 13 Mar 2016 18:04:16 -0700 (PDT) Subject: Re: [PATCH v4 7/9] IB/core: generic RDMA READ/WRITE API To: Christoph Hellwig References: <1457461000-24088-1-git-send-email-hch@lst.de> <1457461000-24088-8-git-send-email-hch@lst.de> <56DF44FC.8070103@sandisk.com> <20160309130723.GD31210@lst.de> <20160309155457.GA1898@lst.de> <56E071B6.8060809@sandisk.com> <20160310075722.GA551@lst.de> <56E1931C.1040206@sandisk.com> <20160310162150.GA9544@lst.de> <56E34914.2020108@sandisk.com> <20160312061232.GA15236@lst.de> CC: "dledford@redhat.com" , "sagig@mellanox.com" , "swise@opengridcomputing.com" , "linux-rdma@vger.kernel.org" , "target-devel@vger.kernel.org" From: Bart Van Assche Message-ID: <56E60E0F.7060900@sandisk.com> Date: Sun, 13 Mar 2016 18:04:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160312061232.GA15236@lst.de> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsWyRoxnka4A37MwgwV3jC1env/AarFy9VEm i2eHelksbrQ9YLP4t7abxaJ16VsmBzaP3Tcb2DyeTT/M5PHo+TlGj/f7rrJ5fN4kF8AaxWWT kpqTWZZapG+XwJXx5f4MloK90hXH1s9ja2C8I9bFyMEhIWAiceEmYxcjF4eQwCZGiXs/bjJD ODsYJR7+f8baxcgJVjTp4CU2iMRcRok/x58xgSSEBRwkOu/MYgGxRQSUJJ6+Ogs1qptZYv+v h+wgDrPATCaJzgeTwEaxCRhJfHs/E6yDV0BL4u/7TWA2i4CqRNO/LrCpogIREk/mnmSEqBGU ODnzCVgNp4COxPZPc8HizAIGEkcWzWGFsOUltr+dA3a3hMBRVomLR96DDRISUJc4uWQ+0wRG 4VlIZs1C0j8LSf8CRuZVjGK5mTnFuempBYZGesWJeSmZxdl6yfm5mxjB0cKVuYNxxSTzQ4wC HIxKPLw/1jwNE2JNLCuuzD3EKMHBrCTCe47jWZgQb0piZVVqUX58UWlOavEhRmkOFiVxXusW tTAhgfTEktTs1NSC1CKYLBMHp1QDY+T8uxmS/W8ThcXObteNehCWcNix0NhD5UXj6lrn/YJz HCMazAu+BHHNZ7yWs/alq720wxo5Y2WHmRESDzYfEsyv33RCxts6fsWLlLpPMW89cmxeLnKx rL604tDq+RWHWuc+Fn+fWtL0Y5vko/vnL66ZOLVs+/r4hid5id41jlbbgvbW951kVWIpzkg0 1GIuKk4EACv0QgCSAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKJMWRmVeSWpSXmKPExsXCtZEjRVeA71mYwb5t/BYvz39gtVi5+iiT xbNDvSwWN9oesFn8W9vNYtG69C2TA5vH7psNbB7Pph9m8nj0/Byjx/t9V9k8Pm+SC2CN4rJJ Sc3JLEst0rdL4Mr4cn8GS8Fe6Ypj6+exNTDeEeti5OSQEDCRmHTwElsXIxeHkMBsRomvbedY QRLCAg4SnXdmsYDYIgJKEk9fnWWEKOpmltj/6yE7iMMsMJNJ4tXH3WAdbAJGEt/ezwTr4BXQ kvj7fhOYzSKgKtH0r4sJxBYViJB4MvckI0SNoMTJmU/AajgFdCS2f5oLFmcW0JPYcf0XK4Qt L7H97RzmCYx8s5C0zEJSNgtJ2QJG5lWMYrmZOcW56ZkFhoZ6xYl5KZnF2XrJ+bmbGMEByxm5 g/HpRPNDjEwcnFINjCuTt1/WMHt6M3jPn7Oec47fWme8ovUti7/l7d99XqJCNx7vP7QmtizZ 2WX7w/pfOR+MLaYwbf/wpjxUjtN5tnVOgu55mbvrlinvYk9rnulUP0XasFfncPsEpZ1fX8Q8 yJ25KUzMZWVpANPmr1PSL/1L6DeWXvXxbMy9zZ1WLufmaUxIypx465QSS3FGoqEWc1FxIgAp +csBCAIAAA== X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.174; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(24454002)(199003)(479174004)(65816999)(76176999)(5008740100001)(64126003)(2950100001)(87266999)(54356999)(4326007)(189998001)(59896002)(50986999)(81166005)(1096002)(92566002)(33656002)(83506001)(47776003)(586003)(36756003)(106466001)(93886004)(230700001)(11100500001)(86362001)(87936001)(50466002)(110136002)(77096005)(65956001)(2906002)(1220700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB121; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD006; 1:KswDAPa2yykyI5OyYKtX9RderviUI3SijUkS1Tndq6+hhUO+388Yk0WhBzTv8FlHwDQIezwyUxmTYMmEjDoDT4bepbNihe+MMNI2/XtV0INAfUMvopp0RT3VtnuTyBCkMEXbNNx9Ohv/POxac94bN50bsCmKc/snPvx4YO9Vm2WIJhIIjF3jP+ZgBbLHu5zoZnt3y9ZCnQFaw7QYrCFf+YV4a5qexapbsHLHUB9SQIhOImKywSIVCriTywZKzVxd+m64O6aqKr0mvdQwhVD4q7xTfRf20VpCWUXZODw/CkkOfwmJcSW5NZurG1tK2M4wUZW2xFWpc4fETqcg/RoAdY7HXx44p2tRjd+66C5+FXNxKw0Gbf78d1MgpmIFH2VhNL04o8zuNwZQqLqe80ZjYFa+Kg1oytWaKSpg6IuVHm3ORRZLRwHhArx3ZKvGYaQ41hs2uKUWDENIMUSGUNgNjVl50TZt0x9E0WuK4jrGEig= X-MS-Office365-Filtering-Correlation-Id: 1bd026f0-99a0-455a-89b5-08d34ba4910d X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB121; 2:JGiw83yNKs1Q3Xknhm8oCjfZg1JdMVgNzwzbWdTsRkRXF2MdNrjBZrlzabUfV2EtWQ5E6742miQhy1o+cJZVwlR2tPb4nGgLiLjRms3GchIfWVZmTXFwrZVz04GjJj1LxojG/xsot8jetYa42hkGjUsolprE8rJw0qI9IucFMaCBEmUKbUKnsjn//2sAEfoY; 3:FCJrHhhlT2od4Xr5/ZtNK9M3pWIxIJa9cq5FVDcVwvNq2WWaqzjEk9B4S17FNypz56Hb1IOWCzTmvr0Wk4XUYpknQFOoDBDxkEWHbV2QXsAT6I2UgpX3IBuqTUhXkhOc4AQxoL/VvQPfIr+co2E+6wJjZJTTVHjhHIK6rk/Q8n5qXUfFkF22z2RBNhI44MmJR8UfIZ0OIl7MJNTtsIfLFLCYD1udpoQWGbeni8dUS3O2VDljEhH/WPZ4BNP7xLYkOCWUr2iZrh7arU1jTkSoVQ==; 25:yqSx+PLVTSfNb5CrXF8VbvwFx7hcUDJo7+k5om+IiMJEzUDT6dwaIDjn8XWMoNKPqsYj3FC/cUQQ+chSMshMgwOKQFuoJxqFMyc7PschYZPGddaSqU14N/o33TH4lSRJvyDuGsEmflkEA2av/KnHWUZ8xZirBbfcc3DwZVubDJPNI5OzcoJre1YP8PuhvPUxfRZTr46oOHRvyiYXGl7B3kxrxYXJRkerWuBxT9w/gp7w/NOjJyPDPqzI/UYj7d9BbjI59xKvVh+9gFiYPv9QJWOktMs2GGikgsjroGGCro1pqjc2IFz0a7mzEFVjTPZ67wai0JI+dkWP5y2cLapRaQ== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BY2PR02MB121; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB121; 20:EO6D/5iHtNG1gX0G3i9NPrhrJi4ZnF2VG/Qqeurze6L2Ia8u4QABdTbsQdQuF5NuVR+480yBk45iM54s5e12YcVAh80EPJqDOidBaSV5cKlOoEK27xDSnNF0P+8xrLBIFf6IxwfOujE8YEZO3CAw7yEnsZgV8mVqSSPaUZDJtEDlCihxLbFo7M8+e1B1LMB8q6feJQUfjYhXjmm7vONpMTuSqmF8bJriVly0ZVp/jOVjY2GZzAv0fELwv0lysqq2kaxhciRpzqDtdjmiqjsUR1cxLfi68L0IpJct1gvYgNrL0kkUOr3cj5vYq/cJ6IEzzfZ7d7oGBmDGWMiRsLRTqStybzEv564vXq63wl4OAKLUCu94/jHoKVPWaYdHvWFV53InewEPOMeDanABcdJeZQQavHT0290mYfkUzyF3N6jW+gITyMJEGP/nyKrVJIxhAR4XjSpCdfxphYDvbEGdd+mqEjD14jUhHo3ui3u2dNoOIHf/FTs79URlgrcJBGtH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13015025)(13018025)(8121501046)(13024025)(13023025)(5005006)(10201501046)(3002001); SRVR:BY2PR02MB121; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB121; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB121; 4:XPe5MviqMXnMPasI2j6jwZB2fFrkSbX9lNqYwOLWuIQ3gqJN/GQ137xFiHfT4cnvE3DD1sk//yDV5vJAgnahfdglq0rInFRzg7AN3x8sY1SnFswBloTwl4MDpg0KIsEQ3yOmqHxyjZYNKFMeE8p7eO3V7w6DdcpOyLSD3sTckmo/eGhtj/R8QS+a/MftgE5xIVHGaPA0sdNkpDZOUF//HOnrp7HkFcnmosGo3tuuqpQhxHt5M2HUrKhLB6z6CC1y4BfoU0peqlBX/rIwkqxZFQmw1nRzgLQcreaAG01roRqrKyf8/5fKw3cdL0/cspiw601PrTyp8CUu3AMW3s9Dye29FxmzJHFqhPcte5kYqxizV6or2DDpFZyWHwjiVmxajjILTBwXv9X+kMFCDZgGAqt8bIbNLx8rxPwcKHsVXivRii2ijy3h+7zNtC+iYq/3jIUSic+mD/F8+HZNDwcJZg== X-Forefront-PRVS: 0881A7A935 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BY2PR02MB121; 23:HH0yngzNnSwvTv1vsSMz0Vb6wuAxnmWMCPtQnI?= =?Windows-1252?Q?J8AFZOHZRMEL2LhCpOm8OFs7VcLViZv46Ka6Vda0t7fFLi7khPkwngkl?= =?Windows-1252?Q?aHXBMpf7NbDyoGhY3RPkgt04FZ+ym7QamVdWMeD2wNwfVunyehSz9lR8?= =?Windows-1252?Q?qtd50uXoKOf7VotxwgHvJ0qnC1e1cQWhPDziqJce8aL6CBO2zJYk98/d?= =?Windows-1252?Q?ywuK3e9BKYfxJOBBSv3qKUp40EjfWfIdbucfDD9MSiBTFvehYPy3QZ7p?= =?Windows-1252?Q?xAHdVo0FU3jO+sTDY8G7ViLijMTe70C7gUddUn9aWqjYTGHm40IOO9qR?= =?Windows-1252?Q?RX34IK/uJgRrHz1NoaCuE+Rs78le2wydmVEwgyRriOWHKdEpQQXk373L?= =?Windows-1252?Q?xeyR1t1UERb+1IoaNQoT0drmEdOENG2BxoQ3H7gyUMkdtK0rpzt0vhHc?= =?Windows-1252?Q?WpNishMdP3VisY+EXnFlc4apex2J+bNuveHsaaZWtoJFJCduzMPUShR/?= =?Windows-1252?Q?QmMhThIc72O5btNNPAsMFOnbhAFGGrRZBpTUK0+ZrCP2qaQ7TvF8v4fT?= =?Windows-1252?Q?rlzC9JDIjWv6rn7PB7V1y/sHVPzuoC8a8WX1Yjs/YWfd3CjNsvWpOFaP?= =?Windows-1252?Q?h2MaZnIaTt1UcG+USWeTB2yL+LqUpSZoSVnvPJ9YUrJkXacJ1T+7eqmg?= =?Windows-1252?Q?8PTQFq4eP4WosEJtrpOTjeKJn1UWsYQn9xCSgqs9rVYOArbwatbjmCLl?= =?Windows-1252?Q?GAABMZm+L0fKvc+7yRS+7eXTtk+neWHaZeMZp7/IGRfX3cqXmPor4+Sw?= =?Windows-1252?Q?R9ryOSGevFKd86BFV1c0sopTEeE5uYo5+h9kWb521BFEwdlZHi2sPnkN?= =?Windows-1252?Q?MISioMfSgRC7LQTBPmn2q/gNGCcp8kypbKeI88LOBjxXWV6QcjFPPKUB?= =?Windows-1252?Q?zBc5gE9GIsYILILaweGNXELN30PfioXdsmHOhE/ZfxFpR4dyttAgS+IS?= =?Windows-1252?Q?QpGrR81+OehXngnzwCxUDiHd3HjhWo/3g9pCITNNiVHUE1+2belUZ70W?= =?Windows-1252?Q?DL0aLrnBhmEm4=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB121; 5:Wun2NS+vv5U54iTDEHOpYO5yMg/4bEblDIIFj0Fj5n8m52SkVCxEAjwVE+mgsycEnfDD1Bqhk2LY2Qy7Uv4DNxK+o6N9U1TWBRR0xGMn/uj0Ajj99Wzo9e5AirpeeQq2p3dAUn47iQ+b7jZTKPFzHQ==; 24:IKnjSi9OBOGSVYg/lHH5cHAeUx3UHTyyc6jYCSXY59JPjaywYEKWwGYXZIEqLvIz9biR/zt39GQJgI4M6HW+ZIc5Te2xnVZ4CvLFIdtwSi4=; 20:P9HYQcESDi96ZEQHCzbkmP2dDr8UoRR8RBlfh1YvyhsXb5/pLCnz9Is538ryLAMFSm44wbdLEqa/2N12BTjdGoE3XI1bvFbCYvHSZn5/E8Iq4nVYLb9s+pk8OFrh8mpJ65+abp31Uz1NVkc//iRy8sRESl6n0c4xgh1BMX2p1z7qpR0JMy3rU618zeLRGR0IYO8DELKws+wA6qGw0eoHGBF/3uDobTlFZFgqPCr2bnhdD5D0gS3Mq5/EHpTfHH+W SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2016 01:04:16.9051 (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.174]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB121 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 03/11/16 22:12, Christoph Hellwig wrote: > On Fri, Mar 11, 2016 at 02:39:16PM -0800, Bart Van Assche wrote: >> The above is fine with me. But when I ran a test with rdma_rw_use_mr() >> changed into "return true" the following error messages appeared in the >> kernel log: >> >> [ 364.460709] ib_srpt 0x1: parsing SRP descriptor table failed. >> [ 383.604809] ib_srpt 0x0: parsing SRP descriptor table failed. >> [ 383.605627] ib_srpt 0x2: parsing SRP descriptor table failed. >> [ 386.702905] ib_srpt 0x3: parsing SRP descriptor table failed. >> [ 386.703092] ib_srpt 0x4: parsing SRP descriptor table failed. >> [ 386.703242] ib_srpt 0x5: parsing SRP descriptor table failed. >> [ 386.703411] ib_srpt 0x6: parsing SRP descriptor table failed. >> >> Is this expected? I ran this test on a server equipped with two mlx4 HCAs >> with latest firmware (2.36.5000). I installed git commit >> c4c65482b56a433a82bc5b63db8ba125727e9f80 of the rdma-rw-api merged with >> v4.5-rc7. Initiator and target drivers were running on the same server and >> were communicating with each other via loopback. Before I modified >> rdma_rw_use_mr() the same test passed on the same setup. > > I think this might be the case when SRP gets multiple SGL entries. > In this case the number of MRs allocated is limited and srpt should > handle rdma_rw_ctx_init failures due to the lack of MRs. If you add > the ib_mr_pool_get failure printk back that you asked me to remove > I bet it's going to trigger. Hello Christoph, After having applied the following patch: and after having run: echo 'module ib_core +pmf' > /sys/kernel/debug/dynamic_debug/control the following output appeared: [ 1104.391493] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.391621] ib_srpt 0x0: parsing SRP descriptor table failed. [ 1104.391762] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.391864] ib_srpt 0x1: parsing SRP descriptor table failed. [ 1104.391987] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.392085] ib_srpt 0x2: parsing SRP descriptor table failed. [ 1104.392208] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.392306] ib_srpt 0x3: parsing SRP descriptor table failed. [ 1104.392427] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.392525] ib_srpt 0x4: parsing SRP descriptor table failed. [ 1104.392647] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.392745] ib_srpt 0x5: parsing SRP descriptor table failed. [ 1104.392867] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.392965] ib_srpt 0x6: parsing SRP descriptor table failed. [ 1104.393089] ib_core:rdma_rw_init_mr_wrs: failed to allocate MR 0/1 from pool (in use: 2048) [ 1104.393189] ib_srpt 0x7: parsing SRP descriptor table failed. Bart. --- 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/core/rw.c b/drivers/infiniband/core/rw.c index c6e8483..940dee8 100644 --- a/drivers/infiniband/core/rw.c +++ b/drivers/infiniband/core/rw.c @@ -64,6 +64,8 @@ static int rdma_rw_init_mr_wrs(struct rdma_rw_ctx *ctx, struct ib_qp *qp, reg->mr = ib_mr_pool_get(qp, &qp->rdma_mrs); if (!reg->mr) { + pr_debug("failed to allocate MR %d/%d from pool (in use: %d)\n", + i, ctx->nr_ops, qp->mrs_used); ret = -EAGAIN; goto out_free; }