Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1739209

Re: [PATCH v3 2/2] staging: ion: create one device entry per heap

From Laura Abbott <labbott@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 2/2] staging: ion: create one device entry per heap
Date 2017-09-25 20:30 +0200
Message-ID <utGiL-1D4-19@gated-at.bofh.it> (permalink)
References <urIRH-Bk-17@gated-at.bofh.it> <urIRI-Bk-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 09/20/2017 01:45 AM, Benjamin Gaignard wrote:
> Instead a getting one common device "/dev/ion" for
> all the heaps this patch allow to create one device
> entry ("/dev/ionX") per heap.
> Getting an entry per heap could allow to set security rules
> per heap and global ones for all heaps.
> 
> Allocation requests will be only allowed if the mask_id
> match with device minor.
> Query request could be done on any of the devices.
> Deivce node major will also change and that may impact init scripts.
> 

We should start Cc linux-api for future changes since we're going
to have more than just /dev/ion.

Thinking about this some more, I think we need to allow backwards
compatibility. It's just not feasible to keep throwing workarounds
into userspace if we can avoid it. I'd propose keeping the old /dev/ion
misc interface available under a Kconfig and then creating the new
split heaps in parallel.

On a somewhat related note, there was some interest in possibly
having a sysfs interface for Ion long term. I don't think this
needs to happen right now but I'd like whatever we do to not
make adding that harder.

Thanks,
Laura

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/2] staging: ion: get one device per heap Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-09-20 10:50 +0200
  [PATCH v3 2/2] staging: ion: create one device entry per heap Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-09-20 10:50 +0200
    Re: [PATCH v3 2/2] staging: ion: create one device entry per heap Laura Abbott <labbott@redhat.com> - 2017-09-25 20:30 +0200
      Re: [PATCH v3 2/2] staging: ion: create one device entry per heap Daniel Vetter <daniel@ffwll.ch> - 2017-09-26 07:20 +0200
        Re: [PATCH v3 2/2] staging: ion: create one device entry per heap Greg KH <gregkh@linuxfoundation.org> - 2017-09-26 09:00 +0200

csiph-web