Skip to content

New Ion ioctls

Laura Abbott lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 19 repliesIn review

Changes in v2 from the cover letter

- Rebased
- Dropped RFC
- Dropped ID remapping and dependent logic
- Changed query logic to only need one ioctl
- Fixed alignment of query ioctl structure

[1] http://www.mail-archive.com/[email protected]/msg48036.html

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: android: ion: Drop heap type masksdrivers/staging/android/uapi/ion.h+0 -65 replies
2/4staging: android: ion: Pull out ion ioctls to a separate filedrivers/staging/android/ion/Makefile drivers/staging/android/ion/ion-ioctl.c drivers/staging/android/ion/ion.c +1 more+244 -2042 replies
3/4staging: android: ion: Add an ioctl for ABI checkingdrivers/staging/android/ion/ion-ioctl.c drivers/staging/android/uapi/ion.h+65 -106 replies
4/4staging: android: ion: Add ioctl to query available heapsdrivers/staging/android/ion/ion-ioctl.c drivers/staging/android/ion/ion.c drivers/staging/android/ion/ion_priv.h +1 more+97 -06 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHv2 0/4] New Ion ioctls

Hi,

This is a follow up to my previous series[1] for Ion ioctls. I've changed the focus slightly based on the feedback. The ID remapping was less useful than I originally thought and without that addition there isn't much benefit to have a new alloc ioctl. The ABI check and query interface still seem beneficial. There was some discussion on where exactly these types of ioctls would be called. I expect the answer will depend on exactly how it's integrated.

Long term, I'd still like to fix the ABI to not be a checklist of botching up ioctls but that focus will come later.

Changes from v1:
- Rebased
- Dropped RFC
- Dropped ID remapping and dependent logic
- Changed query logic to only need one ioctl
- Fixed alignment of query ioctl structure

[1] http://www.mail-archive.com/[email protected]/msg48036.html

Laura Abbott (4):
staging: android: ion: Drop heap type masks
staging: android: ion: Pull out ion ioctls to a separate file
staging: android: ion: Add an ioctl for ABI checking
staging: android: ion: Add ioctl to query available heaps

 drivers/staging/android/ion/Makefile    |   3 +-
 drivers/staging/android/ion/ion-ioctl.c | 188 ++++++++++++++++++++++++++
 drivers/staging/android/ion/ion.c       | 226 ++++++--------------------------
 drivers/staging/android/ion/ion_priv.h  |  94 +++++++++++++
 drivers/staging/android/uapi/ion.h      |  67 +++++++++-
 5 files changed, 382 insertions(+), 196 deletions(-)
 create mode 100644 drivers/staging/android/ion/ion-ioctl.c
Signature · 1 line
2.7.4