Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1561064
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 00/26] IB: Optimize DMA mapping |
| Date | Tue, 17 Jan 2017 23:30:01 +0100 |
| Message-ID | <t0Kql-4mk-5@gated-at.bofh.it> (permalink) |
| References | <sYT4K-7Od-9@gated-at.bofh.it> <sZeLT-4cm-3@gated-at.bofh.it> <sZhqp-5Q8-3@gated-at.bofh.it> <sZhqp-5Q8-1@gated-at.bofh.it> <sZlX3-9H-5@gated-at.bofh.it> <sZlX3-9H-3@gated-at.bofh.it> <t0Kql-4mk-7@gated-at.bofh.it> <t0Kql-4mk-9@gated-at.bofh.it> |
| X-Original-To | Bart Van Assche <Bart.VanAssche@sandisk.com> |
| Dkim-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=obsidianresearch.com; s=rsa1; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=HioOnz8xT2F9sK4RAfsx8iRStQEhsC5hb2y1/2t+q0k=; b=2n/Y7dFzQEFcorJiI3UTTl3ZpN89qz3avDx1csUMVW3loUOAP9INUsO8rfjBHjQ14ORa+RZ2Yi3dcIA1AGynndrcufLhLB0P13pN7ZzLR54GEug0T/lBTZw87X8/BQjVi8Gxu4K1LuDwKVNvdlXqwiEmVllnGtgsIyv+4kGjCVM=; |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| X-Broken-Reverse-Dns | no host name found for IP address 10.0.0.156 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 19 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "alex.estrin@intel.com" <alex.estrin@intel.com>, "dledford@redhat.com" <dledford@redhat.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>, "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> |
| X-Original-Date | Tue, 17 Jan 2017 15:27:47 -0700 |
| X-Original-Message-ID | <20170117222747.GA11409@obsidianresearch.com> |
| X-Original-References | <20170112190718.6728-1-bart.vanassche@sandisk.com> <F3529576D8E232409F431C309E29399336C5FF0F@CRSMSX102.amr.corp.intel.com> <1484338667.2679.15.camel@sandisk.com> <F3529576D8E232409F431C309E29399336C5FF78@CRSMSX102.amr.corp.intel.com> <1484344759.2679.26.camel@sandisk.com> <F3529576D8E232409F431C309E29399336C6006C@CRSMSX102.amr.corp.intel.com> <1484689709.2729.6.camel@sandisk.com> <1484690386.2729.8.camel@sandisk.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1561064 |
Show key headers only | View raw
On Tue, Jan 17, 2017 at 10:00:00PM +0000, Bart Van Assche wrote: > + /* > + * qib and hfi1 use two sets of DMA operations: > + * - The DMA operations of the PCIe device for SDMA. > + * - dma_virt_ops for users of the qib and hfi1 drivers. > + * The only purpose of @dma_device is to provide a struct device that > + * provides dma_virt_ops. > + */ > + struct device dma_device; Creating a struct device, not calling device_initialize() and then passing it around it other places is pretty ugly and potentially dangerous. Is there some other way? Can you setup ibdev to be the 'dma device' for the user side? Jason
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v2 00/26] IB: Optimize DMA mapping Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2017-01-17 23:30 +0100 Re: [PATCH v2 00/26] IB: Optimize DMA mapping Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2017-01-18 01:30 +0100
csiph-web