Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933879AbcLSR06 (ORCPT ); Mon, 19 Dec 2016 12:26:58 -0500 Received: from ale.deltatee.com ([207.54.116.67]:34772 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933092AbcLSR05 (ORCPT ); Mon, 19 Dec 2016 12:26:57 -0500 To: Keith Busch References: <1481994562-9283-1-git-send-email-logang@deltatee.com> <735068a7-7805-dad0-b5b0-5218a18f335c@deltatee.com> <20161219172903.GB1043@localhost.localdomain> Cc: Myron Stowe , Bjorn Helgaas , Greg Kroah-Hartman , Geert Uytterhoeven , Jonathan Corbet , "David S. Miller" , Andrew Morton , Emil Velikov , Mauro Carvalho Chehab , Guenter Roeck , Kurt Schwemmer , Stephen Bates , linux-pci , linux-doc@vger.kernel.org, linux-nvme@lists.infradead.org, LKML From: Logan Gunthorpe Message-ID: <7a537ea0-afb1-48d5-0706-5066dfaef1dd@deltatee.com> Date: Mon, 19 Dec 2016 10:26:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161219172903.GB1043@localhost.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.111 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, stephen.bates@microsemi.com, kurt.schwemmer@microsemi.com, linux@roeck-us.net, mchehab@kernel.org, emil.l.velikov@gmail.com, akpm@linux-foundation.org, davem@davemloft.net, corbet@lwn.net, geert+renesas@glider.be, gregkh@linuxfoundation.org, bhelgaas@google.com, myron.stowe@gmail.com, keith.busch@intel.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [RFC 0/1] New PCI Switch Management Driver 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: 879 Lines: 21 On 19/12/16 10:29 AM, Keith Busch wrote: > Since the in-kernel driver binds to the device, won't this driver > conflict with the initialization the in-kernel one already does? Bus > master, MSI setup, etc? No. The management interface is on a completely separate PCI endpoint. So from the kernels perspective, the management interface is just another PCI device. It has the same vendor and device ID as the switch but uses separate class codes so it can be bound by an independent driver. > Could you also provide the reasoning against making the functionality > this driver provides in user space? I'm not sure how you mean. I suppose we could write a UIO driver but that seemed like an ugly solution to me and doesn't seem like an approach the community prefers. We do have to make use of interrupts so simply using /sys/bus/pci/.../resourceN wouldn't work either. Logan