From patchwork Mon Nov 21 21:57:41 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: 9440163 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 08FE260235 for ; Mon, 21 Nov 2016 21:58:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF0FD28ACF for ; Mon, 21 Nov 2016 21:57:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3B9728AD2; Mon, 21 Nov 2016 21:57:59 +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 4C12D28ACF for ; Mon, 21 Nov 2016 21:57:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932190AbcKUV5w (ORCPT ); Mon, 21 Nov 2016 16:57:52 -0500 Received: from mail-sn1nam01on0046.outbound.protection.outlook.com ([104.47.32.46]:12872 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932185AbcKUV5t (ORCPT ); Mon, 21 Nov 2016 16:57:49 -0500 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=wBGP3xihWdMIfL59LOE3XxodNWhsRyhOBqMYPsEZPlw=; b=rI4mwD4ZH0jVliCL91paj9h53oagmgNANYolMnwoarknOvfIMONDO6+anKc77pByK27Jo1XGtRDCXisUUzWuigaFlQCM2eZXt+XBA8D+ZNANDU06hXYRANgT3XxKdyNlwUBAlenwZiopJ4vP6egpwvq2hjestYXMKm0Irho9Py4= Received: from MWHPR02CA0009.namprd02.prod.outlook.com (10.168.209.147) by CY4PR02MB2854.namprd02.prod.outlook.com (10.175.60.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Mon, 21 Nov 2016 21:57:47 +0000 Received: from BL2FFO11FD054.protection.gbl (2a01:111:f400:7c09::137) by MWHPR02CA0009.outlook.office365.com (2603:10b6:300:4b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8 via Frontend Transport; Mon, 21 Nov 2016 21:57:46 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 BL2FFO11FD054.mail.protection.outlook.com (10.173.161.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.5 via Frontend Transport; Mon, 21 Nov 2016 21:57:43 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2973; Count:19 Received: from MILHUBIP03.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 91.AA.02899.1CB63385; Mon, 21 Nov 2016 13:48:49 -0800 (PST) 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.319.2; Mon, 21 Nov 2016 13:57:42 -0800 X-AuditID: 0ac94369-607ff70000000b53-ff-58336bc14a01 Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id A4.56.03661.5DD63385; Mon, 21 Nov 2016 13:57:41 -0800 (PST) Subject: [PATCH 4/5] IB/srp: Make mapping failures easier to debug To: Doug Ledford References: CC: Max Gurtovoy , Christoph Hellwig , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <4b5302b8-26f3-91ad-ceab-3b48c5692e37@sandisk.com> Date: Mon, 21 Nov 2016 13:57:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsXCddJ5ke7BbOMIg6UHhC1env/AarFy9VEm i2eHelksTj86wO7A4rH7ZgObx7Pph5k83u+7yubxeZNcAEsUl01Kak5mWWqRvl0CV8aqztXs BTu5Kl68W83WwHiAo4uRk0NCwETi8rq1bF2MXBxCAkuZJI4samYESQgJ7GCU+LOuGKbo26de RoiixYwSTw90MoMkhAWcJCbunMcEYosIqElserWIvYuRA6jITqL3GQ9IPbNAI6PE6sU3werZ BIwkvr2fyQJi8wLVbH/VA2azCKhK3Jl5G2yOqECExKavc6BqBCVOznzCAjKTU8BeouG2OojJ LKApsX6XPkgFs4C8xPa3c5ghzlzFKrH3cizE+eoSJ5fMZ5rAKDwLyaBZCN2zkHQvYGRexSiW m5lTnJueWmBoqlecmJeSWZytl5yfu4kREgOZOxjvPvE+xCjAwajEw/uB2zhCiDWxrLgy9xCj BAezkgjvowygEG9KYmVValF+fFFpTmrxIUZpDhYlcV63e1/ChATSE0tSs1NTC1KLYLJMHJxS DYzVqyNnzGRRWnCifKYK04yKzqYcQ7NvN4v/CnkU8jw11PimOllmYYC46QX9hTLR0RwRuls/ pfgIvpkje6pUUCz1Tt6Bru1sUtP053KFCK8QzG/O17PaIcPKkbnh2pdbNpwRqjdes8YtW5Nc ulX30/vPqysuxlUt3ix5rkhnvUCJ+C3jNg/1Z0osxRmJhlrMRcWJABN57Wp9AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsXCtZGTTfdqrnGEwfY/5hYvz39gtVi5+iiT xbNDvSwWpx8dYHdg8dh9s4HN49n0w0we7/ddZfP4vEkugCWKyyYlNSezLLVI3y6BK2NV52r2 gp1cFS/erWZrYDzA0cXIySEhYCLx7VMvYxcjF4eQwEJGib/v7rCDJIQFnCQm7pzHBGKLCKhJ bHq1CCjOAVRkJ9H7jAeknlmgkVHiz63XYDVsAkYS397PZAGxeYFqtr/qAbNZBFQl7sy8DVYj KhAhsenrHKgaQYmTM5+wgMzkFLCXaLitDhJmFlCX+DPvEjOELS+x/e0c5gmMfLOQdMxCUjYL SdkCRuZVjGK5mTnFuemZBYZGesWJeSmZxdl6yfm5mxghwRi1g/H6RPNDjEwcnFINjDv6W3+p t+2bd9lkk+obk7wO5m0ijosqM7UmcH+2uHwzwFvJ7d3h0h8ME8LFsz/0tO7r9tsQNf/8avF9 e3/UPdLOc13zP1/mtsiSHcXuEV9K18p/6/jR8Kgsc6o+G79tadOyVsmlnHVfFjhf3l9r8Pvy Ya6ly5I+vPi6euGk488frpVNSJj4fq8SS3FGoqEWc1FxIgDGSy8e9gEAAA== X-IncomingHeaderCount: 19 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)(199003)(189002)(8676002)(8936002)(81156014)(81166006)(68736007)(97736004)(65806001)(65956001)(69596002)(92566002)(38730400001)(4001350100001)(50986999)(86362001)(77096005)(106466001)(54356999)(4326007)(31696002)(2906002)(31686004)(76176999)(53416004)(33646002)(305945005)(626004)(83506001)(64126003)(230700001)(65826007)(36756003)(87936001)(5660300001)(50466002)(2270400002)(2950100002)(6916009)(356003)(110136003)(7846002)(47776003)(189998001)(23676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB2854; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD054; 1:9jf+6w4AVMNDVUhC7XdPHuoFp9E5y/NfaKB9o/DWFoY3b6CFwyD4SXCupoITWbtG4VwP1ebYmkXX+Kpnbcp1oj5pXO8V9cwGfi50l2mnp+kbsQK2T0WqX3IN6VHJRwUmnNNjXU70sYcYmmPTpSiljcvGq4f7r2WXcmPcUVePNiQ2S+JQ6MjeZhwGp/4lqu5zmgMvPH12SKOJ4O6MvJ7TUnwPIuIMle+H3EPt+dc/I5oZ6SY50QW42/boH7w0kC7rfTmdtUGkoiwHeDZO2xGA55olQ6q/ZyXArrlnQik8fGEdKcs+a6OZlel6cWsneQmDCPOrfTIrXVyajhD/JasgMw2UuxYFQZpdNGQgI6WeYeCOcfPz5FnvuO794C6Vbmg3QVXK6T5QRTFgULLPoXbm2WSouPXjgRAjOWGtgLEyVcE52YOU50tCoTXHe0humpkiSlgJEPHUppzawmODXg9IcR+2c5m/wT2rkbUFRY9CU+wZnnZdEzsIgi1YGa8nQkj3fsbIyvvg9IVOsYXecZsWQCFXo8jYEf0CSOLGuqOQ5No= X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2854; 2:n0zzfeKg4eywJk/lk4X+GGUHaZ8x/uV+r7tEF7M2kYh9+7coxOeIe8z60Kkt9F6rROKy19K2EuDuG166EeUz7fIsgltN76f0vX6cmm6zOzYeLuuwkOWSenEkFxAJZxqXphUwEbQock2jSf/vvYncpqxF4aK+WF9+OEJT0JuvRdc=; 3:sY6QGBWKdyfzo73mO+nDWEWRBd6d202zf/VyPVEcU/Lc8TNXpsR8I8pciaV9q9lgWROBhAxFY2WVxmD7xEEVoPWvNoGiOCJ8JRShlTJ+tf92QsXD3tHKELEPIuzVlIAABwn8fiEh40Omb7GnkSvcFYz+pnWYq9uEK9g43RDwLb9F//IzxTBaarHNrwkw2EPQpSBFzEj7lIhCE495wgR7ZogMqIfzFjlw7rV8/VkwxGdUa0oYNzzKyz8dbYMVpNMmypvUCVbgvaqNZiAB948b3ilisixvUqMNW0keCMJV1g8= X-MS-Office365-Filtering-Correlation-Id: f42a51b0-b1a1-4a6b-f773-08d412596d53 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY4PR02MB2854; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2854; 25:B5kfJT6YOgftofTRGV8pJYtB/9f08GZ2LzEqz2ks+49tSEG/sN35s8V3cIIi3NWeZrnaGxfmmFO3ZW7Z72cge2pI5py+6QBeBTUm8iY285766h+VCso2GBt0X0ypUHlkorAlfcAhgHPFQod34EqGAo2WKOiBsbeog4Nri3tG6BHL2qoUKDZLHz703i8u2prvXucn+Eqi83wzm9j09PRoSMQGommyH/bSiqjvRaRtIZBm3cHad8Z5DAgRFENAvxqHtBF41KUNp8GDrVbGBlv1EN4bMFYoQCSSjmDqGwjpWboNBHPykRtx9G5SfGNoK868rKeVTsH7u3Lm7HzhNowH3Fgnne/o++u0a+Vb+K2u10qxSM9CoPwLZxNWaeucmTuWs6N2GnN37/czlCIH//uciP4wZehar3zk3v8ITROPNxAxxBOSEg6ha4e/q+vfKpp5JXHqkYBJoLHB0O/O/Jq88083pYkCuvCWUgV5J3vY5Wf5DbEvBaARdr5ziSEKDFcI7p/2H7h546D75NuqxkwDQv/Ci93TVPpZAoUnb3itWHFvG7NFc/MriNTxN//0UP64Tba7PFsuo8Xd8fqu31xST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ange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040307)(6060326)(6045199)(601004)(2401047)(13016025)(5005006)(8121501046)(13018025)(3002001)(10201501046)(6055026)(6041248)(6061324)(6072148)(6042181); SRVR:CY4PR02MB2854; BCL:0; PCL:0; RULEID:; SRVR:CY4PR02MB2854; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2854; 4:CBN0uYRZGWVvtYpehMV1FL3Z+RcWAJm0wMC7HXyRp+PCoB4yKw27fvyhf/tKkBJQylYtK+85eVgypXuKKSq5RSaisW8HeJatnsbkmnDT3v0AKN4Z/S4Vb4fT3Dw+lG/J/29qidxbv//DNScggyuDvvXqzxsLvvwRatJsZw6IAQaGLRHhlxl0nIWszFIRsavrVpy142ogbyH78YiqJengyr72bnjFtxTH5QQ4egU4UtWfTBd4ETc2wM/tnzAkjLZKQQlwmZP6zQ6CYs5aaMGPio1D9I2xeQ8/6Y6TE99CIp4PtfgvsJCm4gml4d8jPayjDirhvvQV5WW67IhgwTSOHD5oaluOyPxyiu1PnJcfpyy8rX35ZOplj9l3mNT8+YXB2VHo+U6EfILYKN3/YpAXpakp9fS3y0AGwXNqYGaBtznKu4iKMcpjDpfjTN4KcQfgAHyoxUPW2g+X1H9fZbnnlAWB4XW/3VUuMN8AYhLKgyOMWIxjIUyl3W2z71gyqYgvSjGJt+u0v7I/AWhTA2N69pXS8vrERSo2jnLgCQFmemwGRITkFM4pW0uQ6hhemD8OlPuquMvYfXD1c/kK9YS6wyRm2gD/pvVS7RugLVGJ2zg= X-Forefront-PRVS: 01334458E5 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjAyTUIyODU0OzIzOkcyZi9wVXh0MkxQOUVPSERTd2VsWEdENEtn?= =?utf-8?B?UjFkbTRzNjJqWm1QdmZXZUtQYnpkTFp3bUl6UDZGeDd0Y1gzbFpYN05ZMWdR?= =?utf-8?B?Y1pvdkdGZERKUVd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A8y8txrm7rgNm4vcJHd2LyARtWey47JN6FhVIwrJB2qruYo; 5:ojx8DZq9FgGoQolFnoNvM9xsbs6q4qdPSs1LsV7ACrUS5B8K3AlIY2fXZUNOIgaIzNJjUijjUISrTlIoYdfy6SFSyxHIQE3mePTUElwKXHzhoqk+G/SkxpN7lzy0yunU0038TSRTksH/gZUcVE1JyexVsgWU14jWVB7/kPggP8Y=; 24:QedbLCVW4NcgNEiLGB4Rfax0abi/EH5OceexWO5d9lMirpzc43Rji696G7R9AogHd67+SLFU93ndAHZ/GEZKTpYmPXWAzAqsaqrAidurq7c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2854; 7:4s04MGAW0zkSOg6cMdrIzli0QujcysiEDCBS8jz2A9H6vjVb3W20z0UX+1JueOR3uZ0m0TssMAN3nNy8lNToX2IsnkdhxXpcRkCJ86oNIbSlP3Bfj0cHOZJMdxNASnM6UJmI5ErT6nsS1gpibYS6OtmlW1Uowb6m+gqIMJo/iAJcdQpcCTgJCMpTzzfH09D8GiIbcCgF/QIIfOlHm2h9KK43oFOqzxbd3S39Dv2axXlHHq8KDmVbhhs0Iru8Bl/tme/roVx9sOZgMdJlf0pzhD9/uprSOFVB/2yyDjOmGp/TYIjAsz+KKQnhb4sObVP7kCcqDASK+E67tecC1shDYTJ3EmsLJ/A9qG4OkLB8u2E=; 20:VIQsXDoKDVHT86qtLYu+3UXBqRzRPyzOLP2g7FWBPcoyBDA8EzKGkd/rXTLaycHNkLNeetUM7byD144smd6qtl4A8mNmjQTq1uU3Owzop6ZK6bE0QXV4RLvoOWvt5UfXbG3TWp3QvrP1wMfx54it/a+nPVm/5/jkUOws0Qtj3P0bTG7+lxVQaUcN1B37QyDckJAZ0Kp59swt+VMADT3oJtTl4IxSVZDYkJuRCroObhOPQa0pHnLkh5jq2UnLD5jm X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2016 21:57:43.8135 (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: CY4PR02MB2854 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 Make it easier to figure out what is going on if memory mapping fails because more memory regions than mr_per_cmd are needed. Signed-off-by: Bart Van Assche --- drivers/infiniband/ulp/srp/ib_srp.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 81cb27f..bb9d73d 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1274,8 +1274,12 @@ static int srp_map_finish_fmr(struct srp_map_state *state, struct ib_pool_fmr *fmr; u64 io_addr = 0; - if (state->fmr.next >= state->fmr.end) + if (state->fmr.next >= state->fmr.end) { + shost_printk(KERN_ERR, ch->target->scsi_host, + PFX "Out of MRs (mr_per_cmd = %d)\n", + ch->target->mr_per_cmd); return -ENOMEM; + } WARN_ON_ONCE(!dev->use_fmr); @@ -1331,8 +1335,12 @@ static int srp_map_finish_fr(struct srp_map_state *state, u32 rkey; int n, err; - if (state->fr.next >= state->fr.end) + if (state->fr.next >= state->fr.end) { + shost_printk(KERN_ERR, ch->target->scsi_host, + PFX "Out of MRs (mr_per_cmd = %d)\n", + ch->target->mr_per_cmd); return -ENOMEM; + } WARN_ON_ONCE(!dev->use_fast_reg);