Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753307AbdF2Sdk (ORCPT ); Thu, 29 Jun 2017 14:33:40 -0400 Received: from ale.deltatee.com ([207.54.116.67]:51742 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454AbdF2Sdd (ORCPT ); Thu, 29 Jun 2017 14:33:33 -0400 To: Allen Hubbe , linux-ntb@googlegroups.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170629032648.3073-1-logang@deltatee.com> <20170629032648.3073-15-logang@deltatee.com> <000001d2f103$291602f0$7b4208d0$@dell.com> Cc: "'Jon Mason'" , "'Dave Jiang'" , "'Bjorn Helgaas'" , "'Greg Kroah-Hartman'" , "'Kurt Schwemmer'" , "'Stephen Bates'" , "'Serge Semin'" From: Logan Gunthorpe Message-ID: Date: Thu, 29 Jun 2017 12:33:21 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <000001d2f103$291602f0$7b4208d0$@dell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.111 X-SA-Exim-Rcpt-To: fancer.lancer@gmail.com, sbates@raithlin.com, kurt.schwemmer@microsemi.com, gregkh@linuxfoundation.org, bhelgaas@google.com, dave.jiang@intel.com, jdmason@kudzu.us, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-ntb@googlegroups.com, Allen.Hubbe@dell.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH 14/16] switchtec_ntb: implement scratchpad registers X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1441 Lines: 30 On 6/29/2017 12:11 PM, Allen Hubbe wrote: > This could get in the way of letting the driver support more than two ports later on. Is there already a plan to change this to support more than two ports? Well, as I mentioned this patchset is only to support 2 ports. Future work will expand this and remove the restriction. The core concept of the emulated spads doesn't get in the way but will need some further consideration. But multi-port support will need a lot more work in the ntb clients anyway. There's no sense having support in my driver until I can actually test things. And I'll probably be fine doing some of the client work once we get there. > This is also not the only hardware to lack scratchpads, but does have memory windows. Wouldn't it be better for a software substitute like this to be done in a way that it is not tied to a specific hardware driver? Yeah, we discussed this previously. Some of this is kind of hardware dependent though. In this case we are using a small fixed size LUT window. If the other hardware doesn't have similar support, using up one of the BAR memory windows (which are a very limited resource) for this might not make sense. The switchtec driver also uses this special memory window to negotiate link status. Anyway, I'm happy to collaborate to making what common parts we can possible with the IDT driver but Serge seemed against the whole concept of emulation. Logan