Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1460684imm; Fri, 8 Jun 2018 17:11:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIu+4rpjyJuE2mf0JiXr/Ipx2T67F5lRB+A/6J1QBl3+4my6bD50nAI1nxBQNpxvG/I4q+4 X-Received: by 2002:a63:a809:: with SMTP id o9-v6mr7078311pgf.313.1528503107498; Fri, 08 Jun 2018 17:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528503107; cv=none; d=google.com; s=arc-20160816; b=Fvu57b3qkC7ruAH0wA2dRzXMVX+FHmjeGSVlHrY8LAj56BaIWOXLQNMhhmtmhgMNEw OU0geVQyjlfQFLdsxUFSeJOYg19QzH3ygSA7b/zAs2IurovkKzmHEeBlHLHA8WS9KoGD 8yJJ6J5Heh+uUXqg77vsEt+GmmMV2eMMDSAakgPWGvXlfvWYEJQ7L0A7p392KUFsrbOy xslQObLh9veHMIVz+aAtYM+UUaLvOkhBYsHbLhSQfNZkxWPcWeFGJL5ms128U7VpXQUM EdUB9NrxgmYKXwnKMHH663T2u3vIgIn+bzVtt0SLHm3GuqJ3IEV0KMMwkeRkhzMFV/fh Yjrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:arc-authentication-results; bh=O1KQsECekG6TR4Tu61mPMKPypPSfr+2b/QSqpxKJf94=; b=Ly1KC5WIDTfxgATQiea0lw/zlJ5tB7CrOtCKv7/S3iLGANFyKbYvpcb3eBcwrilVGM fP7gyL+C9bNjyJOhqV/75knl4SwpKP/hR2POzsxklTk/UF71kKPGdPs5m/BjLvwznumS ES/I6+bJsGZuQ8U3QQkMxPZfelOiKpjdbxcHsklNBWvs0BH79qc/YVUetDdBn3T1vexT /ZdUUnRVaX3daLtQ0pEdTiLbJcAipdhILmGfRC5lNZfHYqKxMpAp9BQBq+q7PkKMyqvy xSIXHIW2gyaNPVPz1fMXS1USzAMd6dATukU62mwiCnWm+jp6KSjccPvCBBfMXR1+zGYB imrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v41-v6si57699666plg.451.2018.06.08.17.11.32; Fri, 08 Jun 2018 17:11:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932328AbeFIAJo (ORCPT + 99 others); Fri, 8 Jun 2018 20:09:44 -0400 Received: from ale.deltatee.com ([207.54.116.67]:60734 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932297AbeFIAJm (ORCPT ); Fri, 8 Jun 2018 20:09:42 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fRRRq-00049e-A7; Fri, 08 Jun 2018 18:09:39 -0600 To: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com Cc: Jon Mason , Dave Jiang , Allen Hubbe , Serge Semin , Shyam Sundar S K , Shuah Khan References: <20180609000819.13883-1-logang@deltatee.com> <20180609000819.13883-7-logang@deltatee.com> From: Logan Gunthorpe Message-ID: Date: Fri, 8 Jun 2018 18:09:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180609000819.13883-7-logang@deltatee.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: shuah@kernel.org, Shyam-sundar.S-k@amd.com, fancer.lancer@gmail.com, allenbh@gmail.com, dave.jiang@intel.com, jdmason@kudzu.us, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH 5/8] NTB: perf: Don't require one more memory window than peer X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oops, sorry, I double posted patch 5. Please disregard the second one. Logan On 08/06/18 06:08 PM, Logan Gunthorpe wrote: > NTB Perf should not require more than one memory window per peer. This > was probably an off-by-one error. > > Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") > Signed-off-by: Logan Gunthorpe > --- > drivers/ntb/test/ntb_perf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c > index 2a9d6b0d1f19..fe27412ffe91 100644 > --- a/drivers/ntb/test/ntb_perf.c > +++ b/drivers/ntb/test/ntb_perf.c > @@ -655,7 +655,7 @@ static int perf_init_service(struct perf_ctx *perf) > { > u64 mask; > > - if (ntb_peer_mw_count(perf->ntb) < perf->pcnt + 1) { > + if (ntb_peer_mw_count(perf->ntb) < perf->pcnt) { > dev_err(&perf->ntb->dev, "Not enough memory windows\n"); > return -EINVAL; > } >