Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1363067
| From | Laura Abbott <labbott@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC 0/2] staging: ion: of_ion_device_get |
| Date | 2016-03-23 00:00 +0100 |
| Message-ID | <rfDrk-2Hw-3@gated-at.bofh.it> (permalink) |
| References | <rfD7Y-2AF-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 03/22/2016 03:33 PM, Moritz Fischer wrote: > Hi all, > > probably I'm doing this all wrong. I'm playing around with a bunch of accelerators > and I need to share buffers between them. I have my heaps implemented as a > platform device and from what I understand I'll need a reference to the > struct ion_device in each of them. > I couldn't find a way to get to that via devicetree, though. I'll admit that hacking > up miscdevice is quite hacky, maybe I should add a foo_get_ion_device() to my > heap implementing platform device? > If someone can explain me how to correctly do that with what we currently have, > even better. > > Cheers, > > Moritz > > Moritz Fischer (2): > misc: Add of_get_misc get a reference from devicetree > staging: android: ion: Add of_ion_device_get function > > drivers/char/misc.c | 38 ++++++++++++++++++++++++++++++++++++++ > drivers/staging/android/ion/ion.c | 10 ++++++++++ > include/linux/miscdevice.h | 3 +++ > 3 files changed, 51 insertions(+) > In the past what drivers have done is a foo_ion_client_create which has the reference to the ion_device created from ion_device_create. Drivers then call the foo_ion_client_create function. Can you elaborate more on your sharing and allocation flow? This might suggest another idea. Thanks, Laura
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC 0/2] staging: ion: of_ion_device_get Moritz Fischer <moritz.fischer@ettus.com> - 2016-03-22 23:40 +0100
[RFC 2/2] staging: android: ion: Add of_ion_device_get function Moritz Fischer <moritz.fischer@ettus.com> - 2016-03-22 23:40 +0100
Re: [RFC 2/2] staging: android: ion: Add of_ion_device_get function Moritz Fischer <moritz.fischer@ettus.com> - 2016-03-23 00:00 +0100
Re: [RFC 2/2] staging: android: ion: Add of_ion_device_get function Dan Carpenter <dan.carpenter@oracle.com> - 2016-03-23 06:00 +0100
Re: [RFC 0/2] staging: ion: of_ion_device_get Laura Abbott <labbott@redhat.com> - 2016-03-23 00:00 +0100
Re: [RFC 0/2] staging: ion: of_ion_device_get Moritz Fischer <moritz.fischer@ettus.com> - 2016-03-23 00:10 +0100
Re: [RFC 0/2] staging: ion: of_ion_device_get Laura Abbott <labbott@redhat.com> - 2016-03-23 00:30 +0100
Re: [RFC 0/2] staging: ion: of_ion_device_get Moritz Fischer <moritz.fischer@ettus.com> - 2016-03-23 00:40 +0100
Re: [RFC 0/2] staging: ion: of_ion_device_get Moritz Fischer <moritz.fischer@ettus.com> - 2016-03-23 00:50 +0100
csiph-web