Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1202810imm; Fri, 15 Jun 2018 12:57:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL4GTvcIoo+I1OneoJn6UxdHNJfzyzqljAoSuDqCfWe7b8wUnpERpoeVYeGpOXQsX7jETUn X-Received: by 2002:a17:902:103:: with SMTP id 3-v6mr3560706plb.229.1529092638928; Fri, 15 Jun 2018 12:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529092638; cv=none; d=google.com; s=arc-20160816; b=d7IdpnkBpI0JAi1d0tnyVAKFqISBp+6PNGMkIJHSH2ws+MyTEaj22AVvvfseeWymFm pj10PeYUsWX/Y145dJPBnCK1LA1GQju5flVCaaCsKf5xdDwk4KA/32ZELEuq3tHYLf7L 6/U5pr1dI5RuX6/NnutcWfPy4LCREDx7mZyzt8I3OIQMNVCiszw4IdTaV0bHCUW2g+FQ TwroZVionnyAHhVrp05y918wfoUJ5X2qZlODjS6bZ9/ch4sGWAM44lRW+UeLI8BfLFhD X2pqBIiMJi4iKGvtrgpk2dO7SbNoJHbjLfRdImX5X7+cT+e1mVI7X4K9YQWLDmHJR0za X6pA== 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=ezfwxtvVEoTDNgmMSgkrqSiAx60uY4buXVuuOKoHR/U=; b=LS44Vlsx6RDhajs+8xI/+/6ncaOiVII/fieQAvVYn2BAa1Ej3QRwQd2ieXZydoJcej 8J59ria23aP1XAA7L1EkpoNgmHY8fg9LdBFeulPYjtRqd3F0FfozmKN4NkTmEz/maLrj XgnGdyWkbAylWEyx+OC0H3U1iBeFDeymB0dJGOpoDdR6vJL5qGPnBpmWYlHlDX0SDzlH 0driQVSUZhxol2z+q2TZnd+uAnyLhvW/GoNUpnW/4LURBF+iLb3/cUOl3YqcN7mzEdhJ ZKBE0G2vTMCvjBketu6V3YyvaFH7SuHNyl5ra2mw4lxHyvFAqJ5pad8ragAL+Gvc0eX8 /r+g== 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 p61-v6si8562119plb.472.2018.06.15.12.57.02; Fri, 15 Jun 2018 12:57:18 -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 S966176AbeFOT4h (ORCPT + 99 others); Fri, 15 Jun 2018 15:56:37 -0400 Received: from ale.deltatee.com ([207.54.116.67]:52730 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966065AbeFOT4g (ORCPT ); Fri, 15 Jun 2018 15:56:36 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fTupk-00070u-Dc; Fri, 15 Jun 2018 13:56:33 -0600 To: Serge Semin Cc: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, Jon Mason , Dave Jiang , Allen Hubbe , Shyam Sundar S K , Shuah Khan References: <20180609000819.13883-1-logang@deltatee.com> <20180609000819.13883-5-logang@deltatee.com> <20180615194929.GA24025@mobilestation> From: Logan Gunthorpe Message-ID: <6fab7e2b-e7aa-8e67-a318-5ce790677c0d@deltatee.com> Date: Fri, 15 Jun 2018 13:56:28 -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: <20180615194929.GA24025@mobilestation> 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, allenbh@gmail.com, dave.jiang@intel.com, jdmason@kudzu.us, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, fancer.lancer@gmail.com 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 4/8] NTB: ntb_pingpong: Choose doorbells based on port number 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 On 15/06/18 01:49 PM, Serge Semin wrote: > Regarding the patch. The idea of using the port number instead of linearised > unique index should also work for Intel/AMD/IDT drivers. But the ports-space > linearization algorithm was created for the case if the real port numbers > would exceed the available Doorbell bits. I thought this might be the case of > multi-ports version of the switchtec driver. Well, the switchtec driver splits its 64 doorbells in two sets, one for each port right now. That will likely have to change when we go to a multi-port implementation. In that case we will have 64 doorbells and a maximum 48 ports. So I don't think we have to concern ourselves with more ports than doorbells. > Needless to say, that if Switchtec driver had the ports-index API implementation, > this patch wouldn't be needed. As I've said, it's impossible to write for the crosslink topology so the clients must support that case. Logan