From: Jason Gunthorpe Subject: Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Date: Thu, 14 Apr 2016 15:40:06 -0600 Message-ID: <20160414214006.GB14137@obsidianresearch.com> References: <20160414153727.6387.96381.stgit@scvm10.sc.intel.com> <20160414164550.GC6247@obsidianresearch.com> <20160414174830.GA11641@rhel.sc.intel.com> <20160414180540.GA12554@obsidianresearch.com> <20160414184200.GA10416@phlsvsds.ph.intel.com> <20160414185659.GB12997@obsidianresearch.com> <1828884A29C6694DAF28B7E6B8A82373AB041C90@ORSMSX109.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373AB041C90-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Hefty, Sean" Cc: "Dalessandro, Dennis" , "Weiny, Ira" , "dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On Thu, Apr 14, 2016 at 09:08:44PM +0000, Hefty, Sean wrote: > FWIW, this ioctl design aligns with Jason's proposal. However, > nothing discussed so far really attempts to address whether we > continue to pursue a "unified interface" as mentioned above, or if > that is broken up. I am all for common, shared, multi-device interfaces. But also being realistic, forcing everything into that model isn't going to magically make the hardware the same. YES, we should work on the core uAPI to work to add OPA as a first-class citizen. YES, we should have a driver bypass option to let unique hardware get the best performance. Returning a fd or using a ioctl mux are ideologically similar, I like the FD a tiny little bit better because it provides a direct negotiation of the ABI that will be used. It also allows for mmap and readv, both of which are being used by qib and hfi1. (although I'm sure hfi1 could be updated to use the uverbs mmap entry point) Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html