Skip to content

RFC ION per heap devices

John Stultz via dri-devel dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ion: Add ION_VERSION ioctldrivers/staging/android/ion/ion-ioctl.c drivers/staging/android/ion/ion.h drivers/staging/android/uapi/ion.h+13 -02 replies
2/4ion: Initial hack to create per heap devicesdrivers/staging/android/ion/ion-ioctl.c drivers/staging/android/ion/ion.c drivers/staging/android/ion/ion.h +1 more+110 -02 replies
3/4ion: Add HEAP_INFO ioctl to be able to fetch heap typedrivers/staging/android/ion/ion-ioctl.c drivers/staging/android/uapi/ion.h+34 -07 replies
4/4ion: Make "legacy" /dev/ion support optionaldrivers/staging/android/ion/Kconfig drivers/staging/android/ion/ion-ioctl.c drivers/staging/android/ion/ion.c +1 more+39 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [EARLY RFC][PATCH 0/4] ION per heap devices

This is a *very early RFC* (it builds, that's all I'll say :) but I wanted to share it to get some initial feedback before I go down the rabit hole of trying to adapt the Android userland code to get this fully validated.

This patchset tries to implement the per-heap devices for ION. The main benefit is that it avoids multiplexing heap operations through the /dev/ion interface, and allows for each heap to have its own permissions/sepolicy rules.

Feedback would be greatly appreciated!
thanks
-john

Cc Laura Abbott <[email protected]>
Cc Sumit Semwal <[email protected]>
Cc Liam Mark <[email protected]>
Cc Brian Starkey <[email protected]>
Cc Andrew F. Davis <[email protected]>
Cc Alistair Strachan <[email protected]>

John Stultz (4):
ion: Add ION_VERSION ioctl
ion: Initial hack to create per heap devices
ion: Add HEAP_INFO ioctl to be able to fetch heap type
ion: Make "legacy" /dev/ion support optional

 drivers/staging/android/ion/Kconfig     |  7 +++
 drivers/staging/android/ion/ion-ioctl.c | 80 +++++++++++++++++++++++++++++++++
 drivers/staging/android/ion/ion.c       | 51 ++++++++++++++++-----
 drivers/staging/android/ion/ion.h       |  6 +++
 drivers/staging/android/uapi/ion.h      | 57 +++++++++++++++++++++++
 5 files changed, 191 insertions(+), 10 deletions(-)
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel