Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1379220
| From | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access |
| Date | 2016-04-14 21:00 +0200 |
| Message-ID | <rnUEF-6vv-3@gated-at.bofh.it> (permalink) |
| References | <rnRGO-44y-5@gated-at.bofh.it> <rnSCS-4Y2-31@gated-at.bofh.it> <rnTyX-5JF-31@gated-at.bofh.it> <rnTSi-69H-23@gated-at.bofh.it> <rnUv0-6rs-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Apr 14, 2016 at 02:42:01PM -0400, Dennis Dalessandro wrote: > >It certainly can't be years. > > Does fixing the current write()/writev() problem have any real > impact on how we proceed for the "1 char dev to rule them all" idea? We aren't going to take a bad uAPI into mainline. So how many times do you want to redo the userspace? I have no objection to the patch landing, just as long as it stays in staging until we have the uAPI discussion as a community. As for the 'one char device', I actually think it would be really simple. Add a new uverbs ioctl: int hfi1_fd = ioctl(uverbs_fd, RDMA_GET_DRIVER_OPS_FD, "psm2.intel.com"); ioctl(hfi1_fd, HFI1_IOCTL_ASSIGN_CTXT, ...); write(hfi1_fd, ...); At least that gives us far better options for discovery and versioning of this stuff than a driver-specific char device. [eg this would use anon_inode_getfile, like event fds, completion channels, etc] You guys need this the most, propose something already. * driver specific ioctls might be nicer, but people argue that is not performant enough for what you want... Unclear to me. Jason
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Dennis Dalessandro <dennis.dalessandro@intel.com> - 2016-04-14 17:50 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-04-14 18:50 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Ira Weiny <ira.weiny@intel.com> - 2016-04-14 19:50 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-04-14 20:10 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Dennis Dalessandro <dennis.dalessandro@intel.com> - 2016-04-14 20:50 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-04-14 21:00 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Leon Romanovsky <leon@leon.nu> - 2016-04-15 06:10 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Ira Weiny <ira.weiny@intel.com> - 2016-04-15 18:20 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Dennis Dalessandro <dennis.dalessandro@intel.com> - 2016-04-14 20:00 +0200
Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-04-14 20:50 +0200
csiph-web