Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4106599imm; Mon, 17 Sep 2018 08:17:01 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda8ZRxZpz2j1JByDhKfQGji0ZpL7kVcp0ewnUkhKlbuwAOUO325ZlwG5HM9LsD3gL7nxUDs X-Received: by 2002:a63:334c:: with SMTP id z73-v6mr23653640pgz.220.1537197421778; Mon, 17 Sep 2018 08:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537197421; cv=none; d=google.com; s=arc-20160816; b=vhtTtQUs5IwYgFaeubqYNtAHLszqTRjdg2h6tHxpbtKKTXQJsujNzrfP5wVS2L58gr t93UsmZGGNYkQA47FFUu8gSgup+xFlZLgjNiJvHwSAAW2n+sKBC32PKLTzpZwGFEpceB BKmLl8Fc2XJHpHUdonK5P2De5nyoaOgKb+1WF+AJ8WjI9Q4N23NDLg8Ux+00aqt+VDnl mVOaUDln9SAFIQ+73yHSLbUXEvOXGyoCwrTQSlgkmrbPn/eZVojkobgRSVQKGjLULsYx uV5u2sI99XX6XJYif2lBm5v2bMykyQHFPpSLRelpXjzNAFhg2LvDXwbdmX7GPqi7PLq4 w43w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sfaAJVrGXAzuCEX4R9e02evUC6Hk/VSQaSNxmepRk6w=; b=sobjr1Oj1uCmZNkMjpJXbj9cA8+EfnZ9lqoYzUVWAKrrmhNi1JZnByZN5jYEn2Vm/H e+c58U4dKHq3La6d9UUUgKhIECqn4lNAi9m+HkCMZ0qLaw2sebTSmtkoTGAqiTZVUDIo RA6TDFxY8DMiEhiM1aq1pvSX4q1DMyxo06OAGyLiFIeyvN5bu95ueLAJ9F/YOlQTA0io lJ21rKhNDtL71jORCMoU0F/oh8g/kMfzjtPJ5H/s2MJHK1vLIwmxUhND17j0r0YxCzuM 548gJpWV1F0RmVxNnhyEizbedSbkmVEzTdRoMswgDFtaK6BfZZQmHy0IOaxVMJ6Tqe5D c/YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMvrz+B1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h89-v6si15518688pld.517.2018.09.17.08.16.45; Mon, 17 Sep 2018 08:17:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMvrz+B1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728858AbeIQUoO (ORCPT + 99 others); Mon, 17 Sep 2018 16:44:14 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37280 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbeIQUoN (ORCPT ); Mon, 17 Sep 2018 16:44:13 -0400 Received: by mail-lj1-f194.google.com with SMTP id v9-v6so13533105ljk.4 for ; Mon, 17 Sep 2018 08:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sfaAJVrGXAzuCEX4R9e02evUC6Hk/VSQaSNxmepRk6w=; b=aMvrz+B16wbBNv5Wx0N/T6jSuRooIY0H6TdxoXMIZAJA3ibZZBvSK2W8yn3Q/486st fUlJgOGHal/p9HrerziHlcfjMp8b/jO3DaR0sxlokuwW0AHT/KPQq7ycPP6JEGZPbTOv 7Kbm+j5FNCzm4buCeggIJ0R8JjZ1uoj/KPl5PzCPy66JDvY9vtuD3Afzh5mUzIFzjEqZ Of+2wE6Jt7iVlXmM+GdU7HgQ3Hpwq63QL0kvdgljIRkqGBo+WuTXRep6CRd08lHBeGNy gOsVBijyAisXTR2zl7flUqqPDCTmJsRVG91zyVazaR95dcSloYLnLSKAJ/DXQbyPhcBr xCPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sfaAJVrGXAzuCEX4R9e02evUC6Hk/VSQaSNxmepRk6w=; b=WHQkhxfBQOY0IApdFUace6EYlBZtsPa9uekxJvS1g0Ulwt5eEeJLAEpCBBNaB1CdfV KVHKltxlGuHRoiHzYDkxVGvRgTNn0rI6F78h5FT2CrL7Xy48mGN6uDvXUgsVz0vPOSZS yuvZhw2GJaoK6pp/YEwY1I9CTZ1Ha3zFnZkFX5/hcWk6zahisW4jUe7hPKhfGvso5q0y si2w2TJiIdYTobhjIYXpdzPz+wlZE82wIfdrsYMzt6ZjhCn+/EtyYXBI+Lfe887Af+NJ K0RGPt79o87jnVomqqVdV6bRy5TvjVsq2dcRW8ix5gg7qRGMYPt6gO6l1ln2bsVPqkKL hV7w== X-Gm-Message-State: APzg51CO3zvgKGv5r37/rEuPJmXgNwCtAONclwh02ez6mGRE4W3SRF/M RRLsWzwAwXeUvK2TorlL+5Y= X-Received: by 2002:a2e:9d0c:: with SMTP id t12-v6mr15443337lji.75.1537197384840; Mon, 17 Sep 2018 08:16:24 -0700 (PDT) Received: from localhost ([89.207.88.249]) by smtp.gmail.com with ESMTPSA id w12-v6sm2886963lji.63.2018.09.17.08.16.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Sep 2018 08:16:23 -0700 (PDT) Date: Mon, 17 Sep 2018 18:16:23 +0300 From: Alexander Fomichev To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, Jon Mason , Allen Hubbe , Serge Semin , Shyam Sundar S K , Shuah Khan , Doug Meyer , linux@yadro.com Subject: Re: [PATCH v2 0/8] Fix breakage caused by the NTB multi-port patchset Message-ID: <20180917151622.lnlckvkiyqqxlt4c@alfbook-pro.local> References: <20180720180034.3964-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180720180034.3964-1-logang@deltatee.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 20, 2018 at 12:00:26PM -0600, Logan Gunthorpe wrote: > To reiterate the main points on the feedback: the switchtec driver, > in the cross link mode, will not be able to implement the port number > function callbacks and will have to always return 0. It's a physical > impossibility due to the symmetry. Therefore, in order fix this feature > (which worked when merged), the clients must be changed to support not > knowing the port number in the way they worked previously (ie. a legacy > mode where there will only be two ports and you know there will be two > sets of doorbells, one for each peer). The majority of this patch set > fixes these issues. > > The other point of controversy is the dma mask. I still strongly > disagree with doing it in the driver as the code is clearly common > to all and not at all driver specific. Moreover, I think as written, > it is extra dangerous seeing all impleminting drivers are operating on > the new struct device before it's initialized in ntb_register(). > Patch 2 in this series also fixes that. > > [...] > > Logan Gunthorpe (8): > NTB: ntb_tool: reading the link file should not end in a NULL byte > NTB: Setup the DMA mask globally for all drivers > NTB: Fix the default port and peer numbers for legacy drivers > NTB: ntb_pingpong: Choose doorbells based on port number > NTB: perf: Don't require one more memory window than number of peers > NTB: perf: Fix support for hardware that doesn't have port numbers > NTB: perf: Fix race condition when run with ntb_test > NTB: ntb_test: Fix bug when counting remote files Tested successfully on i5-based desktop PC, NTB on PM8535 chip, both ends are on the local system. Tested-by: Alexander Fomichev -- Regards, Alexander