linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2]  staging: ion: get one device per heap
@ 2017-09-27 13:20 Benjamin Gaignard
  2017-09-27 13:20 ` [PATCH v5 1/2] staging: ion: simplify ioctl args checking function Benjamin Gaignard
  2017-09-27 13:20 ` [PATCH v5 2/2] staging: ion: create one device entry per heap Benjamin Gaignard
  0 siblings, 2 replies; 20+ messages in thread
From: Benjamin Gaignard @ 2017-09-27 13:20 UTC (permalink / raw)
  To: labbott, sumit.semwal, gregkh, arve, riandrews, broonie,
	dan.carpenter
  Cc: devel, linux-api, linux-kernel, dri-devel

version 5:
- create a configuration flag to keep legacy Ion misc device

version 4:
- add a configuration flag to switch between legacy Ion misc device
  and one device per heap version.
  This change has been suggested after Laura talks at XDC 2017.

version 3:
- change ion_device_add_heap prototype to return a possible error.

version 2:
- simplify ioctl check like propose by Dan
- make sure that we don't register more than ION_DEV_MAX heaps.

Until now all ion heaps are addressing using the same device "/dev/ion".
This way of working doesn't allow to give access rights (for example with
SElinux rules) per heap.
This series propose to have one device "/dev/ionX" per heap.
Query heaps informations will be possible on each device node but
allocation request will only be possible if heap_mask_id match with device minor number.

Using legacy Ion misc device is still by setting ION_LEGACY_DEVICE_API
configuration flag.

Benjamin Gaignard (2):
  staging: ion: simplify ioctl args checking function
  staging: ion: create one device entry per heap

 drivers/staging/android/TODO            |  1 -
 drivers/staging/android/ion/Kconfig     |  7 +++++++
 drivers/staging/android/ion/ion-ioctl.c | 29 +++++++++++++++++++++--------
 drivers/staging/android/ion/ion.c       | 31 ++++++++++++++++++++++++++++++-
 drivers/staging/android/ion/ion.h       | 15 +++++++++++++--
 5 files changed, 71 insertions(+), 12 deletions(-)

-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-10-23 15:19 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-27 13:20 [PATCH v5 0/2] staging: ion: get one device per heap Benjamin Gaignard
2017-09-27 13:20 ` [PATCH v5 1/2] staging: ion: simplify ioctl args checking function Benjamin Gaignard
2017-10-09  9:21   ` Benjamin Gaignard
2017-10-09 16:45     ` Laura Abbott
2017-09-27 13:20 ` [PATCH v5 2/2] staging: ion: create one device entry per heap Benjamin Gaignard
     [not found]   ` <1506518409-16887-3-git-send-email-benjamin.gaignard-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-10-02 18:07     ` Laura Abbott
2017-10-03 16:48       ` Mark Brown
2017-10-03 21:42         ` Laura Abbott
     [not found]           ` <2417c969-357f-d5d9-153a-2180d09b0dc6-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-10-03 23:08             ` Sandeep Patil
     [not found]               ` <20171003230830.GA132839-MgWQydg8T0mvj1b/ULB3ZwqCisvMvsWYTsK6IJ4gZTFBDgjK7y7TUQ@public.gmane.org>
2017-10-03 23:37                 ` Laura Abbott
2017-10-04 10:17                 ` Mark Brown
2017-10-05 13:06                   ` Benjamin Gaignard
2017-10-09 21:25                     ` Laura Abbott
2017-10-09 22:08                       ` Mark Brown
2017-10-10  0:10                         ` Laura Abbott
2017-10-10  9:11                           ` Mark Brown
2017-10-16 22:09                             ` Laura Abbott
     [not found]                               ` <2a9246e0-eafa-7812-6cf4-2482ff1ed158-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-10-17 12:39                                 ` Benjamin Gaignard
2017-10-18 20:07   ` Laura Abbott
     [not found]     ` <bff3d0c7-110d-d702-165b-855daaca6382-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-10-23 15:19       ` Benjamin Gaignard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).